NEC 78K/0 Series User Manual page 112

Nec computer hardware user's manual
Hide thumbs Also See for 78K/0 Series:
Table of Contents

Advertisement

BT
[Instruction format]
[Operation]
[Operand]
Mnemonic
Operand(bit,$addr16)
BT
saddr.bit, $addr16
sfr.bit, $addr16
A.bit, $addr16
PSW.bit, $addr16
[HL].bit, $addr16
[Flag]
Z
AC
[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
112
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
BT bit, $addr16
PC ← PC+b+jdisp8 if bit = 1
CY
instruction set in the range of addresses 04DAH to 05D9H).
User's Manual U12326EJ4V0UM
Conditional Branch by Bit Test (Byte Data Bit = 1)
b(Number of bytes)
3
4
3
3
3
Branch if True

Advertisement

Table of Contents
loading

Table of Contents