Legacy apps in Windows/OS X was Re: Old MS-DOS & Win Software

Chuck Guzis cclist at sydex.com
Thu Dec 8 19:11:47 CST 2005


On 12/8/2005 at 5:18 PM woodelf wrote:

>The flag only works half the time, that is why it not listed. :)
>Looking at a 386 programming book, it is AF -- auxiliary carry.
>Now what I still want to know is a real way to calculate the speed
>of the 8086 other than it often a lot slower than the best timing
>they give in the opcode tables.

Write a loop that executes, oh, 10,000,000 times.  Get a stopwatch.
Start the program and the stopwatch simultaneously, stop the stopwatch when
the loop ends.

Calculate the average time per instruction as (time to
execute/(10,000,000*number of instructions in loop)

:)



More information about the cctalk mailing list