NEC 78K/0S Series User Manual page 108

8-bit single-chip microcontroller
Table of Contents

Advertisement

BT
[Instruction format]
[Operation]
[Operand]
Mnemonic
BT
saddr.bit, $addr16
sfr.bit, $addr16
A.bit, $addr16
PSW.bit, $addr16
[Flag]
Z
AC
[Description]
If the 1st operand (bit) contents have been set (1), program branches to the address specified with the 2nd
operand ($addr16).
If the 1st operand (bit) contents have not been set (1), no processing is carried out and the subsequent
instruction is executed.
[Description example]
BT 0FE47H.3, $55CH; When bit 3 at address FE47H is 1, program branches to 055CH (with the start of this
108
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
BT bit, $addr16
PC ← PC + b + jdisp8 if bit = 1
Operand (bit, $addr16)
CY
instruction set in the range of addresses 04DAH to 05D9H).
User's Manual U11047EJ3V0UM00
Conditional Branch by Bit Test (Byte Data Bit = 1)
b (Number of bytes)
4
4
3
4
Branch if True

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents