[Coco] Branch Instruction Summary

johnmarkmelanie at gmail.com johnmarkmelanie at gmail.com
Tue Jul 22 15:21:46 EDT 2025


Allen Huffman,

    lda unsignedTemp1
    cmpa unsignedTemp2
    bhi skip1
    lda signedTemp1
    cmpa signedTemp2
    bgt skip2

You do not have to tell add, sub, and cmp if you are working with signed or unsigned numbers.
But bhi is for unsigned numbers and bgt is for signed numbers.

-John Mark Mobley




More information about the Coco mailing list