beautypg.com

Figure 39. rotates and shifts – Zilog Z08470 User Manual

Page 64

background image

Z80 CPU Instructions

UM008007-0715

52

Z80 CPU
User Manual

Descriptions of the

Rotate and Shift Group

instructions begin on page 202.

Figure 39. Rotates and Shifts

Source

Type
of
Rotate
Shift

A

B

C

D

E

F

L

(HL) (IX+d) (lY+d)

A

RCL

CB

07

CB

00

CB

01

CB

02

CB

03

CB

04

CB

06

CB

0E

DD
CB

d

06

FD
CB

d

06

RLCA 07

RRC

CB

0F

CB

08

CB

09

CB

0A

CB

06

CB

0C

CB

0D

CB

0E

DD
CB

d

0E

FD
CB

d

0E

RRCA 0F

RL

CB

17

CB

10

CB

11

CB

12

CB

13

CB

14

CB

15

CB

16

DD
CB

d

16

FD
CB

d

16

RLA

17

RR

CB

1F

CB

18

CB

19

CB

1A

CB

1B

CB

1C

CB

1D

CB

1E

DD
CB

d

1E

FD
CB

d

1E

RRA

1F

SLA

CB

27

CB

20

CB

21

CB

22

CB

23

CB

24

CB

25

CB

26

DD
CB

d

26

FD
CB

d

26

SRA

CB

2F

CB

28

CB

29

CB

2A

CB

2B

CB

2C

CB

2D

CB

2E

DD
CB

d

2E

FD
CB

d

2E

SRL

CB

3F

CB

38

CB

39

CB

3A

CB

3B

CB

3C

CB

3D

CB

3E

DD
CB

d

3E

FD
CB

d

3E

ED

6F

ED

67

CY

CY

0

ACC

ACC

Rotate
Left Circular

Rotate
Right Circular

Rotate
Left

Rotate
Right

Shift
Left Arithmetic

Shift
Right Arithmetic

Shift
Right Logical

(HL)

(HL)

b

7

b

0

b

7

–b

4

b

3

–b

0

b

3

–b

0

Rotate
Digit
Right

Rotate
Digit
Left

Note:

This manual is related to the following products: