24 CHAPTER 2. INTRODUCTION TO LOOPING
compared are of opposite sign) and one for unsigned comparison where no special
cases need be considered.
2.5.2 compare and branch instructions: Unsigned
The following is based on the section named Branches in the M68HC11E Series
Programming Reference Guide commonly referred to as the little pink book. In
each case, the instruction compares a value in register r with a value in memory
M.
Branch to LOCif A > MEM
CMPA MEM
BHI LOC *Branch if HIgher
Branch to LOCif A <= MEM
CMPA MEM
BLS LOC *Branch if Lower or Same
Branch to LOCif A >= MEM
CMPA MEM
BHS LOC *Branch if Higher or Same
Branch to LOCif A < MEM
CMPA MEM
BLO LOC *Branch if Lower
2.5.3 compare and branch instructions: Signed
Branch to LOCif A > MEM
CMPA MEM
BGT LOC *Branch if Greater Than
Branch to LOCif A <= MEM
CMPA MEM
BLE LOC *Branch if Lesser or Equal
Comentarios a estos manuales