NEC 78K/0 Series User Manual

Page 111

Advertising
background image

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

111

User's Manual U12326EJ4V0UM

Branch if Not Zero

BNZ

Conditional Branch with Zero Flag (Z = 0)

[Instruction format]

BNZ $addr16

[Operation]

PC

PC+2+jdisp8 if Z = 0

[Operand]

Mnemonic

Operand($addr16)

BNZ

$addr16

[Flag]

Z

AC

CY

[Description]

When Z = 0, data is branched to the address specified by the operand.

When Z = 1, no processing is carried out and the subsequent instruction is executed.

[Description example]

CMP A, #55H

BNZ $0A39H;

If the A register is not 0055H, data is branched to 0A39H (with the start of this instruction set

in the range of addresses 09B8H to 0AB7H).

Advertising