NEC PD750004 User Manual page 294

4 bit single-chip microcomputer
Table of Contents

Advertisement

µPD750008 USER'S MANUAL
ADDS XA,#n8
Function: XA <– XA+n8 ; Skip if carry.
Adds the 8-bit immediate data n8 to the contents of the XA register pair in binary, then skips the next
instruction if the addition generates a carry. The carry flag is not affected.
ADDS A,@HL
Function: A <– A+(HL) ; Skip if carry.
Adds the data at the data memory location addressed by the HL register pair to the contents of the A register
in binary, then skips the next instruction if the addition generates a carry. 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', BC') to the contents of the XA register
pair in binary, then skips the next instruction if the addition generates a carry. The carry flag is not affected.
ADDS rp'1,XA
Function: rp' <– rp'1+XA ; Skip if carry.
Adds the contents of the XA register pair to the contents of register pair rp'1 (HL, DE, BC, XA', HL', DE',
BC') in binary, then skips the next instruction if the addition generates a carry. The carry flag is not affected.
Example The register pair is left-shifted.
MOV
ADDS rp'1, XA
NOP
ADDC A,@HL
Function: A,CY <– A+(HL)+CY
Adds the data at the data memory location addressed by the HL register pair together with the carry flag
to the contents of the A register in binary. If the addition generates a carry, the carry flag is set. If no carry
is generated, the carry flag is reset.
If the execution of this instruction generates a carry when this instruction is immediately followed by the
ADDS A,#n4 instruction, the ADDS A,#n4 instruction is skipped. If no carry is generated, the ADDS A,#n4
instruction is executed, and the skip function of the ADDS A,#n4 instruction is disabled. Accordingly, a
combination of these instructions can be used for number system conversion. (See Section 11.1.)
274
XA, rp'1
n8 = I
: 00H-FFH
7-0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd750006Pd750008Pd75p0016

Table of Contents