Subc rp’1, xa, And a, #n4, And a, @hl – NEC PD754144 User Manual
Page 269: And xa, rp, And rp’1, xa
CHAPTER 11 INSTRUCTION SET
269
User’s Manual U10676EJ3V0UM
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
3-0
: 0-FH
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 rp’
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.