Code: Select all
mov ah, 0
mov al, 0x12
int 0x10
Remember my last post : http://forum.osdev.org/viewtopic.php?f=1&t=30380? OK, there i tried to call interrupts.
To get into real mode i do this:
Code: Select all
cli
mov eax, cr0
and eax, 0
mov cr0, eax
sti
To get back to protected mode, i do this:
Code: Select all
cli
mov eax, cr0
xor eax, 1
mov cr0, eax
mov ax, 0
mov ds, ax
mov fs, ax
mov es, ax
mov gs, ax
mov ss, ax
mov esp, 2097000
It seem to halt at int 0x10. That means somehow, it's still in protected mode.
Hmmm, i do not get to real mode right.
Any ideas to fix this?
Yeah, also removed deadline from my website.