112
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User's Manual U12326EJ4V0UM
Branch if True
BT Conditional Branch by Bit Test (Byte Data Bit = 1)
[Instruction format] BT bit, $addr16
[Operation] PC PC+b+jdisp8 if bit = 1
[Operand]
Mnemonic Operand(bit,$addr16) b(Number of bytes)
BT saddr.bit, $addr16 3
sfr.bit, $addr16 4
A.bit, $addr16 3
PSW.bit, $addr16 3
[HL].bit, $addr16 3
[Flag]
ZACCY
[Description]
If the 1st operand (bit) contents have been set (1), data is branched to the address specified by 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 FE47H.3, $55CH; When bit 3 at address FE47H is 1, data is branched to 055CH (with the start of this
instruction set in the range of addresses 04DAH to 05D9H).