1 |
3 |
gdevic |
Source: http://arcfn.com/files/z80-pla-table.html
|
2 |
|
|
98 . 1 . . . 1 . 1 1 . . 1 . 1 . . . 1 1 . 1101x011 e out (*),a/in a,(*)
|
3 |
|
|
97 . 1 . . . 1 . 1 1 . . 1 . 1 . . . 1 . 1 1111x011 e di/ei
|
4 |
|
|
96 . . . 1 1 . . 1 . 1 . 1 1 . . . . . . . 01xxx110 g im n
|
5 |
|
|
95 . 1 . . 1 . . 1 . 1 . 1 1 . 1 . . 1 . 1 01110110 e halt
|
6 |
|
|
GND
|
7 |
|
|
94 . . . 1 1 . 1 . 1 . 1 . . 1 . . . . . 1 101xx000 g ldi/ldir/ldd/lddr
|
8 |
|
|
93 . . . 1 . 1 1 . 1 . 1 . . 1 . . . . . 1 101xx001 g cpi/cpir/cpd/cpdr
|
9 |
|
|
92 . 1 . . . 1 . 1 . 1 1 . 1 . 1 . . 1 . 1 00110111 e scf
|
10 |
|
|
91 . . . 1 . . . 1 1 . 1 . . 1 . . . . . 1 101xx01x g inx/outx/inxr/otxr
|
11 |
|
|
90 . 1 . . 1 . 1 . 1 . 1 . 1 . 1 . . 1 1 . 00010000 e djnz *
|
12 |
|
|
89 . 1 . . . 1 . 1 . 1 1 . 1 . . 1 . 1 . 1 00111111 e ccf
|
13 |
|
|
88 1 . . . . . . . . . . . . . . 1 1 . . 1 xx101xxx d 101 (XOR)
|
14 |
|
|
87 . . . 1 . 1 . 1 . 1 . 1 1 . . . . 1 1 . 0101x111 g ld a,i / ld a,r
|
15 |
|
|
GND
|
16 |
|
|
86 1 . . . . . . . . . . . . . 1 . . 1 . 1 xx110xxx d 110 (OR)
|
17 |
|
|
85 1 . . . . . . . . . . . . . 1 . 1 . . 1 xx100xxx d 100 (AND)
|
18 |
|
|
--- bit 3
|
19 |
|
|
84 1 . . . . . . . . . . . . . 1 . 1 . 1 . xx000xxx d 000 (ADD)
|
20 |
|
|
83 . . . 1 . 1 . 1 . 1 . 1 1 . . . . 1 1 . 0101x111 g ld a,i/a,r
|
21 |
|
|
82 . . . 1 1 . 1 . . 1 . 1 1 . . . . . . . 01xxx100 g neg
|
22 |
|
|
81 . 1 . . . 1 . 1 . 1 1 . 1 . . 1 1 . . 1 00101111 e cpl
|
23 |
|
|
80 1 . . . . . . . . . . . . . . 1 1 . 1 . xx001xxx d 001 (ADC)
|
24 |
|
|
GND
|
25 |
|
|
79 1 . . . . . . . . . . . . . . 1 . 1 1 . xx011xxx d 011 (SBC)
|
26 |
|
|
78 1 . . . . . . . . . . . . . 1 . . 1 1 . xx010xxx d 010 (SUB)
|
27 |
|
|
--- bit 4
|
28 |
|
|
77 . 1 . . . 1 . 1 . 1 1 . 1 . 1 . 1 . . 1 00100111 e daa
|
29 |
|
|
76 1 . . . . . . . . . . . . . . 1 . 1 . 1 xx111xxx d 111 (CP)
|
30 |
|
|
75 . 1 . . . 1 1 . . 1 1 . 1 . . . . . . . 00xxx101 e dec r
|
31 |
|
|
74 . . 1 . . . . . . . . 1 . 1 . . . . . . 11xxxxxx f set b,r
|
32 |
|
|
73 . . 1 . . . . . . . 1 . . 1 . . . . . . 10xxxxxx f res b,r
|
33 |
|
|
72 . . 1 . . . . . . . . 1 1 . . . . . . . 01xxxxxx f bit b,r
|
34 |
|
|
GND
|
35 |
|
|
71 . 1 . . . 1 . 1 . 1 1 . 1 . . . . . 1 . 000xx111 e rlca/rla/rrca/rra
|
36 |
|
|
70 . . 1 . . . . . . . 1 . 1 . . . . . . . 00xxxxxx f rlc r
|
37 |
|
|
69 . 1 . . . 1 1 . 1 . 1 . 1 . . 1 . . . . 00xx1001 e add hl,rr
|
38 |
|
|
68 . . . 1 1 . . 1 1 . . 1 1 . . . . . . . 01xxx010 g adc/sbc hl,rr
|
39 |
|
|
67 . . . 1 1 . 1 . 1 . . 1 1 . . . . . . . 01xxx000 g in
|
40 |
|
|
66 . 1 . . . . 1 . . 1 1 . 1 . . . . . . . 00xxx10x e inc/dec r
|
41 |
|
|
65 . 1 . . . . . . . . 1 . . 1 . . . . . . 10xxxxxx e add/sub/and/or/xor/cmp a,r
|
42 |
|
|
64 . 1 . . 1 . . 1 . 1 . 1 . 1 . . . . . . 11xxx110 e add/sub/and/or/xor/cmp a,imm
|
43 |
|
|
---
|
44 |
|
|
GND
|
45 |
|
|
63 . 1 . . 1 . . 1 . 1 1 . 1 . . . . . . . 00xxx110 e ld r,*
|
46 |
|
|
62 . . 1 . . . . . . . . . . . . . . . . . xxxxxxxx f For all CB opcodes
|
47 |
|
|
---
|
48 |
|
|
61 . 1 . . . . . . . . . 1 1 . . . . . . . 01xxxxxx e ld r,r'
|
49 |
|
|
60 . . . 1 . 1 . 1 . 1 . 1 1 . . . 1 . . 1 0110x111 g rrd/rld
|
50 |
|
|
---
|
51 |
|
|
---
|
52 |
|
|
---
|
53 |
|
|
GND
|
54 |
|
|
59 . 1 . . . . . . . . . 1 1 . 1 . . 1 . 1 01110xxx ce ld (hl),r
|
55 |
|
|
58 . 1 . . 1 . . 1 . 1 . 1 1 . . . . . . . 01xxx110 ce ld r,(hl)
|
56 |
|
|
---
|
57 |
|
|
57 . . . 1 . 1 . 1 . 1 . 1 1 . . . 1 . 1 . 0100x111 g ld i,a/r,a
|
58 |
|
|
56 . 1 . . . 1 . 1 . 1 . 1 . 1 . . . . . . 11xxx111 e rst p
|
59 |
|
|
55 . . 1 . 1 . . 1 . 1 . . . . . . . . . . xxxxx110 f Every CB op (hl)
|
60 |
|
|
54 . . 1 . . . . . . . . . . . . . . . . . xxxxxxxx bf Every CB with IX/IY
|
61 |
|
|
--- bit /0
|
62 |
|
|
53 . 1 . . . . 1 . . 1 1 . 1 . 1 . . 1 . 1 0011010x e inc/dec (hl)
|
63 |
|
|
GND
|
64 |
|
|
52 . 1 . . 1 . . 1 . 1 1 . . 1 . . . . . . 10xxx110 e add/sub/and/or/xor/cp (hl)
|
65 |
|
|
--- bit 4
|
66 |
|
|
51 . 1 . . . 1 1 . . 1 . 1 . 1 . 1 1 . . 1 11101101 e ED prefix
|
67 |
|
|
--- bit /1
|
68 |
|
|
--- bit /2
|
69 |
|
|
50 . 1 . . 1 . . 1 . 1 1 . 1 . 1 . . 1 . 1 00110110 e ld (hl),n
|
70 |
|
|
49 . . . . . 1 . 1 1 . . 1 . 1 . 1 1 . 1 . 11001011 b CB prefix with IX/IY
|
71 |
|
|
48 . 1 . . 1 . 1 . 1 . 1 . 1 . . . . . . 1 001xx000 e jr ss,e
|
72 |
|
|
GND
|
73 |
|
|
47 . 1 . . 1 . 1 . 1 . 1 . 1 . . 1 . 1 1 . 00011000 e jr e
|
74 |
|
|
46 . . . 1 . 1 1 . . 1 . 1 1 . . . . . . . 01xxx101 g reti/retn
|
75 |
|
|
45 . 1 . . 1 . 1 . 1 . . 1 . 1 . . . . . . 11xxx000 e ret cc
|
76 |
|
|
44 . 1 . . . 1 . 1 1 . . 1 . 1 . 1 1 . 1 . 11001011 e CB prefix
|
77 |
|
|
43 . 1 . . 1 . . 1 1 . . 1 . 1 . . . . . . 11xxx010 e jp cc,nn
|
78 |
|
|
42 . 1 . . 1 . 1 . . 1 . 1 . 1 . . . . . . 11xxx100 e call cc,nn
|
79 |
|
|
41 . 1 . . . 1 1 . . 1 . 1 . 1 . 1 . 1 . . 11x11101 e IX/IY
|
80 |
|
|
40 . 1 . . 1 . . 1 . 1 1 . 1 . 1 . . 1 . 1 00110110 be ld (ix+d),n
|
81 |
|
|
GND
|
82 |
|
|
39 . 1 . . 1 . 1 . 1 . 1 . 1 . . 1 1 . 1 . 00001000 e ex af,af'
|
83 |
|
|
38 . 1 . . 1 . . 1 1 . 1 . 1 . . . . 1 . 1 0011x010 e ld (nn),a/a,(nn)
|
84 |
|
|
37 . 1 . . . 1 . 1 1 . . 1 . 1 . . . 1 1 . 1101x011 e out (n),a/a,(n)
|
85 |
|
|
36 . 1 . . 1 . . 1 1 . 1 . 1 . . . . . 1 . 000xx010 e ld(rr),a/a,(rr)
|
86 |
|
|
35 . 1 . . . 1 1 . 1 . . 1 . 1 . 1 1 . 1 . 11001001 e ret
|
87 |
|
|
34 . . . 1 . 1 1 . 1 . . 1 1 . . . . . . . 01xxx001 g out (c),r
|
88 |
|
|
33 . . . 1 . 1 . 1 1 . . 1 1 . 1 . . . . . 01xx0011 g ld direction
|
89 |
|
|
32 . . . 1 . 1 . 1 . 1 . 1 1 . . . . . 1 . 010xx111 g ld i,a/a,i/r,a/a,r
|
90 |
|
|
GND
|
91 |
|
|
---
|
92 |
|
|
31 . . . 1 . 1 . 1 1 . . 1 1 . . . . . . . 01xxx011 g ld rr,(nn)/(nn),rr
|
93 |
|
|
30 . 1 . . 1 . . 1 1 . 1 . 1 . . . 1 . . 1 0010x010 e ld hl,(nn)/(nn),hl
|
94 |
|
|
29 . 1 . . . 1 . 1 1 . . 1 . 1 1 . 1 . 1 . 11000011 e jp nn
|
95 |
|
|
28 . 1 . . . 1 . 1 1 . . 1 . 1 1 . . 1 1 . 11010011 e out (n),a
|
96 |
|
|
--- bit 3
|
97 |
|
|
27 . . . 1 . . 1 . 1 . . 1 1 . . . . . . . 01xxx00x g in/out r,(c)
|
98 |
|
|
26 . 1 . . 1 . 1 . 1 . 1 . 1 . 1 . . 1 1 . 00010000 e djnz e
|
99 |
|
|
GND
|
100 |
|
|
25 . 1 . . . 1 . 1 . 1 1 . 1 . . . . . 1 . 000xx111 e rlca/rla/rrca/rra
|
101 |
|
|
24 . 1 . . . 1 1 . . 1 . 1 . 1 . 1 1 . 1 . 11001101 e call nn
|
102 |
|
|
---
|
103 |
|
|
23 . 1 . . . 1 1 . . . . 1 . 1 1 . . . . . 11xx0x01 e push/pop
|
104 |
|
|
---
|
105 |
|
|
22 . . . . . 1 . 1 1 . . 1 . 1 . 1 1 . 1 . 11001011 a CB prefix w/o IX/IY
|
106 |
|
|
21 . . . 1 1 . . 1 1 . 1 . . 1 . . . . . 1 101xx010 g inx/inxr
|
107 |
|
|
GND
|
108 |
|
|
20 . . . 1 . 1 . 1 1 . 1 . . 1 . . . . . 1 101xx011 g outx/otxr
|
109 |
|
|
---
|
110 |
|
|
19 . . . 1 . 1 1 . 1 . 1 . . 1 . . . . . 1 101xx001 g cpi/cpir/cpd/cpdr
|
111 |
|
|
18 . . . 1 1 . 1 . 1 . 1 . . 1 . . . . . 1 101xx000 g ldi/ldir/ldd/lddr
|
112 |
|
|
17 . 1 . . 1 . . 1 . 1 1 . 1 . . . . . . . 00xxx110 e ld r,n
|
113 |
|
|
GND
|
114 |
|
|
16 . 1 . . . 1 1 . . 1 . 1 . 1 1 . . . . . 11xx0101 e push rr
|
115 |
|
|
15 . . . 1 . 1 . 1 . 1 . 1 1 . . . 1 . . 1 0110x111 g rrd/rld
|
116 |
|
|
---
|
117 |
|
|
14 . 1 . . . 1 . 1 1 . 1 . 1 . . 1 . . . . 00xx1011 e dec rr
|
118 |
|
|
13 . 1 . . 1 . . 1 1 . 1 . 1 . 1 . . . . . 00xx0010 e ld direction
|
119 |
|
|
12 . . . 1 1 . 1 . 1 . 1 . . 1 . . . . . 1 101xx000 g ldi/ldir/ldd/lddr
|
120 |
|
|
11 . . . 1 . 1 1 . 1 . 1 . . 1 . . . . . 1 101xx001 g cpi/cpir/cpd/cpdr
|
121 |
|
|
10 . 1 . . . 1 . 1 1 . . 1 . 1 1 . 1 . . 1 11100011 e ex (sp),hl
|
122 |
|
|
GND
|
123 |
|
|
9 . 1 . . . 1 . 1 1 . 1 . 1 . . . . . . . 00xxx011 e inc/dec rr
|
124 |
|
|
8 . 1 . . 1 . . 1 1 . 1 . 1 . . . . . 1 . 000xx010 e ld (rr),a/a,(rr)
|
125 |
|
|
7 . 1 . . . 1 1 . 1 . 1 . 1 . 1 . . . . . 00xx0001 e ld rr,nn
|
126 |
|
|
6 . 1 . . . 1 1 . 1 . . 1 . 1 . 1 1 . . 1 11101001 e jp hl
|
127 |
|
|
5 . 1 . . . 1 1 . 1 . . 1 . 1 . 1 . 1 . 1 11111001 e ld sp,hl
|
128 |
|
|
4 . . . 1 . 1 . 1 . 1 . 1 1 . . . . . 1 . 010xx111 g ld x,a/a,x
|
129 |
|
|
GND
|
130 |
|
|
3 . 1 . . . 1 1 . . 1 . 1 . 1 . 1 . 1 . . 11x11101 e IX/IY prefix
|
131 |
|
|
2 . 1 . . . 1 . 1 1 . . 1 . 1 . 1 1 . . 1 11101011 e ex de,hl
|
132 |
|
|
1 . 1 . . . 1 1 . 1 . . 1 . 1 . 1 . 1 1 . 11011001 e exx
|
133 |
|
|
|