[Coco] Branch Instruction Summary
johnmarkmelanie at gmail.com
johnmarkmelanie at gmail.com
Tue Jul 22 15:55:33 EDT 2025
Allen Huffman,
bhi branch if higher (unsigned >)
bgt branch if greater than (signed >)
-John Mark Mobley
-----Original Message-----
From: johnmarkmelanie at gmail.com <johnmarkmelanie at gmail.com>
Sent: Tuesday, July 22, 2025 2:22 PM
To: 'CoCoList for Color Computer Enthusiasts' <coco at maltedmedia.com>
Cc: 'Allen Huffman' <alsplace at pobox.com>
Subject: RE: [Coco] Branch Instruction Summary
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