NEC PD754144 User Manual page 269

4-bit single-chip microcontrollers
Table of Contents

Advertisement

SUBC rp'1, XA
Function: rp'1, CY
rp'1 – XA – CY
Subtracts the contents of register pair XA from the contents of register pair rp'1 (HL, DE, BC, XA', HL', DE', or
BC'), including the carry flag, and sets the result to specified register pair rp'1. If a borrow occurs as a result, the carry
flag is set; if not, the carry flag is reset.
AND A, #n4
Function: A
A
n4 n4 = l
ANDs 4-bit immediate data n4 with the contents of the A register, and sets the result to the A register.
Application example
To clear the higher 2 bits of the accumulator to 0
AND A, #0011B
AND A, @HL
Function: A
A
(HL)
ANDs the contents of the data memory addressed by register pair HL with the contents of the A register, and sets
the result to the A register.
AND XA, rp'
Function: XA
XA
ANDs the contents of register pair rp' (XA, HL, DE, BC, XA', HL', DE', or BC') with the contents of register pair
XA, and sets the result to register pair XA.
AND rp'1, XA
Function: rp'1
rp'1 XA
ANDs the contents of register pair XA with register pair rp'1 (HL, DE, BC, XA', HL', DE', or BC'), and sets the result
to a specified register pair.
CHAPTER 11 INSTRUCTION SET
: 0-FH
3-0
rp'
User's Manual U10676EJ3V0UM
269

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents