274
µPD750008 USER'S MANUAL
ADDS XA,#n8
Function: XA <– XA+n8 ; Skip if carry. n8 = I7-0: 00H-FFH
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 XA, rp’1
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.)