Chapter 12 List of Machine Language Instructions
List of Machine Language Instructions 245
Conditional BRANCH
Mnemonic Meaning Description of operation
BEQ label =
ZF=1 If ZF = 1, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If ZF = 0, execute next instruction.
BNE label
ZF=0 If ZF = 0, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If ZF = 1, execute next instruction.
BGT label < (signed) If ZF = 0 and NF = VF, execute a relative branch to the address specified by
label. (Range: -128 to 127)
If ZF =1 or NF != VF, execute next instruction.
BGE label < (signed) If NF = VF, execute a relative branch to the address specified by label.
(Range: -128 to 127)
If NF != VF, execute next instruction.
BLE label > (signed) If CF = 1 or ZF = 1, execute a relative branch to the address specified by
label. (Range: -128 to 127)
If CF = 0 and ZF = 0, execute next instruction.
BLT label > (signed) If NF = 1 and VF = 1 or NF = 0 and VF = 0, execute a relative branch to the
address specified by label. (Range: -128 to 127)
If NF = 1 and VF = 0 or NF = 0 and VF = 1, execute next instruction.
BHI label < (unsigned) If CF = 0 and ZF = 0, execute a relative branch to the address specified by
label. (Range: -128 to 127)
If CF = 1 or ZF = 1, execute next instruction.
BCC label < (unsigned)
CF=0 If CF = 0, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If CF = 1, execute next instruction.
BLS label > (unsigned) If CF = 1 or ZF = 1, execute a relative branch to the address specified by
label. (Range: -128 to 127)
If CF = 0 and ZF = 0, execute next instruction.
BCS label < (unsigned)
CF=1 If CF = 1, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If CF = 0, execute next instruction.
BVC label VF=0 If VF = 0, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If VF = 1, execute next instruction.
BVS label VF=1 If VF = 1, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If VF = 0, execute next instruction.
BNC label NF=0 If NF = 0, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If NF = 1, execute next instruction.
BNS label NF=1 If NF = 1, execute a relative branch to the address specified by label. (Range:
-128 to 127)
If NF = 0, execute next instruction.
BRA label 1 Unconditionally execute a relative branch to the address specified by label.
(Range: -128 to 127)