Hi,
I want to check how many cpu-cycles certain routines i have coded consume, but i _must_ disable all interrupts during this moment, otherwise the rdtsc timestamps are not the real amount of cycles from the routine.
Windows does not like it when i use the "cli" instruction, it closes my win32 app.
What is the best option for me ?
ex.
mainloop:
...
...
<disable interrupts ?>
rdtsc
save dx:ax
call routine
rdtsc
sub dx:ax from saved dx:ax
rdtsc
<enable interrupts again?>
jmp mainloop if not keypressed
I hope someone can help me out.
Thanks for your time!
Bye,
Erik de Keijzer
Hello Erik, in Win32 mode, try Michael's timers.asm or Petrozski's timing routines here:
http://www.masm32.com/board/index.php?topic=770.0
Or write a kmd?
Someone posted a driver on the old forum that did this. I'll see if I can find the link.
http://www.oldboard.assemblercode.com/index.php?topic=1762.30
Erik,
run your code in Windows 98, it may be scoffed at but it has a much more sensible approach to the user and doesn't try to stop you using CLI/STI.
Paul
I heard that MS is dropping all support for 98/98SE/ME...
Mark,
MS may no longer support Win98 but Win98 doesn't stop working because of that.
Paul.
So I wonder, is it more a financial push, the migration to newer versions of Windows?
Or are they trying to distance themselves from older code?