ADD IY,rr

Operation

IX <- IY + rr

Mnemonic

ADD

Operands

IY,rr

b7b6b5b4b3b2b1b0
1 1 1 1 1 1 0 1$FD
0 0 rr 1001

Description

The contents of register pair rr (any of register pairs BC, DE, IY, or SP) are added to the contents of Index Register IY, and the result is stored in IY. In the assembled object code, the rr operand is specified as follows:

Register
Pair
rHex
BC00$09
DE01$19
IY10$29
SP11$39

Condition Bits Affected

Sis not affected.
Zis not affected.
His set if carry from bit 11, otherwise it is reset.
P/Vis not affected.
Nis reset.
Cis set if carry from bit 15, otherwise it is reset.

Example

If Index Register IY contains $3333 and register pair BC contains $5555, then upon the execution of

	ADD	IY,BC

IY contains $8888.