beautypg.com

NEC 78K/0 Series User Manual

Page 113

background image

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

113

User's Manual U12326EJ4V0UM

Branch if False

BF

Conditional Branch by Bit Test (Byte Data Bit = 0)

[Instruction format]

BF bit, $addr16

[Operation]

PC

PC+b+jdisp8 if bit = 0

[Operand]

Mnemonic

Operand(bit,$addr16)

b(Number of bytes)

BF

saddr.bit, $addr16

4

sfr.bit, $addr16

4

A.bit, $addr16

3

PSW.bit, $addr16

4

[HL].bit, $addr16

3

[Flag]

Z

AC

CY

[Description]

If the 1st operand (bit) contents have been cleared (0), data is branched to the address specified by the 2nd

operand ($addr16).

If the 1st operand (bit) contents have not been cleared (0), no processing is carried out and the subsequent

instruction is executed.

[Description example]

BF P2.2, $1549H; When bit 2 of port 2 is 0, data is branched to address 1549H (with the start of this instruction

set in the range of addresses 14C6H to 15C5H).