flat assembler
Message board for the users of flat assembler.
Index
> Windows > QPC and QPF in Assembly interpretation. |
Author |
|
revolution 02 Jun 2015, 05:15
I have this 32-bit code. Perhaps you can compare to your code.
Code: ;definitions QPC_start dq ? QPC_end dq ? QPC_freq dq ? generate_time dd ? ;... invoke QueryPerformanceFrequency,addr QPC_freq invoke QueryPerformanceCounter,addr QPC_start ;... <do stuff> invoke QueryPerformanceCounter,addr QPC_end fild [QPC_end] fild [QPC_start] fsubp fild [QPC_freq] fdivp mov [generate_time],1000 ;convert to milliseconds fimul [generate_time] fistp [generate_time] |
|||
02 Jun 2015, 05:15 |
|
fasmnewbie 02 Jun 2015, 05:22
Thanks revo. I'll test this later.
One more question, why there is no kernel64? AFAIK, MS generally has different argument policy for both 32-bit and 64-bit DLL/lib etc. Shouldn't kernel32 takes argument from the stack instead of RCX? |
|||
02 Jun 2015, 05:22 |
|
revolution 02 Jun 2015, 05:39
fasmnewbie wrote: why there is no kernel64? So 64-bit code binds to kernel32 and 32-bit code also binds to kernel32. The OS has to figure out which system DLL is being referenced (32-bit or 64-bit) at runtime. |
|||
02 Jun 2015, 05:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.