How can I use cpuid in a normal 32bit exe (meaning no .model tiny)? I tried using it directly with .486,.586.,686 and it won't compile. i tried using db 0FA2h(cpuid in hex and db = emit in this case) but won't compile with that either says initalized magnitude 2 large.
E^cube,
db 0Fh, A2h
or
dd 0FA2h
Paul
Ahh great, thanks a lot PBrennick! :thumbu
Quote from: PBrennick on April 25, 2007, 01:31:03 AM
dd 0FA2h
Don't you mean " dw 0a20fh" ?
because " dd 0fa2h" becomes " db 0a2h,0fh,0,0"
E^cube,
What assembler are you using? I can get CPUID to assemble with MASM directly with no sweat. My first two lines are:
.686
.model flat,stdcall
sinsi,
I just love that picture of your dog. Be careful no one dognaps it. Ratch
works fine here..
.586
.model flat, stdcall
option casemap:none
.code
start:
cpuid
end start
Quote from: Ratch on April 25, 2007, 06:02:05 AM
sinsi,
I just love that picture of your dog. Be careful no one dognaps it. Ratch
Thanks Ratch. That's Sinsi - Purebred dobie, complete with tail. 1986-1998, last 2 years diabetic (2 injections a day). RIP