Chapter 12 List of Machine Language Instructions

Conditional BRANCH

Mnemonic

 

 

Meaning

Description of operation

 

 

 

 

 

BEQ label

=

 

If ZF = 1, execute a relative branch to the address specified by label. (Range:

 

 

ZF=1

-128 to 127)

 

 

 

 

If ZF = 0, execute next instruction.

 

 

 

 

 

BNE label

 

 

 

If ZF = 0, execute a relative branch to the address specified by label. (Range:

 

 

 

 

 

 

 

 

ZF=0

-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)

If CF = 0, execute a relative branch to the address specified by label. (Range:

 

 

CF=0

-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)

If CF = 1, execute a relative branch to the address specified by label. (Range:

 

 

CF=1

-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)

 

 

 

 

 

List of Machine Language Instructions 245

Page 257
Image 257
Panasonic MN1030 user manual Conditional Branch, Mnemonic Meaning Description of operation