NEC 78K/0 Series User Manual

Page 110

Advertising
background image

110

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

User's Manual U12326EJ4V0UM

Branch if Zero

BZ

Conditional Branch with Zero Flag (Z = 1)

[Instruction format]

BZ $addr16

[Operation]

PC

PC+2+jdisp8 if Z = 1

[Operand]

Mnemonic

Operand($addr16)

BZ

$addr16

[Flag]

Z

AC

CY

[Description]

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

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

[Description example]

DEC B

BZ $3C5H; When the B register is 0, data is branched to 03C5H (with the start of this instruction set in the

range of addresses 0344H to 0443H).

Advertising