flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
coconut
edit
Last edited by coconut on 18 Apr 2004, 01:57; edited 1 time in total |
|||
![]() |
|
coconut
edit
Last edited by coconut on 18 Apr 2004, 01:58; edited 2 times in total |
|||
![]() |
|
coconut
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' |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.