Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Some people's way of doing it is to see if the leftmost three bits in FLAGS may be set. If they can, then you know that you have at least an i386, but this method is not always reliable.
mov ax,7000h
push ax
popf
pushf
pop ax
and ax,7000h
cmp ax,7000h
je CPU386
halt
CPU386: nop ; if we get here, then we have at least a 386.