Guest_imported
New member
- Jan 1, 1970
- 0
I program in Delphi, and found a function that gets CPU frequency, but in delphi, you can also use assembly, and the code above was inside the function, and I dont understand any of it. I would really apreciate it if someone could just explain what it does, or even put a comment on each line. I just want to know what it does. Here is the code:
dw 310Fh
mov TimerLo, eax
mov TimerHi, edx
dw 310Fh
sub eax, TimerLo
sbb edx, TimerHi
mov TimerLo, eax
mov TimerHi, edx
("TimerLo" and "TimerHi" are DWORD variables).
Thanks alot in advance to anyone who helps me with this!
dw 310Fh
mov TimerLo, eax
mov TimerHi, edx
dw 310Fh
sub eax, TimerLo
sbb edx, TimerHi
mov TimerLo, eax
mov TimerHi, edx
("TimerLo" and "TimerHi" are DWORD variables).
Thanks alot in advance to anyone who helps me with this!