[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Decimal Flag Question



Bryan Parkoff asked:

>Eric,
>> It's possible that their state machine requires the extra state even
>though
>> they don't add in the carry.  Or it could be an error.  Write a simple
>> test program that runs the instruction ten million times, and measure
>> the run time.
>
>    How can you measure the run time that executes instruction ten million
>times.  It can only executes approximately less than 500,000 instructions
>per second.

By putting it inside a loop that is executed ten million times.  ;-)

The idea is to make a one cycle difference in execution time visible
as a ten second difference in loop execution time.  That way any
watch with a sweep second hand is adequate to time a one
microsecond difference.

-michael

Check out amazing quality 8-bit Apple sound on my
Home page:  http://members.aol.com/MJMahon/