4 operation instructions, Adds a, #n4, Adds xa, #n8 – NEC PD754144 User Manual
Page 266: Adds a, @hl, Adds xa, rp, Adds rp’1, xa
CHAPTER 11 INSTRUCTION SET
266
User’s Manual U10676EJ3V0UM
11.4.4 Operation instructions
ADDS A, #n4
Function: A
←
A+n4; Skip if carry. n4 = l
3-0
: 0 to FH
Adds 4-bit immediate data n4 to the contents of the A register. If a carry occurs as a result, the next instruction
is skipped. The carry flag is not affected.
If this instruction is used in combination with ADDC A, @HL or SUBC A, @HL instruction, it can be used as a base
number adjustment instruction (refer to 11.1.4 Base number adjustment instruction).
ADDS XA, #n8
Function: XA
←
XA+n8; Skip if carry. n8 = I
7-0
: 00H to FFH
Adds 8-bit immediate data n8 to the contents of register pair XA. If a carry occurs as a result, the next instruction
is skipped. The carry flag is not affected.
ADDS A, @HL
Function: A
← A + (HL); Skip if carry.
Adds the contents of the data memory addressed by register pair HL to the contents of the A register. If a carry
occurs as a result, the next instruction is skipped. The carry flag is not affected.
ADDS XA, rp’
Function: XA
← XA + rp’; Skip if carry.
Adds the contents of register pair rp’ (XA, HL, DE, BC, XA’, HL’, DE’, or BC’) to the contents of register pair XA.
If a carry occurs as a result, the next instruction is skipped. The carry flag is not affected.
ADDS rp’1, XA
Function: rp’
←
rp’1 + XA; Skip if carry.
Adds the contents of register pair XA to register pair rp’1 (HL, DE, BC, XA’, HL’, DE’, or BC’). If a carry occurs
as a result, the next instruction is skipped. The carry flag is not affected.
Application example
To shift a register pair to the left
MOV
XA, rp’1
ADDS
rp’1, XA
NOP