Code: Select all
[GLOBAL _get_page_bit]
_get_page_bit
mov eax,cr0
retn
[GLOBAL _set_page_bit]
_set_page_bit
push eax
mov eax,[esp + 8]
mov cr0,eax
pop eax
jmp check1
check1:
retn
[GLOBAL _get_page_dir]
_get_page_dir
mov eax,cr3
retn
[GLOBAL _set_page_dir]
_set_page_dir
pusha
push eax
mov eax,[esp + 4]
mov cr3,eax
jmp check2
check2:
pop eax
popa
retn