|
Приложения к системным рестартам - система команд процессора Z-8Q-A (сводная таблица кодов).
|
10.5 Система команд процессора Z-8Q-A (сводная таблица кодов)
|
00 |
01 |
02 |
03 |
04 |
05 |
06 |
07 |
08 |
09 |
OA |
OB |
ОС |
OD |
OE |
OF |
00 |
NOP |
LD
BC,nn |
LD (BC)fA |
INC ВС |
INC В |
DEC В |
LD BFn |
RLCA |
EX AFfAF' |
ADD HLfBC |
LD А,(ВС) |
DEC ВС |
INC С |
DEC С |
LD CF n |
RRCA |
10 |
DJNZ dis |
LD
DEFnn |
LD (DE),A |
INC DE |
INC D |
DEC D |
LD DFn |
RLA |
JR
dis |
ADD HL,DE |
LD A, (DE) |
DEC DE |
INC E |
DEC E |
LD EFn |
RRA |
20 |
JR nzFdis |
LD HLFnn |
LD (nn)HL |
INC HL |
INC H |
DEC H |
LD H, n |
DAA |
JR z,dis |
ADD
HL F HL |
LD HL(nn) |
DEC HL |
INC L |
DEC L |
LD L, n |
CPL |
30 |
JR ncFdis |
LD
SP F nn |
LD (nn)fA |
INC SP |
INC (HL) |
DEC (HL) |
LD (HL),n |
SCF |
JR
cFdis |
ADD HLFSP |
LD A,(nn) |
DEC SP |
INC A |
DEC A |
LD A, n |
CCF |
40 |
ld в, в |
ld в, с |
LD B, D |
ld
bfe |
ld в, h |
LD BFL |
LD В,(HL) |
LD B,A |
LD С, В |
LD C,C |
LD CfD |
LD C,E |
LD С, H |
LD C,L |
LD CF(HL) |
LD CfA |
50 |
LD DfB |
LD DfC |
LD DfD |
LD
dfe |
LD DfH |
LD DFL |
LD
d,(hl) |
LD DfA |
LD
efb |
LD
e,c |
LD E,D |
LD EFE |
LD
efh |
LD E, L |
LD E F(HL) |
LD EFA |
60 |
LD H,B |
LD H, С |
LD HfD |
LD
hfe |
LD HFH |
LD
hfl |
ld h,(hl) |
LD HfA |
LD
lfb |
LD LFC |
ld lfd |
LD L , E |
ld
lfh |
LD LFL |
LD L,(HL) |
и
LD LfA |
70 |
LD (HL)FB |
LD (HL)FC |
LD (HL)FD |
LD (HL)fE |
LD (HL ) F H |
LD (HL)FL |
HALT |
LD (HL),A |
LD AfB |
LD AFC |
ld afd |
LD а, е |
ld a, h |
LD AFL |
LD AF(HL) |
LD AfA |
80 |
ADD AfB |
ADD AfC |
ADD AfD |
ADD AfE |
ADD AFH |
ADD A,L |
ADD A,(HL) |
add A,A |
ADC А,В |
ADC AFC |
adc afd |
adc
afe |
ADC A, H |
adc afl |
ADC A,(HL) |
ADC A,A |
90 |
sub В |
sub С |
sub D |
sub E |
sub H |
sub L |
sub (hl) |
sub A |
SBC AFB |
SBC AfC |
SBC AFD |
SBC a,e |
SBC AFH |
SBC AFL |
SBC A,(HL) |
SBC AfA |
АО |
AND
В |
AND
С |
AND D |
AND
e |
AND
H |
AND
L |
AND (HL) |
AND A |
XOR В |
XOR С |
XOR D |
XOR
е |
XOR h |
XOR L |
XOR (HL) |
XOR A |
ВО |
OR В |
OR С |
OR D |
OR e |
OR H |
OR L |
OR (HL) |
OR A |
CP В |
cp с |
CP D |
CP е |
cp h |
CP L |
CP (HL) |
CP A |
СО |
RET nz |
POP ВС |
JP nz, nn |
JP nn |
CALL nzF nn |
PUSH ВС |
ADD A, n |
RST 0 |
RET z |
RET |
JP z F nn |
**** |
CALL z, nn |
CALL nn |
ADC A, n |
RST 8 |
D0 |
RET nc |
POP DE |
JP ncF nn |
out (n),A |
CALL ncF nn |
PUSH DE |
SUB n |
RST 10 |
RET с |
EXX |
JP с, nn |
IN A, (n) |
CALL cF nn |
**** |
SBC A, n |
RST 18 |
Е0 |
RET po |
POP HL |
JP poF nn |
EX (SP)HL |
CALL poF nn |
PUSH HL |
AND n |
RST 20 |
RET pe |
JP
(HL) |
JP pe F nn |
EX DEFHL |
CALL peF nn |
**** |
XOR n |
RST 28 |
F0 |
RET P |
POP AF |
JP p,nn |
DI |
CALL p,nn |
PUSH AF |
OR n |
RST 30 |
RET m |
LD
SPFHL |
JP mF nn |
EI |
CALL mF nn |
**** |
CP n |
RST 38 |
CB |
00 |
01 |
02 |
03 |
04 |
05 |
06 |
07 |
08 |
09 |
OA |
OB |
ОС |
OD |
OE |
OF |
00 |
RLC |
RLC |
RLC |
RLC |
RLC |
RLC |
RLC |
RLC |
RRC |
RRC |
RRC |
RRC |
RRC |
RRC |
RRC |
RRC |
|
В |
С |
D |
E |
H |
L |
(HL) |
A |
В |
С |
D |
E |
H |
L |
(HL) |
A |
10 |
RL |
RL |
RL |
RL |
RL |
RL |
RL |
RL |
RR |
RR |
RR |
RR |
RR |
RR |
RR |
RR |
|
В |
С |
D |
E |
H |
L |
(HL) |
A |
В |
С |
D |
E |
H |
L |
(HL) |
A |
20 |
SLA |
SLA |
SLA |
SLA |
SLA |
SLA |
SLA |
SLA |
SRA |
SRA |
SRA |
SRA |
SRA |
SRA |
SRA |
SRA |
|
В |
С |
D |
E |
H |
L |
(HL) |
A |
В |
С |
D |
E |
H |
L |
(HL) |
A |
30 |
|
|
|
|
|
|
|
|
SRL |
SRL |
SRL |
SRL |
SRL |
SRL |
SRL |
SRL |
|
|
|
|
|
|
|
|
|
В |
С |
D |
E |
H |
L |
(HL) |
A |
40 |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
|
0, В , |
0FC |
0, D |
0,E |
0, H |
ofl |
0F(HL) |
0FA |
l.B |
l.C |
l.D |
l.E |
l.H |
l.L |
l.(HL) |
l.A |
50 |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
|
2,B |
2,С |
2, D |
2'E |
2,H |
2 F L |
2,(HL) |
2 F A |
3,B |
3FC |
3FD |
3, E |
3, H |
3, L |
3,(HL) |
3FA |
60 |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
|
4,В |
4, С |
4,D |
4,E |
4 F H |
4 F L |
4,(HL) |
4 F A |
5 F В |
5 F С |
5 F D |
5 , E |
5 F H |
5, L |
5,(HL) |
5, A |
70 |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
BIT |
|
6, В |
6, с |
6, D |
6, E |
6, H |
6FL |
6,(HL) |
6, A |
7 F В |
7 F С |
7FD |
7 . E |
7. H |
7 F L |
7 F(HL) |
7, A |
80 |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
|
0, В |
0,C |
0FD |
0, E |
0, H |
ofl |
of(hl) |
0FA |
l.B |
l.C |
1 F D |
l.E |
l.H |
l.L |
1.(HL) |
l.A |
90 |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
|
2,В |
2 FC |
2,D |
2,E |
2 F H |
2 F L |
2,(HL) |
2 F A |
3, в |
3FC |
3FD |
3fE |
3 f h |
3fL |
3,(HL) |
.3FA |
AO |
SET |
SET |
SET |
SET |
SET |
»
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
|
4,В |
4,С |
4 F D |
4,E |
4 F H |
4, L |
4 f(HL) |
4 F A |
5, B |
5,С |
5rD |
5 , E |
5, H |
5fL |
5,(HL) |
5 F A |
BO |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
SET |
.SET |
SET |
SET |
SET |
SET |
SET |
|
6,в |
6,С |
6, D |
6,E |
6, H |
6, L |
6,(HL) |
6, A |
7, B |
7fC |
7, D |
7, E |
7, H |
7fL |
7F(HL) |
7, A |
CO |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
|
0, в |
0,C |
0,D |
0,E |
0, H |
ofl |
0F(HL) |
0, A |
l.B |
l.C |
l.D |
1,E |
l.H |
l.L |
1.(hl) |
l.A |
DO |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
|
2,B |
2,С |
2,D |
2,E |
2 F H |
2 F L |
2,(HL) |
2 F A |
3, в |
3,C |
3FD |
3, E |
3,H |
3fL |
3f(HL) |
3, A |
EO |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
|
4,B |
4,С |
4 F D |
4 F E |
4 F H |
4 F l |
4 Л HL) |
4, A |
5, B |
5,С |
5, D |
5 F E |
5 F H |
5 F L |
5,(HL) |
5, A |
FO |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
RES |
|
6, В |
6,С |
6, D |
6,E |
6, H |
6fL |
6,(HL) |
6F A |
7. в |
7.С |
7, D |
7. E |
7 F H |
7 F L |
7.(hl) |
7,A |
ED |
00 |
01 |
02 |
03 |
04 |
05 |
06 |
07 |
08 |
09 |
OA |
OB |
ОС |
OD |
OE |
OF |
00 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
IN ВДС) |
OUT (C),B |
SBC HLfBC |
LD (nn)BC |
NEG |
RETN |
IM 0 |
LD I, A |
IN C,(C) |
OUT (C)FC |
ADC HLfBC |
LD BC(nn) |
|
RETI |
|
LD RfA |
50 |
IN D,(C) |
OUT (C) ,D |
SBC
hlfde |
LD (nn)DE |
|
|
IM 1 |
|
IN
E, (C) |
OUT (C)fE |
ADC HLfDE |
LD DE(nn) |
|
|
IM 2 |
|
60 |
IN H, (C) |
OUT (C),H |
SBC HL F HL |
|
|
|
|
RRD |
IN
L,(C) |
OUT (C)FL |
ADC HL F HL |
|
|
|
|
RLD |
70 |
|
|
SBC HLFSP |
LD (nn)SP |
|
|
|
|
IN
A, (C) |
OUT (C)FA |
ADC HLFSP |
LD SP(nn) |
|
|
|
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AO |
LDI |
CPI |
INI |
OUT I |
|
|
|
|
LDD |
CPD |
IND |
OUTD |
|
|
|
|
BO |
LDIR |
CP IR |
INIR |
OTIR |
|
|
|
|
LDDR |
CPDR |
INDR |
OTDR |
|
|
|
|
CO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IX -> HL при прибавлении DD IY -> HL при прибавлении FD.
|
|