Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Nome esterno : TestCPU.obj
- ; Data inizio : 14/05/1999
- ; Data fine : 14/05/1999
- ; Autore : Giovanni Viglietta.
- ; Descrizione : Verifica che il processore sia un 386 o superiore.
- IDEAL
- MODEL small
- CODESEG
- PUBLIC Test_386
- PROC Test_386 FAR
- pushf
- xor ax,ax
- push ax
- popf
- pushf
- pop ax
- and ax,0F000h
- cmp ax,0F000h
- je Non386
- mov ax,7000h
- push ax
- popf
- pushf
- pop ax
- and ax,7000h
- jz Non386
- inc al
- Non386:
- popf
- retf
- ENDP
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement