beautypg.com

Add ix/y, sp, Operation, Description – Zilog EZ80F916 User Manual

Page 108: Condition bits affected attributes

background image

eZ80

®

CPU

User Manual

UM007715-0415

CPU Instruction Set

99

ADD IX/Y, SP

ADD without Carry

Operation

IX/Y

IX/Y+SP

Description

The CPU adds the contents of the multibyte Stack Pointer register (SP) to the contents of

the Index Register, IX or IY, and stores the results in the Index Register, IX or IY. In ADL

mode, or when the .L suffix is employed, SPL is used for SP. In Z80 mode, or when the .S

suffix is employed, SPS is used for SP.

Condition Bits Affected

Attributes

S

Not affected.

Z

Not affected.

H

Set if carry from bit 11; reset otherwise.

P/V

Not affected.

N

Reset.

C

Set if carry from MSB; reset otherwise.

Mnemonic

Operand

ADL Mode

Cycle

Opcode (hex)

ADD

IX,SP

X

2

DD, 39

ADD.S

IX,SP

1

3

52, DD, 39

ADD

.L

IX,SP

0

3

49, DD, 39

ADD

IY,SP

X

2

FD, 39

ADD.S

IY,SP

1

3

52, FD, 39

ADD

.L

IY,SP

0

3

49, FD, 39

This manual is related to the following products: