I have been following the Osdev wiki, and I'm trying to follow their "inline assembly" page. I want to use BIOS in my code, but when I try, it crashes the kernel and returns to the bootloader (which is grub). I think this is because it's running in protected mode. I have seen the osdev page on how to enter real mode, but they don't have any code for how to do it using the GAS syntax that the gcc asm() function wants. In short, how would I run the following code in real mode:
asm("mov 0x0E, %AH; mov 0x37, %AL; int $10;");
All help is appreciated.