beautypg.com

Example – Zilog Z08470 User Manual

Page 251

background image

UM008007-0715

Z80 Instruction Description

Z80 CPU

User Manual

239

P/V is set if the parity of the Accumulator is even after an operation; otherwise, it is reset.

N is reset.

C is not affected.

Example

The HL register pair contains

5000h

and the Accumulator and memory location

5000h

contain the following data.

Upon the execution of an RRD instruction, the Accumulator and memory location

5000h

now contain:

1

0

0

0

0

1

0

0

7

6

4

1

0

2

5

3

Accumulator

0

0

0

0

0

0

1

0

7

6

4

1

0

2

5

3

(5000h)

1

0

0

0

0

0

0

0

7

6

4

1

0

2

5

3

Accumulator

0

1

0

1

0

0

0

0

7

6

4

1

0

2

5

3

(5000h)

This manual is related to the following products: