Zilog Z08470 User Manual

Page 238

Advertising
background image

Z80 Instruction Set

UM008007-0715

226

Z80 CPU
User Manual

r identifies registers B, C, D, E, H, L, or A assembled as follows in the object code field:

Description

The contents of operand m are rotated right 1 bit position through the Carry flag. The con-
tents of bit 0 are copied to the Carry flag and the previous contents of the Carry flag are
copied to bit 7. Bit 0 is the least-significant bit.

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 reset.

P/V is set if parity even; otherwise, it is reset.

N is reset.

C is data from bit 0 of source register.

Example

The HL register pair contains

4343h

and memory location

4343h

and the Carry flag con-

tain the following data.

Register

r

B

000

C

001

D

010

E

011

H

100

L

101

A

111

Instruction

M Cycles

T States

4 MHz E.T.

RR r

2

8 (4, 4)

2.00

RR (HL)

4

15 (4, 4, 4, 3)

3.75

RR (IX+d)

6

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

5.75

RR (lY+d)

6

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

5.75

1

0

1

1

1

0

1

1

7

6

4

1

0

2

5

3

C

0

Advertising
This manual is related to the following products: