NEC 78K/0 Series User Manual page 114

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

Advertisement

BTCLR
[Instruction format]
[Operation]
[Operand]
Mnemonic
Operand(bit,$addr16)
BTCLR
saddr.bit, $addr16
sfr.bit, $addr16
A.bit, $addr16
PSW.bit, $addr16
[HL].bit, $addr16
[Flag]
bit =PSW.bit
Z
AC
×
×
[Description]
• If the 1st operand (bit) contents have been set (1), they are cleared (0) and branched to the address specified
by the 2nd operand.
If the 1st operand (bit) contents have not been set (1), no processing is carried out and the subsequent
instruction is executed.
• When the 1st operand (bit) is PSW.bit, the corresponding flag contents are cleared (0).
[Description example]
BTCLR PSW.0, $356H; When bit 0 (CY flag) of PSW is 1, the CY flag is cleared to 0 and branched to address
114
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
Conditional Branch and Clear by Bit Test (Byte Data Bit = 1)
BTCLR bit, $addr16
PC ← PC+b+jdisp8 if bit = 1, then bit ← 0
In all other cases
CY
Z
×
0356H (with the start of this instruction set in the range of addresses 02D4H to
03D3H).
User's Manual U12326EJ4V0UM
b(Number of bytes)
4
4
3
4
3
AC
CY
Branch if True and Clear

Advertisement

Table of Contents
loading

Table of Contents