Operation Instructions - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

11.4.4 Operation instructions

ADDS A, #n4
Function: A
A+n4; Skip if carry. n4 = l
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
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
266
CHAPTER 11 INSTRUCTION SET
: 0 to FH
3-0
: 00H to FFH
7-0
User's Manual U10676EJ3V0UM

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents