I am using Micro-C (http://www.dunfield.com
) and need to access the pentium's cpu timestampusing opcode 0x0f31.
I can't use the datatype "long" as that is not supported by Micro-C. I need to get the 32bit contents of the two registers eax and edx into two char arrays. How can I do that? Something like this:
unsigned char h,l;
rdtsc1 db 0fh
rdtsc2 db 31h
The inline assembler doesn't know about the RDTSC opcode so I fake it using DB.
Also the inline assembler doesn't understand eax or edx so I can't actually use those register names.