NEC 78K/0S Series User Manual page 109

8-bit single-chip microcontroller
Table of Contents

Advertisement

BF
[Instruction format]
[Operation]
[Operand]
Mnemonic
BF
saddr.bit, $addr16
sfr.bit, $addr16
A.bit, $addr16
PSW.bit, $addr16
[Flag]
Z
AC
[Description]
If the 1st operand (bit) contents have been cleared (0), program branches to the address specified with 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, program branches to address 1549H (with the start of this instruction
set in the range of addresses 14C6H to 15C5H).
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
BF bit, $addr16
PC ← PC + b + jdisp8 if bit = 0
Operand (bit, $addr16)
CY
User's Manual U11047EJ3V0UM00
Conditional Branch by Bit Test (Byte Data Bit = 0)
b (Number of bytes)
4
4
3
4
Branch if False
109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents