Chapter 12 List of Machine Language Instructions

Conditional BRANCH for LOOP

 

Mnemonic

Meaning

 

Description of operation

 

 

 

 

 

 

 

LEQ

=

 

If ZF = 1, branch to the top of the loop as specified with SETLB.

 

 

ZF=1

 

If ZF = 0, execute next instruction.

 

 

 

 

 

 

 

LNE

=

 

If ZF = 0, branch to the top of the loop as specified with SETLB.

 

 

ZF=0

 

If ZF = 1, execute next instruction.

 

 

 

 

 

 

 

LGT

< (signed)

 

If ZF = 0 and NF = VF, branch to the top of the loop as specified with

 

 

 

 

SETLB.

 

 

 

 

If ZF = 1 or NF != VF, execute next instruction.

 

 

 

 

 

 

 

LGE

< (signed)

 

If NF = VF, branch to the top of the loop as specified with SETLB.

 

 

 

 

If NF != VF, execute next instruction.

 

 

 

 

 

 

 

LLE

> (signed)

 

If CF = 1 or ZF = 1, branch to the top of the loop as specified with

 

 

 

 

SETLB.

 

 

 

 

IUf CF = 0 and ZF = 0, execute next instruction.

 

 

 

 

 

 

 

LLT

> (signed)

 

If NF = 1 and VF = 1 or NF = 0 and VF = 0, branch to the top of the loop

 

 

 

 

as specified with SETLB.

 

 

 

 

If NF = 1 and VF = 0 or NF = 0 and VF = 1, execute next instruction.

 

 

 

 

 

 

 

LHI

< (unsigned)

 

If CF = 0 and ZF = 0, branch to the top of the loop as specified with

 

 

 

 

SETLB.

 

 

 

 

If CF = 1 or ZF = 1, execute next instruction.

 

 

 

 

 

 

 

LCC

< (unsigned)

 

If CF = 0, branch to the top of the loop as specified with SETLB.

 

 

CF=0

 

If CF = 1, execute next instruction.

 

 

 

 

 

 

 

LLS

> (unsigned)

 

If CF = 1 or ZF = 1, branch to the top of the loop as specified with

 

 

 

 

SETLB.

 

 

 

 

If CF = 0 and ZF = 0, execute next instruction.

 

 

 

 

 

 

 

LCS

< (unsigned)

 

If CF = 1, branch to the top of the loop as specified with SETLB.

 

 

CF=1

 

If CF = 0, execute next instruction.

 

 

 

 

 

 

 

LRA

1

 

Unconditionally branch to the top of the loop as specified with SETLB.

 

 

 

 

 

 

Mnemonic

 

Description of operation

 

 

 

 

 

 

 

 

SETLB

 

 

Store the four bytes following the SETLB and the address of the fifth

 

 

 

 

 

byte in the Loop Instruction Register (LIR) and the Instruction Fetch

 

 

 

 

 

Address Register (LSR), respectively.

 

 

 

 

 

 

 

246 List of Machine Language Instructions

Page 258
Image 258
Panasonic MN1030 user manual Conditional Branch for Loop, ZF=1 If ZF = 0, execute next instruction