beautypg.com

NEC 78K/0 Series User Manual

Page 108

background image

108

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

User's Manual U12326EJ4V0UM

Branch if Carry

BC

Conditional Branch with Carry Flag (CY = 1)

[Instruction format]

BC $addr16

[Operation]

PC

PC+2+jdisp8 if CY = 1

[Operand]

Mnemonic

Operand($addr16)

BC

$addr16

[Flag]

Z

AC

CY

[Description]

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

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

[Description example]

BC $300H; When CY = 1, data is branched to 0300H (with the start of this instruction set in the range of

addresses 027FH to 037EH).