Inc (ix+d) – Zilog Z08470 User Manual

Page 178

Advertising
background image

Z80 Instruction Set

UM008007-0715

166

Z80 CPU
User Manual

INC (IX+d)

Operation

(IX+d) ← (IX+d) + 1

Op Code

INC

Operands

(IX+d)

Description

The contents of Index Register IX (register pair IX) are added to the two’s-complement
displacement integer, d, to point to an address in memory. The contents of this address are
then incremented.

Condition Bits Affected

S is set if result is negative; otherwise, it is reset.

Z is set if result is 0; otherwise, it is reset.

H is set if carry from bit 3; otherwise, it is reset.

P/V is set if (IX+d) was

7Fh

before operation; otherwise, it is reset.

N is reset.

C is not affected.

Example

If Index Register pair IX contains

2020h

and memory location

2030h

contains byte

34h

,

then upon the execution of an INC (IX+

10h

) instruction, memory location

2030h

con-

tains

35h

.

M Cycles

T States

4 MHz E.T.

6

23 (4, 4, 3, 5, 4, 3)

5.75

1

1

1

0

1

1

0

1

DD

0

0

1

0

0

1

1

0

34

d

Advertising
This manual is related to the following products: