flat assembler
Message board for the users of flat assembler.
Index
> Windows > CPUID problems |
Author |
|
coconut 10 Apr 2004, 05:49
edit
Last edited by coconut on 18 Apr 2004, 01:57; edited 1 time in total |
|||
10 Apr 2004, 05:49 |
|
coconut 10 Apr 2004, 13:14
edit
Last edited by coconut on 18 Apr 2004, 01:58; edited 2 times in total |
|||
10 Apr 2004, 13:14 |
|
coconut 11 Apr 2004, 16:40
heres the program - unsure about the accuracy since i have an amd cpu, and it reports an intel
Code: format PE GUI 4.0 entry start include '%fasminc%\win32a.inc' _szintel db 'intel cpu',0 _szamd db 'amd cpu',0 _szerror db 'cpuid not supported',0 _sztitle db 'cpuid app',0 start: pushfd pop eax mov ebx,eax xor eax,00200000h push eax popfd pushfd pop eax cmp eax,ebx jz nocpuid mov eax, 1 cpuid test ebx,68747541h jnz amd_cpu invoke MessageBox,0,_szintel,_sztitle,0 jmp finish amd_cpu: invoke MessageBox,_szamd,_sztitle,0 jmp finish nocpuid: invoke MessageBox,0,_szerror,_sztitle,0 finish: invoke ExitProcess,0 section '.idata' import data readable writeable library kernel,'KERNEL32.DLL',\ user,'USER32.DLL' import kernel,\ ExitProcess,'ExitProcess' import user,\ MessageBox,'MessageBoxA' |
|||
11 Apr 2004, 16:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.