Chuck Guzis wrote:
Nope, but it did copy the number down wrong off my
HP-16C. That should be
99H, not 98H loaded into DL. Alternatively, you could change the bottom
JNZ to a JNS.
Wow a real calculator.
Consider what happens. You execute one iteration of
38528 times through
the inner loop. The remainder of 152 trips through the outer loop, you
execute 65536 iterations each time for 9961472 total iterations. Add the
38528 for the first time and you get (surprise!) 10000000.
I was thinking a loop like 200 of 50000 but the hex numbers threw me off.
Now how long will it take to run?
Cheers,
Chuck