Discussione: [Asmx86]Flag
View Single Post
Old 07-09-2004, 22:02   #25
cionci
Senior Member
 
L'Avatar di cionci
 
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
cionci č offline   Rispondi citando il messaggio o parte di esso