beautypg.com

Op code map, Table 48, 1st op code map instruction format: xx – Zilog Z80180 User Manual

Page 263: Table 48. 1st op code map instruction format: xx

background image

Z8018x

Family MPU User Manual

247

UM005003-0703

Op Code Map

Table 48. 1st Op Code Map Instruction Format: XX

ww (L0 = ALL)

L0 = 0~7

BC

DE

HL

SP

BC

DE

HL

AF

zz

g (LO = 0~7)

NZ

NC

P0

P

f

B

D

H

(HL)

B

D

H

(HL)

00H

10H

20H

30H

v

0000

0001

0010

0011

0100

0101

0110 0111

1000

1001

1010

1011

1100

1101

1110

1111

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

S

(HI

=

A

L

L

)

B

0000

0

N0P

DJNZj JR

NZ,j

JR
NC,j

LD g, s

note 1)

ADD
A,s

SUB s AND s OR s

RET f

0

C

0001

1

LD ww, mn

POP zz

1

D

0010

2

LD (ww), A

LD
(mn)
,HL

LD
(mn),
A

JP f, mn

2

E

0011

3

INC ww

JP mn OUT

(m),A

EX(SP),
HL

DI

3

H

0100

4

INC g

note1

CALL f, mn

4

L

0101

5

DEC g

note1

PUSH zz

5

(HL) 0110

6

LD g,m

note1 note2

HALT note2

note2

note2

note2

ADD
A,m

SUB m

AND m OR m 6

A

0111

7

RLCA

RLA

DAA SCF

RST v

7

B

1000

8

EXAF,A
F’

JR j

JR Z,j JR C,j

LD g, s

ADC
A,s

SBC
A,s

XOR s CP s

RET f


8

C

1001

9

ADD HL, ww

RET

EXX

JP(HL)

LD
SP,
HL

9

D

1010

A

LD A,(ww)

LD
HL,
(mn)

LD A,
(mn)

JP f, mn

A

E

1011

B

DEC ww

Table2 IN A(m) EXDE,H

L

EI

B

H

1100

C

INC g

CALL f, mn

C

L

1101

D

DEC g

CALL
mn

note3

Table3

note3 D

(HL) 1110

E

LD g,m

note2

note2

note2

note2

note2

ADC
A,m

SBC A,m XOR m CP m E

A

1111

F

RRCA

RRA CPL

CCF

RST v

F

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

C

E

L

A

C

E

L

A

Z

C

PE

M

f

g(L0 = 8~F)

08H

18H

28H

3BH v

LO = 8~F

LO

HI

This manual is related to the following products: