§ Базовый набор инструкции

0123456789ABCDEF
0000NOP
01LD
BC,**
02LD
(BC),A
03INC
BC
04INC
B
05DEC
B
06LD
B,*
07RLCA
08EX
AF,AF'
09ADD
HL,BC
0ALD
A,(BC)
0BDEC
BC
0CINC
C
0DDEC
C
0ELD
C,*
0FRRCA
1010DJNZ
*
11LD
DE,**
12LD
(DE),A
13INC
DE
14INC
D
15DEC
D
16LD
D,*
17RLA
18JR
*
19ADD
HL,DE
1ALD
A,(DE)
1BDEC
DE
1CINC
E
1DDEC
E
1ELD
E,*
1FRRA
2020JR
NZ,*
21LD
HL,**
22LD
(**),HL
23INC
HL
24INC
H
25DEC
H
26LD
H,*
27DAA
28JR
Z,*
29ADD
HL,HL
2ALD
HL,(**)
2BDEC
HL
2CINC
L
2DDEC
L
2ELD
L,*
2FCPL
3030JR
NC,*
31LD
SP,**
32LD
(**),A
33INC
SP
34INC
(HL)
35DEC
(HL)
36LD
(HL),*
37SCF
38JR
C,*
39ADD
HL,SP
3ALD
A,(**)
3BDEC
SP
3CINC
A
3DDEC
A
3ELD
A,*
3FCCF
4040LD
B,B
41LD
B,C
42LD
B,D
43LD
B,E
44LD
B,H
45LD
B,L
46LD
B,(HL)
47LD
B,A
48LD
C,B
49LD
C,C
4ALD
C,D
4BLD
C,E
4CLD
C,H
4DLD
C,L
4ELD
C,(HL)
4FLD
C,A
5050LD
D,B
51LD
D,C
52LD
D,D
53LD
D,E
54LD
D,H
55LD
D,L
56LD
D,(HL)
57LD
D,A
58LD
E,B
59LD
E,C
5ALD
E,D
5BLD
E,E
5CLD
E,H
5DLD
E,L
5ELD
E,(HL)
5FLD
E,A
6060LD
H,B
61LD
H,C
62LD
H,D
63LD
H,E
64LD
H,H
65LD
H,L
66LD
H,(HL)
67LD
H,A
68LD
L,B
69LD
L,C
6ALD
L,D
6BLD
L,E
6CLD
L,H
6DLD
L,L
6ELD
L,(HL)
6FLD
L,A
7070LD
(HL),B
71LD
(HL),C
72LD
(HL),D
73LD
(HL),E
74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XOR
A,*
EFRST
#28
F0F0RET
P
F1POP
AF
F2JP
P,**
F3DI
F4CALL
P, **
F5PUSH
AF
F6OR
A,*
F7RST
#30
F8RET
M
F9LD
SP,HL
FAJP
M,**
FBEI
FCCALL
M,**
FD(IY)
FECMP
A,*
FFRST
#38

§ Регистр флагов

Арх.7 6 5 4 3 2 1 0
Z80 S Z F5 H F3 P/V N C
КР580 S Z 0 A 0 P 1 C

§ Базовые инструкции Z80 (группированные)

7654_3210 I Операнды Такты T+ Заметки
Основной набор
00_000_000 NOP 4 1
00_001_000 EX AF,AF' 4 1
00_010_000 DJNZ * 13/8 1
00_011_000 JR * 12 1
00_1xx_000 JR cc, * 12/7 1 cc = {NZ, Z, NC, C}
00_xx0_001 LD r16, ** 10 2 r16 = {BC, DE, HL, SP}
00_xx1_001 ADD HL, r16 11
00_0x0_010 LD (r16), A 7 2
00_0x1_010 LD A, (r16) 7 2
00_100_010 LD (**), HL 16 4
00_101_010 LD HL, (**) 16
00_110_010 LD (**), A 13
00_111_010 LD A, (**) 13
00_xx0_011 INC r16 6
00_xx1_011 DEC r16 6
00_xxx_100 INC r8 4/11 r8 = {B, C, D, E, H, L, (HL), A}
00_xxx_101 DEC r8 4/11
00_xxx_110 LD r8, * 7/10
00_0xx_111 {s} 4 s = {RLCA, RRCA, RLA, RRA}
00_1xx_111 {s} 4 s = {DAA, CPL, SCF, CCF}
АЛУ
01_xxx_xxx LD r8, r8 4/7 [2:0]=Источник, [5:3]=Назначение
10_aaa_xxx {aaa} r8 4/7 aaa = {ADD, ADC, SUB, SBC, AND, XOR, OR, CP}
Дополнительный набор
11_xxx_000 RET ccc 11/5 ccc = {NZ, Z, NC, C, PO, PE, P, M}
11_xx0_001 POP r16 10 r16 = {BC, DE, HL, AF}
11_001_001 RET 10
11_011_001 EXX 4
11_101_001 JP (HL) 6
11_111_001 LD SP, HL 4
11_xxx_010 JP ccc, *** 10
11_000_011 JP ** 10
11_001_011 BITS +4T Префикс CBh
11_010_011 OUT (*), A 11
11_011_011 IN A, (*) 11
11_100_011 EX (SP), HL 19
11_101_011 EX DE, HL 4
11_110_011 DI 4
11_111_011 EI 4
11_xxx_100 CALL ccc, *** 17/10
11_xx0_101 PUSH r16 11
11_001_101 CALL ** 17
11_011_101 IX +4
11_101_101 ED +4
11_111_101 IY +4
11_xxx_110 {aaa} * 7
11_xxx_111 RST # 11 # = 8,10h...38h