...
Thanks,
Lster
CR3 Question
CR3 Question
Last edited by Lprogster on Tue Oct 23, 2007 11:17 am, edited 2 times in total.
Code: Select all
write_cr3:
mov eax, [esp + 8]
mov cr3, eax
ret
[esp+4], because ESP points to the Return address of your procedure. ESP+4 points to the parameter, pushed before calling the procedure.
It was [esp+8], because you pushed ebp, so ESP was decremented by four one more time
![Wink ;)](./images/smilies/icon_wink.gif)
I think, I have problems with Bochs. The biggest one: Bochs hates me!