[Coco] assembly question
K. Pruitt
pruittk at roadrunner.com
Sat Aug 8 23:32:50 EDT 2015
I have an assembly question.
How is the BCC operand any different than the BGE operand in the context of
using it on a counter?
Here's the code example:
ldb #$03
Loop stb Counter
<do stuff here>
decb
bcc Loop
The idea is to take the counter from 3 to 0 and include 0 in the loop. So
four times through the loop.
The code above does not work for me. However, this code does:
ldb #$03
Loop stb Counter
<do stuff here>
decb
bge Loop
The only difference is the bge instead of the bcc. From the description I
read in Leventhal's book, bcc and bge sound functionally identical in this
context.
But they are not.
More information about the Coco
mailing list