beautypg.com

Zilog Z08470 User Manual

Page 143

background image

UM008007-0715

Z80 Instruction Description

Z80 CPU

User Manual

131

P/V is reset.

N is reset.

C is not affected.

Example

The HL register pair contains

11111h

, the DE register pair contains

2222h

, the BC regis-

ter pair contains

0003h

, and memory locations contain the following data.

Upon the execution of an LDIR instruction, the contents of register pairs and memory
locations now contain:

(1111h) contains 88h (2222h)

contains 66h

(1112h) contains 36h (2223h)

contains 59h

(1113h) contains A5h (2224h)

contains C5h

HL contains

1114h

DE contains

2225h

BC contains

0000h

(1111h) contains 88h (2222h)

contains

88h

(1112h) contains 36h

(2223h)

contains

36h

(1113h) contains A5h (2224h)

contains

A5h

This manual is related to the following products: