|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#21 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Manca un h qua in fondo: test edx, 80000000 (sulle 3dNow!+)
|
|
|
|
|
|
#22 | |
|
Senior Member
Iscritto dal: Apr 2002
Città: Vigevano(PV)
Messaggi: 2124
|
Quote:
__________________
Gnu/Linux User
|
|
|
|
|
|
|
#23 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Non le devi cercare lì le 3dnow!... Devi richiamare CPUID con un altro valore in eax: http://www.paradicesoftware.com/specs/cpuid/index.htm
|
|
|
|
|
|
#24 |
|
Senior Member
Iscritto dal: Apr 2002
Città: Vigevano(PV)
Messaggi: 2124
|
Codice:
mov eax, 80000008h ; extended function for AMD cpuid TEST_AMD_NOW: bt edx, 30 ; 3DNow! bit(30) jc TEST_AMD_NOW_PLUS push edx mov dx, AMD_NOWMsg mov ah, 09h ; set int 21h service 09h(print '$'-terminated string) int 21h pop edx TEST_AMD_NOW_PLUS: bt edx, 31; 3DNow! Extensions bit(31) jc FINE_TEST push edx mov dx, AMD_NOW_EXTMsg mov ah, 09h ; set int 21h service 09h(print '$'-terminated string) int 21h pop edx FINE_TEST: ; exit to the program mov ah, 4Ch ; set int 21h service 4Ch(exit) int 21h
__________________
Gnu/Linux User
|
|
|
|
|
|
#25 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
No....
Note: to identify support for the extended values, you must first call eax=$8000_0000, which returns the maximum supported extended levels in eax. Codice:
mov eax, 80000000h cpuid cmp eax, 80000008h JG FINE_TEST mov eax, 80000001h ; extended function for AMD cpuid TEST_AMD_NOW: bt edx, 30 ; 3DNow! bit(30) jc TEST_AMD_NOW_PLUS push edx mov dx, AMD_NOWMsg mov ah, 09h ; set int 21h service 09h(print '$'-terminated string) int 21h pop edx TEST_AMD_NOW_PLUS: bt edx, 31; 3DNow! Extensions bit(31) jc FINE_TEST push edx mov dx, AMD_NOW_EXTMsg mov ah, 09h ; set int 21h service 09h(print '$'-terminated string) int 21h pop edx |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 21:28.



















