CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User’s Manual U11047EJ3V0UM00
108
BT
Branch if True
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
4
sfr.bit, $addr16
4
A.bit, $addr16
3
PSW.bit, $addr16
4
[Flag]
Z
AC
CY
[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
instruction set in the range of addresses 04DAH to 05D9H).
Summary of Contents for 78K/0S Series
Page 2: ...User s Manual U11047EJ3V0UM00 2 MEMO ...
Page 14: ...User s Manual U11047EJ3V0UM00 14 MEMO ...
Page 28: ...User s Manual U11047EJ3V0UM00 28 MEMO ...
Page 118: ...User s Manual U11047EJ3V0UM00 118 MEMO ...
Page 120: ...User s Manual U11047EJ3V0UM00 120 MEMO ...