for some reason I need the time a piece of assembly code should need.
In the good old 8086 time the Intel Manual told how much time a single instruction need.
I have tried to read the Intel documentation to find the timing for the instructions of the instruction set But I was not able to find it.
Could someone can tell me how I can determine the time a pice of code should use?
Here is the code I want the timing for.
mov DWORD PTR _k$[ebp], 1000000 ; 000f4240H
jmp SHORT CheckCondition
mov eax, DWORD PTR _k$[ebp]
sub eax, 1
mov DWORD PTR _k$[ebp], eax
cmp DWORD PTR _k$[ebp], 0
jle SHORT LoopEnd
jmp SHORT Next
But I need an instruction How the timing can be calculated.
It is machine dependent and must run on different Intel CPU's
Thanks for the Help