Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. ; Nome esterno : TestCPU.obj
  2. ; Data inizio : 14/05/1999
  3. ; Data fine : 14/05/1999
  4. ; Autore : Giovanni Viglietta.
  5. ; Descrizione : Verifica che il processore sia un 386 o superiore.
  6.  
  7. IDEAL
  8. MODEL small
  9.  
  10. CODESEG
  11.  
  12. PUBLIC Test_386
  13.  
  14. PROC Test_386 FAR
  15. pushf
  16. xor ax,ax
  17. push ax
  18. popf
  19. pushf
  20. pop ax
  21. and ax,0F000h
  22. cmp ax,0F000h
  23. je Non386
  24. mov ax,7000h
  25. push ax
  26. popf
  27. pushf
  28. pop ax
  29. and ax,7000h
  30. jz Non386
  31. inc al
  32. Non386:
  33. popf
  34. retf
  35. ENDP
  36.  
  37. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement