About CPU Version
Posted: Sun Jul 30, 2006 6:26 pm
the Source is in menuetOS:
why can it check the version of CPU?
Code: Select all
pushf
pop ax
mov dx,ax
xor ax,0x4000
push ax
popf
pushf
pop ax
and ax,0x4000
and dx,0x4000
cmp ax,dx
jnz cpugood
mov si,not386-0x10000
call print
jmp $
cpugood: