Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; cpuid_pae.s - Use CPUID instruction to determine if x86 CPU has PAE.
- [SECTION .text]
- global _start
- _start:
- xor eax,eax
- mov eax,1 ; 1=Get processor features
- cpuid
- results:
- and edx,64 ; Mask the PAE bit.
- shr edx,6 ; Shift bit 6 into bit 0.
- exit:
- mov eax,1
- xor ebx,ebx
- mov ebx,edx ; Return value. 1=yes, 0=no.
- int 0x80 ; Exit syscall.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement