Could any body give me a hand moving from PMODE to real mode?
I want to create a function to execute BIOS interupts but can't find anything simple enough for me to understand (i have tried many sources and articles but cant find anything that has it in detail)
Thankyou, Luke
EDIT: Well since writing this i've found some more information and from what i can tell i have to disable interupts, disable A20 and then put 0 in the PM bit.
To do this i tried:
__asm__ __volatile__ ("cli");
outportb(0x60,0xdf);
__asm__ __volatile__ ("mov %%eax, %%cr0\n"
"dec %%al" /* Decrease the Pmode bit */
"mov %%cr0, %%eax\n"
"db 0eah");
I know the inline ASM fails but thats not a problem, as i can just put it into my start.asm