1 |
2 |
MichaelA |
////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
//
|
3 |
|
|
// M65C02 Mode, Instruction, and Addressing Mode Mnemonics
|
4 |
|
|
//
|
5 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
6 |
|
|
|
7 |
|
|
// Convert Mode to Mnemonics
|
8 |
|
|
|
9 |
|
|
always @(Mode)
|
10 |
|
|
begin
|
11 |
|
|
case(Mode)
|
12 |
|
|
3'b000 : Op <= "STP";
|
13 |
|
|
3'b001 : Op <= "INV";
|
14 |
|
|
3'b010 : Op <= "BRK";
|
15 |
|
|
3'b011 : Op <= "JMP";
|
16 |
|
|
3'b100 : Op <= "STK";
|
17 |
|
|
3'b101 : Op <= "INT";
|
18 |
|
|
3'b110 : Op <= "MEM";
|
19 |
|
|
3'b111 : Op <= "WAI";
|
20 |
|
|
endcase
|
21 |
|
|
end
|
22 |
|
|
|
23 |
|
|
// Convert IR to Instruction Mnemonics
|
24 |
|
|
|
25 |
|
|
always @(IR)
|
26 |
|
|
begin
|
27 |
|
|
case(IR)
|
28 |
|
|
8'h00 : Opcode <= "BRK ";
|
29 |
|
|
8'h01 : Opcode <= "ORA ";
|
30 |
|
|
8'h02 : Opcode <= "NOP ";
|
31 |
|
|
8'h03 : Opcode <= "NOP ";
|
32 |
|
|
8'h04 : Opcode <= "TSB ";
|
33 |
|
|
8'h05 : Opcode <= "ORA ";
|
34 |
|
|
8'h06 : Opcode <= "ASL ";
|
35 |
|
|
8'h07 : Opcode <= "RMB0";
|
36 |
|
|
8'h08 : Opcode <= "PHP ";
|
37 |
|
|
8'h09 : Opcode <= "ORA ";
|
38 |
|
|
8'h0A : Opcode <= "ASL ";
|
39 |
|
|
8'h0B : Opcode <= "NOP ";
|
40 |
|
|
8'h0C : Opcode <= "TSB ";
|
41 |
|
|
8'h0D : Opcode <= "ORA ";
|
42 |
|
|
8'h0E : Opcode <= "ASL ";
|
43 |
|
|
8'h0F : Opcode <= "BBR0";
|
44 |
|
|
8'h10 : Opcode <= "BPL ";
|
45 |
|
|
8'h11 : Opcode <= "ORA ";
|
46 |
|
|
8'h12 : Opcode <= "ORA ";
|
47 |
|
|
8'h13 : Opcode <= "NOP ";
|
48 |
|
|
8'h14 : Opcode <= "TRB ";
|
49 |
|
|
8'h15 : Opcode <= "ORA ";
|
50 |
|
|
8'h16 : Opcode <= "ASL ";
|
51 |
|
|
8'h17 : Opcode <= "RMB1";
|
52 |
|
|
8'h18 : Opcode <= "CLC ";
|
53 |
|
|
8'h19 : Opcode <= "ORA ";
|
54 |
|
|
8'h1A : Opcode <= "INC ";
|
55 |
|
|
8'h1B : Opcode <= "NOP ";
|
56 |
|
|
8'h1C : Opcode <= "TRB ";
|
57 |
|
|
8'h1D : Opcode <= "ORA ";
|
58 |
|
|
8'h1E : Opcode <= "ASL ";
|
59 |
|
|
8'h1F : Opcode <= "BBR1";
|
60 |
|
|
8'h20 : Opcode <= "JSR ";
|
61 |
|
|
8'h21 : Opcode <= "AND ";
|
62 |
|
|
8'h22 : Opcode <= "NOP ";
|
63 |
|
|
8'h23 : Opcode <= "NOP ";
|
64 |
|
|
8'h24 : Opcode <= "BIT ";
|
65 |
|
|
8'h25 : Opcode <= "AND ";
|
66 |
|
|
8'h26 : Opcode <= "ROL ";
|
67 |
|
|
8'h27 : Opcode <= "RMB2";
|
68 |
|
|
8'h28 : Opcode <= "PLP ";
|
69 |
|
|
8'h29 : Opcode <= "AND ";
|
70 |
|
|
8'h2A : Opcode <= "ROL ";
|
71 |
|
|
8'h2B : Opcode <= "NOP ";
|
72 |
|
|
8'h2C : Opcode <= "BIT ";
|
73 |
|
|
8'h2D : Opcode <= "AND ";
|
74 |
|
|
8'h2E : Opcode <= "ROL ";
|
75 |
|
|
8'h2F : Opcode <= "BBR2";
|
76 |
|
|
8'h30 : Opcode <= "BMI ";
|
77 |
|
|
8'h31 : Opcode <= "AND ";
|
78 |
|
|
8'h32 : Opcode <= "AND ";
|
79 |
|
|
8'h33 : Opcode <= "NOP ";
|
80 |
|
|
8'h34 : Opcode <= "BIT ";
|
81 |
|
|
8'h35 : Opcode <= "AND ";
|
82 |
|
|
8'h36 : Opcode <= "ROL ";
|
83 |
|
|
8'h37 : Opcode <= "RMB3";
|
84 |
|
|
8'h38 : Opcode <= "SEC ";
|
85 |
|
|
8'h39 : Opcode <= "AND ";
|
86 |
|
|
8'h3A : Opcode <= "DEC ";
|
87 |
|
|
8'h3B : Opcode <= "NOP ";
|
88 |
|
|
8'h3C : Opcode <= "BIT ";
|
89 |
|
|
8'h3D : Opcode <= "AND ";
|
90 |
|
|
8'h3E : Opcode <= "ROL ";
|
91 |
|
|
8'h3F : Opcode <= "BBR3";
|
92 |
|
|
8'h40 : Opcode <= "RTI ";
|
93 |
|
|
8'h41 : Opcode <= "EOR ";
|
94 |
|
|
8'h42 : Opcode <= "NOP ";
|
95 |
|
|
8'h43 : Opcode <= "NOP ";
|
96 |
|
|
8'h44 : Opcode <= "NOP ";
|
97 |
|
|
8'h45 : Opcode <= "EOR ";
|
98 |
|
|
8'h46 : Opcode <= "LSR ";
|
99 |
|
|
8'h47 : Opcode <= "RMB4";
|
100 |
|
|
8'h48 : Opcode <= "PHA ";
|
101 |
|
|
8'h49 : Opcode <= "EOR ";
|
102 |
|
|
8'h4A : Opcode <= "LSR ";
|
103 |
|
|
8'h4B : Opcode <= "NOP ";
|
104 |
|
|
8'h4C : Opcode <= "JMP ";
|
105 |
|
|
8'h4D : Opcode <= "EOR ";
|
106 |
|
|
8'h4E : Opcode <= "LSR ";
|
107 |
|
|
8'h4F : Opcode <= "BBR4";
|
108 |
|
|
8'h50 : Opcode <= "BVC ";
|
109 |
|
|
8'h51 : Opcode <= "EOR ";
|
110 |
|
|
8'h52 : Opcode <= "EOR ";
|
111 |
|
|
8'h53 : Opcode <= "NOP ";
|
112 |
|
|
8'h54 : Opcode <= "NOP ";
|
113 |
|
|
8'h55 : Opcode <= "EOR ";
|
114 |
|
|
8'h56 : Opcode <= "LSR ";
|
115 |
|
|
8'h57 : Opcode <= "RMB5";
|
116 |
|
|
8'h58 : Opcode <= "CLI ";
|
117 |
|
|
8'h59 : Opcode <= "EOR ";
|
118 |
|
|
8'h5A : Opcode <= "PHY ";
|
119 |
|
|
8'h5B : Opcode <= "NOP ";
|
120 |
|
|
8'h5C : Opcode <= "NOP ";
|
121 |
|
|
8'h5D : Opcode <= "EOR ";
|
122 |
|
|
8'h5E : Opcode <= "LSR ";
|
123 |
|
|
8'h5F : Opcode <= "BBR5";
|
124 |
|
|
8'h60 : Opcode <= "RTS ";
|
125 |
|
|
8'h61 : Opcode <= "ADC ";
|
126 |
|
|
8'h62 : Opcode <= "NOP ";
|
127 |
|
|
8'h63 : Opcode <= "NOP ";
|
128 |
|
|
8'h64 : Opcode <= "STZ ";
|
129 |
|
|
8'h65 : Opcode <= "ADC ";
|
130 |
|
|
8'h66 : Opcode <= "ROR ";
|
131 |
|
|
8'h67 : Opcode <= "RMB6";
|
132 |
|
|
8'h68 : Opcode <= "PLA ";
|
133 |
|
|
8'h69 : Opcode <= "ADC ";
|
134 |
|
|
8'h6A : Opcode <= "ROR ";
|
135 |
|
|
8'h6B : Opcode <= "NOP ";
|
136 |
|
|
8'h6C : Opcode <= "JMP ";
|
137 |
|
|
8'h6D : Opcode <= "ADC ";
|
138 |
|
|
8'h6E : Opcode <= "ROR ";
|
139 |
|
|
8'h6F : Opcode <= "BBR6";
|
140 |
|
|
8'h70 : Opcode <= "BVS ";
|
141 |
|
|
8'h71 : Opcode <= "ADC ";
|
142 |
|
|
8'h72 : Opcode <= "ADC ";
|
143 |
|
|
8'h73 : Opcode <= "NOP ";
|
144 |
|
|
8'h74 : Opcode <= "STZ ";
|
145 |
|
|
8'h75 : Opcode <= "ADC ";
|
146 |
|
|
8'h76 : Opcode <= "ROR ";
|
147 |
|
|
8'h77 : Opcode <= "RMB7";
|
148 |
|
|
8'h78 : Opcode <= "SEI ";
|
149 |
|
|
8'h79 : Opcode <= "ADC ";
|
150 |
|
|
8'h7A : Opcode <= "PLY ";
|
151 |
|
|
8'h7B : Opcode <= "NOP ";
|
152 |
|
|
8'h7C : Opcode <= "JMP ";
|
153 |
|
|
8'h7D : Opcode <= "ADC ";
|
154 |
|
|
8'h7E : Opcode <= "ROR ";
|
155 |
|
|
8'h7F : Opcode <= "BBR7";
|
156 |
|
|
8'h80 : Opcode <= "BRA ";
|
157 |
|
|
8'h81 : Opcode <= "STA ";
|
158 |
|
|
8'h82 : Opcode <= "NOP ";
|
159 |
|
|
8'h83 : Opcode <= "NOP ";
|
160 |
|
|
8'h84 : Opcode <= "STY ";
|
161 |
|
|
8'h85 : Opcode <= "STA ";
|
162 |
|
|
8'h86 : Opcode <= "STX ";
|
163 |
|
|
8'h87 : Opcode <= "SMB0";
|
164 |
|
|
8'h88 : Opcode <= "DEY ";
|
165 |
|
|
8'h89 : Opcode <= "BIT ";
|
166 |
|
|
8'h8A : Opcode <= "TXA ";
|
167 |
|
|
8'h8B : Opcode <= "NOP ";
|
168 |
|
|
8'h8C : Opcode <= "STY ";
|
169 |
|
|
8'h8D : Opcode <= "STA ";
|
170 |
|
|
8'h8E : Opcode <= "STX ";
|
171 |
|
|
8'h8F : Opcode <= "BBS0";
|
172 |
|
|
8'h90 : Opcode <= "BCC ";
|
173 |
|
|
8'h91 : Opcode <= "STA ";
|
174 |
|
|
8'h92 : Opcode <= "STA ";
|
175 |
|
|
8'h93 : Opcode <= "NOP ";
|
176 |
|
|
8'h94 : Opcode <= "STY ";
|
177 |
|
|
8'h95 : Opcode <= "STA ";
|
178 |
|
|
8'h96 : Opcode <= "STX ";
|
179 |
|
|
8'h97 : Opcode <= "SMB1";
|
180 |
|
|
8'h98 : Opcode <= "TYA ";
|
181 |
|
|
8'h99 : Opcode <= "STA ";
|
182 |
|
|
8'h9A : Opcode <= "TXS ";
|
183 |
|
|
8'h9B : Opcode <= "NOP ";
|
184 |
|
|
8'h9C : Opcode <= "STZ ";
|
185 |
|
|
8'h9D : Opcode <= "STA ";
|
186 |
|
|
8'h9E : Opcode <= "STZ ";
|
187 |
|
|
8'h9F : Opcode <= "BBS1";
|
188 |
|
|
8'hA0 : Opcode <= "LDY ";
|
189 |
|
|
8'hA1 : Opcode <= "LDA ";
|
190 |
|
|
8'hA2 : Opcode <= "LDX ";
|
191 |
|
|
8'hA3 : Opcode <= "NOP ";
|
192 |
|
|
8'hA4 : Opcode <= "LDY ";
|
193 |
|
|
8'hA5 : Opcode <= "LDA ";
|
194 |
|
|
8'hA6 : Opcode <= "LDX ";
|
195 |
|
|
8'hA7 : Opcode <= "SMB2";
|
196 |
|
|
8'hA8 : Opcode <= "TAY ";
|
197 |
|
|
8'hA9 : Opcode <= "LDA ";
|
198 |
|
|
8'hAA : Opcode <= "TAX ";
|
199 |
|
|
8'hAB : Opcode <= "NOP ";
|
200 |
|
|
8'hAC : Opcode <= "LDY ";
|
201 |
|
|
8'hAD : Opcode <= "LDA ";
|
202 |
|
|
8'hAE : Opcode <= "LDX ";
|
203 |
|
|
8'hAF : Opcode <= "BBS2";
|
204 |
|
|
8'hB0 : Opcode <= "BCS ";
|
205 |
|
|
8'hB1 : Opcode <= "LDA ";
|
206 |
|
|
8'hB2 : Opcode <= "LDA ";
|
207 |
|
|
8'hB3 : Opcode <= "NOP ";
|
208 |
|
|
8'hB4 : Opcode <= "LDY ";
|
209 |
|
|
8'hB5 : Opcode <= "LDA ";
|
210 |
|
|
8'hB6 : Opcode <= "LDX ";
|
211 |
|
|
8'hB7 : Opcode <= "SMB3";
|
212 |
|
|
8'hB8 : Opcode <= "CLV ";
|
213 |
|
|
8'hB9 : Opcode <= "LDA ";
|
214 |
|
|
8'hBA : Opcode <= "TSX ";
|
215 |
|
|
8'hBB : Opcode <= "NOP ";
|
216 |
|
|
8'hBC : Opcode <= "LDY ";
|
217 |
|
|
8'hBD : Opcode <= "LDA ";
|
218 |
|
|
8'hBE : Opcode <= "LDX ";
|
219 |
|
|
8'hBF : Opcode <= "BBS3";
|
220 |
|
|
8'hC0 : Opcode <= "CPY ";
|
221 |
|
|
8'hC1 : Opcode <= "CMP ";
|
222 |
|
|
8'hC2 : Opcode <= "NOP ";
|
223 |
|
|
8'hC3 : Opcode <= "NOP ";
|
224 |
|
|
8'hC4 : Opcode <= "CPY ";
|
225 |
|
|
8'hC5 : Opcode <= "CMP ";
|
226 |
|
|
8'hC6 : Opcode <= "DEC ";
|
227 |
|
|
8'hC7 : Opcode <= "SMB4";
|
228 |
|
|
8'hC8 : Opcode <= "INY ";
|
229 |
|
|
8'hC9 : Opcode <= "CMP ";
|
230 |
|
|
8'hCA : Opcode <= "DEX ";
|
231 |
|
|
8'hCB : Opcode <= "WAI ";
|
232 |
|
|
8'hCC : Opcode <= "CPY ";
|
233 |
|
|
8'hCD : Opcode <= "CMP ";
|
234 |
|
|
8'hCE : Opcode <= "DEC ";
|
235 |
|
|
8'hCF : Opcode <= "BBS4";
|
236 |
|
|
8'hD0 : Opcode <= "BNE ";
|
237 |
|
|
8'hD1 : Opcode <= "CMP ";
|
238 |
|
|
8'hD2 : Opcode <= "CMP ";
|
239 |
|
|
8'hD3 : Opcode <= "NOP ";
|
240 |
|
|
8'hD4 : Opcode <= "NOP ";
|
241 |
|
|
8'hD5 : Opcode <= "CMP ";
|
242 |
|
|
8'hD6 : Opcode <= "DEC ";
|
243 |
|
|
8'hD7 : Opcode <= "SMB5";
|
244 |
|
|
8'hD8 : Opcode <= "CLD ";
|
245 |
|
|
8'hD9 : Opcode <= "CMP ";
|
246 |
|
|
8'hDA : Opcode <= "PHX ";
|
247 |
|
|
8'hDB : Opcode <= "STP ";
|
248 |
|
|
8'hDC : Opcode <= "NOP ";
|
249 |
|
|
8'hDD : Opcode <= "CMP ";
|
250 |
|
|
8'hDE : Opcode <= "DEC ";
|
251 |
|
|
8'hDF : Opcode <= "BBS5";
|
252 |
|
|
8'hE0 : Opcode <= "CPX ";
|
253 |
|
|
8'hE1 : Opcode <= "SBC ";
|
254 |
|
|
8'hE2 : Opcode <= "NOP ";
|
255 |
|
|
8'hE3 : Opcode <= "NOP ";
|
256 |
|
|
8'hE4 : Opcode <= "CPX ";
|
257 |
|
|
8'hE5 : Opcode <= "SBC ";
|
258 |
|
|
8'hE6 : Opcode <= "INC ";
|
259 |
|
|
8'hE7 : Opcode <= "SMB6";
|
260 |
|
|
8'hE8 : Opcode <= "INX ";
|
261 |
|
|
8'hE9 : Opcode <= "SBC ";
|
262 |
|
|
8'hEA : Opcode <= "NOP ";
|
263 |
|
|
8'hEB : Opcode <= "NOP ";
|
264 |
|
|
8'hEC : Opcode <= "CPX ";
|
265 |
|
|
8'hED : Opcode <= "SBC ";
|
266 |
|
|
8'hEE : Opcode <= "INC ";
|
267 |
|
|
8'hEF : Opcode <= "BBS6";
|
268 |
|
|
8'hF0 : Opcode <= "BEQ ";
|
269 |
|
|
8'hF1 : Opcode <= "SBC ";
|
270 |
|
|
8'hF2 : Opcode <= "SBC ";
|
271 |
|
|
8'hF3 : Opcode <= "NOP ";
|
272 |
|
|
8'hF4 : Opcode <= "NOP ";
|
273 |
|
|
8'hF5 : Opcode <= "SBC ";
|
274 |
|
|
8'hF6 : Opcode <= "INC ";
|
275 |
|
|
8'hF7 : Opcode <= "SMB7";
|
276 |
|
|
8'hF8 : Opcode <= "SED ";
|
277 |
|
|
8'hF9 : Opcode <= "SBC ";
|
278 |
|
|
8'hFA : Opcode <= "PLX ";
|
279 |
|
|
8'hFB : Opcode <= "NOP ";
|
280 |
|
|
8'hFC : Opcode <= "NOP ";
|
281 |
|
|
8'hFD : Opcode <= "SBC ";
|
282 |
|
|
8'hFE : Opcode <= "INC ";
|
283 |
|
|
8'hFF : Opcode <= "BBS7";
|
284 |
|
|
endcase
|
285 |
|
|
end
|
286 |
|
|
|
287 |
|
|
// Convert IR to Addressing Mode Mnemonics
|
288 |
|
|
|
289 |
|
|
always @(IR)
|
290 |
|
|
begin
|
291 |
|
|
case(IR)
|
292 |
|
|
8'h00 : AddrMd <= " #imm ";
|
293 |
|
|
8'h01 : AddrMd <= "(zp,X) ";
|
294 |
|
|
8'h02 : AddrMd <= " - ";
|
295 |
|
|
8'h03 : AddrMd <= " - ";
|
296 |
|
|
8'h04 : AddrMd <= " zp ";
|
297 |
|
|
8'h05 : AddrMd <= " zp ";
|
298 |
|
|
8'h06 : AddrMd <= " zp ";
|
299 |
|
|
8'h07 : AddrMd <= " zp ";
|
300 |
|
|
8'h08 : AddrMd <= " imp ";
|
301 |
|
|
8'h09 : AddrMd <= " #imm ";
|
302 |
|
|
8'h0A : AddrMd <= " acc ";
|
303 |
|
|
8'h0B : AddrMd <= " - ";
|
304 |
|
|
8'h0C : AddrMd <= " abs ";
|
305 |
|
|
8'h0D : AddrMd <= " abs ";
|
306 |
|
|
8'h0E : AddrMd <= " abs ";
|
307 |
|
|
8'h0F : AddrMd <= "zp,rel ";
|
308 |
|
|
8'h10 : AddrMd <= " rel ";
|
309 |
|
|
8'h11 : AddrMd <= "(zp),Y ";
|
310 |
|
|
8'h12 : AddrMd <= " (zp) ";
|
311 |
|
|
8'h13 : AddrMd <= " - ";
|
312 |
|
|
8'h14 : AddrMd <= " zp ";
|
313 |
|
|
8'h15 : AddrMd <= " zp,X ";
|
314 |
|
|
8'h16 : AddrMd <= " zp,X ";
|
315 |
|
|
8'h17 : AddrMd <= " zp ";
|
316 |
|
|
8'h18 : AddrMd <= " imp ";
|
317 |
|
|
8'h19 : AddrMd <= " abs,Y ";
|
318 |
|
|
8'h1A : AddrMd <= " acc ";
|
319 |
|
|
8'h1B : AddrMd <= " - ";
|
320 |
|
|
8'h1C : AddrMd <= " abs ";
|
321 |
|
|
8'h1D : AddrMd <= " abs,X ";
|
322 |
|
|
8'h1E : AddrMd <= " abs,X ";
|
323 |
|
|
8'h1F : AddrMd <= "zp,rel ";
|
324 |
|
|
8'h20 : AddrMd <= " abs ";
|
325 |
|
|
8'h21 : AddrMd <= "(zp,X) ";
|
326 |
|
|
8'h22 : AddrMd <= " - ";
|
327 |
|
|
8'h23 : AddrMd <= " - ";
|
328 |
|
|
8'h24 : AddrMd <= " zp ";
|
329 |
|
|
8'h25 : AddrMd <= " zp ";
|
330 |
|
|
8'h26 : AddrMd <= " zp ";
|
331 |
|
|
8'h27 : AddrMd <= " zp ";
|
332 |
|
|
8'h28 : AddrMd <= " imp ";
|
333 |
|
|
8'h29 : AddrMd <= " #imm ";
|
334 |
|
|
8'h2A : AddrMd <= " acc ";
|
335 |
|
|
8'h2B : AddrMd <= " - ";
|
336 |
|
|
8'h2C : AddrMd <= " abs ";
|
337 |
|
|
8'h2D : AddrMd <= " abs ";
|
338 |
|
|
8'h2E : AddrMd <= " abs ";
|
339 |
|
|
8'h2F : AddrMd <= "zp,rel ";
|
340 |
|
|
8'h30 : AddrMd <= " rel ";
|
341 |
|
|
8'h31 : AddrMd <= "(zp),Y ";
|
342 |
|
|
8'h32 : AddrMd <= " (zp) ";
|
343 |
|
|
8'h33 : AddrMd <= " - ";
|
344 |
|
|
8'h34 : AddrMd <= " zp,X ";
|
345 |
|
|
8'h35 : AddrMd <= " zp,X ";
|
346 |
|
|
8'h36 : AddrMd <= " zp,X ";
|
347 |
|
|
8'h37 : AddrMd <= " zp ";
|
348 |
|
|
8'h38 : AddrMd <= " imp ";
|
349 |
|
|
8'h39 : AddrMd <= " abs,Y ";
|
350 |
|
|
8'h3A : AddrMd <= " acc ";
|
351 |
|
|
8'h3B : AddrMd <= " - ";
|
352 |
|
|
8'h3C : AddrMd <= " abs,X ";
|
353 |
|
|
8'h3D : AddrMd <= " abs,X ";
|
354 |
|
|
8'h3E : AddrMd <= " abs,X ";
|
355 |
|
|
8'h3F : AddrMd <= "zp,rel ";
|
356 |
|
|
8'h40 : AddrMd <= " imp ";
|
357 |
|
|
8'h41 : AddrMd <= "(zp,X) ";
|
358 |
|
|
8'h42 : AddrMd <= " - ";
|
359 |
|
|
8'h43 : AddrMd <= " - ";
|
360 |
|
|
8'h44 : AddrMd <= " - ";
|
361 |
|
|
8'h45 : AddrMd <= " zp ";
|
362 |
|
|
8'h46 : AddrMd <= " zp ";
|
363 |
|
|
8'h47 : AddrMd <= " zp ";
|
364 |
|
|
8'h48 : AddrMd <= " imp ";
|
365 |
|
|
8'h49 : AddrMd <= " #imm ";
|
366 |
|
|
8'h4A : AddrMd <= " acc ";
|
367 |
|
|
8'h4B : AddrMd <= " - ";
|
368 |
|
|
8'h4C : AddrMd <= " abs ";
|
369 |
|
|
8'h4D : AddrMd <= " abs ";
|
370 |
|
|
8'h4E : AddrMd <= " abs ";
|
371 |
|
|
8'h4F : AddrMd <= "zp,rel ";
|
372 |
|
|
8'h50 : AddrMd <= " rel ";
|
373 |
|
|
8'h51 : AddrMd <= "(zp),Y ";
|
374 |
|
|
8'h52 : AddrMd <= " (zp) ";
|
375 |
|
|
8'h53 : AddrMd <= " - ";
|
376 |
|
|
8'h54 : AddrMd <= " - ";
|
377 |
|
|
8'h55 : AddrMd <= " zp,X ";
|
378 |
|
|
8'h56 : AddrMd <= " zp,X ";
|
379 |
|
|
8'h57 : AddrMd <= " zp ";
|
380 |
|
|
8'h58 : AddrMd <= " imp ";
|
381 |
|
|
8'h59 : AddrMd <= " abs,Y ";
|
382 |
|
|
8'h5A : AddrMd <= " imp ";
|
383 |
|
|
8'h5B : AddrMd <= " - ";
|
384 |
|
|
8'h5C : AddrMd <= " - ";
|
385 |
|
|
8'h5D : AddrMd <= " abs,X ";
|
386 |
|
|
8'h5E : AddrMd <= " abs,X ";
|
387 |
|
|
8'h5F : AddrMd <= "zp,rel ";
|
388 |
|
|
8'h60 : AddrMd <= " imp ";
|
389 |
|
|
8'h61 : AddrMd <= "(zp,X) ";
|
390 |
|
|
8'h62 : AddrMd <= " - ";
|
391 |
|
|
8'h63 : AddrMd <= " - ";
|
392 |
|
|
8'h64 : AddrMd <= " zp ";
|
393 |
|
|
8'h65 : AddrMd <= " zp ";
|
394 |
|
|
8'h66 : AddrMd <= " zp ";
|
395 |
|
|
8'h67 : AddrMd <= " zp ";
|
396 |
|
|
8'h68 : AddrMd <= " imp ";
|
397 |
|
|
8'h69 : AddrMd <= " #imm ";
|
398 |
|
|
8'h6A : AddrMd <= " acc ";
|
399 |
|
|
8'h6B : AddrMd <= " - ";
|
400 |
|
|
8'h6C : AddrMd <= "(abs) ";
|
401 |
|
|
8'h6D : AddrMd <= " abs ";
|
402 |
|
|
8'h6E : AddrMd <= " abs ";
|
403 |
|
|
8'h6F : AddrMd <= "zp,rel ";
|
404 |
|
|
8'h70 : AddrMd <= " rel ";
|
405 |
|
|
8'h71 : AddrMd <= "(zp),Y ";
|
406 |
|
|
8'h72 : AddrMd <= " (zp) ";
|
407 |
|
|
8'h73 : AddrMd <= " - ";
|
408 |
|
|
8'h74 : AddrMd <= " zp,X ";
|
409 |
|
|
8'h75 : AddrMd <= " zp,X ";
|
410 |
|
|
8'h76 : AddrMd <= " zp,X ";
|
411 |
|
|
8'h77 : AddrMd <= " zp ";
|
412 |
|
|
8'h78 : AddrMd <= " imp ";
|
413 |
|
|
8'h79 : AddrMd <= " abs,Y ";
|
414 |
|
|
8'h7A : AddrMd <= " imp ";
|
415 |
|
|
8'h7B : AddrMd <= " - ";
|
416 |
|
|
8'h7C : AddrMd <= "(abs,X)";
|
417 |
|
|
8'h7D : AddrMd <= " abs,X ";
|
418 |
|
|
8'h7E : AddrMd <= " abs,X ";
|
419 |
|
|
8'h7F : AddrMd <= "zp,rel ";
|
420 |
|
|
8'h80 : AddrMd <= " rel ";
|
421 |
|
|
8'h81 : AddrMd <= "(zp,X) ";
|
422 |
|
|
8'h82 : AddrMd <= " - ";
|
423 |
|
|
8'h83 : AddrMd <= " - ";
|
424 |
|
|
8'h84 : AddrMd <= " zp ";
|
425 |
|
|
8'h85 : AddrMd <= " zp ";
|
426 |
|
|
8'h86 : AddrMd <= " zp ";
|
427 |
|
|
8'h87 : AddrMd <= " zp ";
|
428 |
|
|
8'h88 : AddrMd <= " imp ";
|
429 |
|
|
8'h89 : AddrMd <= " #imm ";
|
430 |
|
|
8'h8A : AddrMd <= " imp ";
|
431 |
|
|
8'h8B : AddrMd <= " - ";
|
432 |
|
|
8'h8C : AddrMd <= " abs ";
|
433 |
|
|
8'h8D : AddrMd <= " abs ";
|
434 |
|
|
8'h8E : AddrMd <= " abs ";
|
435 |
|
|
8'h8F : AddrMd <= "zp,rel ";
|
436 |
|
|
8'h90 : AddrMd <= " rel ";
|
437 |
|
|
8'h91 : AddrMd <= "(zp),Y ";
|
438 |
|
|
8'h92 : AddrMd <= " (zp) ";
|
439 |
|
|
8'h93 : AddrMd <= " - ";
|
440 |
|
|
8'h94 : AddrMd <= " zp,X ";
|
441 |
|
|
8'h95 : AddrMd <= " zp,X ";
|
442 |
|
|
8'h96 : AddrMd <= " zp,Y ";
|
443 |
|
|
8'h97 : AddrMd <= " zp ";
|
444 |
|
|
8'h98 : AddrMd <= " imp ";
|
445 |
|
|
8'h99 : AddrMd <= " abs,Y ";
|
446 |
|
|
8'h9A : AddrMd <= " imp ";
|
447 |
|
|
8'h9B : AddrMd <= " - ";
|
448 |
|
|
8'h9C : AddrMd <= " abs ";
|
449 |
|
|
8'h9D : AddrMd <= " abs,X ";
|
450 |
|
|
8'h9E : AddrMd <= " abs,X ";
|
451 |
|
|
8'h9F : AddrMd <= "zp,rel ";
|
452 |
|
|
8'hA0 : AddrMd <= " #imm ";
|
453 |
|
|
8'hA1 : AddrMd <= "(zp,X) ";
|
454 |
|
|
8'hA2 : AddrMd <= " #imm ";
|
455 |
|
|
8'hA3 : AddrMd <= " - ";
|
456 |
|
|
8'hA4 : AddrMd <= " zp ";
|
457 |
|
|
8'hA5 : AddrMd <= " zp ";
|
458 |
|
|
8'hA6 : AddrMd <= " zp ";
|
459 |
|
|
8'hA7 : AddrMd <= " zp ";
|
460 |
|
|
8'hA8 : AddrMd <= " imp ";
|
461 |
|
|
8'hA9 : AddrMd <= " #imm ";
|
462 |
|
|
8'hAA : AddrMd <= " imp ";
|
463 |
|
|
8'hAB : AddrMd <= " - ";
|
464 |
|
|
8'hAC : AddrMd <= " abs ";
|
465 |
|
|
8'hAD : AddrMd <= " abs ";
|
466 |
|
|
8'hAE : AddrMd <= " abs ";
|
467 |
|
|
8'hAF : AddrMd <= "zp,rel ";
|
468 |
|
|
8'hB0 : AddrMd <= " rel ";
|
469 |
|
|
8'hB1 : AddrMd <= "(zp),Y ";
|
470 |
|
|
8'hB2 : AddrMd <= " (zp) ";
|
471 |
|
|
8'hB3 : AddrMd <= " - ";
|
472 |
|
|
8'hB4 : AddrMd <= " zp,X ";
|
473 |
|
|
8'hB5 : AddrMd <= " zp,X ";
|
474 |
|
|
8'hB6 : AddrMd <= " zp,Y ";
|
475 |
|
|
8'hB7 : AddrMd <= " zp ";
|
476 |
|
|
8'hB8 : AddrMd <= " imp ";
|
477 |
|
|
8'hB9 : AddrMd <= " abs,Y ";
|
478 |
|
|
8'hBA : AddrMd <= " imp ";
|
479 |
|
|
8'hBB : AddrMd <= " - ";
|
480 |
|
|
8'hBC : AddrMd <= " abs,X ";
|
481 |
|
|
8'hBD : AddrMd <= " abs,X ";
|
482 |
|
|
8'hBE : AddrMd <= " abs,Y ";
|
483 |
|
|
8'hBF : AddrMd <= "zp,rel ";
|
484 |
|
|
8'hC0 : AddrMd <= " #imm ";
|
485 |
|
|
8'hC1 : AddrMd <= "(zp,X) ";
|
486 |
|
|
8'hC2 : AddrMd <= " - ";
|
487 |
|
|
8'hC3 : AddrMd <= " - ";
|
488 |
|
|
8'hC4 : AddrMd <= " zp ";
|
489 |
|
|
8'hC5 : AddrMd <= " zp ";
|
490 |
|
|
8'hC6 : AddrMd <= " zp ";
|
491 |
|
|
8'hC7 : AddrMd <= " zp ";
|
492 |
|
|
8'hC8 : AddrMd <= " imp ";
|
493 |
|
|
8'hC9 : AddrMd <= " #imm ";
|
494 |
|
|
8'hCA : AddrMd <= " imp ";
|
495 |
|
|
8'hCB : AddrMd <= " - ";
|
496 |
|
|
8'hCC : AddrMd <= " abs ";
|
497 |
|
|
8'hCD : AddrMd <= " abs ";
|
498 |
|
|
8'hCE : AddrMd <= " abs ";
|
499 |
|
|
8'hCF : AddrMd <= "zp,rel ";
|
500 |
|
|
8'hD0 : AddrMd <= " rel ";
|
501 |
|
|
8'hD1 : AddrMd <= "(zp),Y ";
|
502 |
|
|
8'hD2 : AddrMd <= " (zp) ";
|
503 |
|
|
8'hD3 : AddrMd <= " - ";
|
504 |
|
|
8'hD4 : AddrMd <= " - ";
|
505 |
|
|
8'hD5 : AddrMd <= " zp,X ";
|
506 |
|
|
8'hD6 : AddrMd <= " zp,X ";
|
507 |
|
|
8'hD7 : AddrMd <= " zp ";
|
508 |
|
|
8'hD8 : AddrMd <= " imp ";
|
509 |
|
|
8'hD9 : AddrMd <= " abs,Y ";
|
510 |
|
|
8'hDA : AddrMd <= " imp ";
|
511 |
|
|
8'hDB : AddrMd <= " - ";
|
512 |
|
|
8'hDC : AddrMd <= " - ";
|
513 |
|
|
8'hDD : AddrMd <= " abs,X ";
|
514 |
|
|
8'hDE : AddrMd <= " abs,X ";
|
515 |
|
|
8'hDF : AddrMd <= "zp,rel ";
|
516 |
|
|
8'hE0 : AddrMd <= " #imm ";
|
517 |
|
|
8'hE1 : AddrMd <= "(zp,X) ";
|
518 |
|
|
8'hE2 : AddrMd <= " - ";
|
519 |
|
|
8'hE3 : AddrMd <= " - ";
|
520 |
|
|
8'hE4 : AddrMd <= " zp ";
|
521 |
|
|
8'hE5 : AddrMd <= " zp ";
|
522 |
|
|
8'hE6 : AddrMd <= " zp ";
|
523 |
|
|
8'hE7 : AddrMd <= " zp ";
|
524 |
|
|
8'hE8 : AddrMd <= " imp ";
|
525 |
|
|
8'hE9 : AddrMd <= " #imm ";
|
526 |
|
|
8'hEA : AddrMd <= " - ";
|
527 |
|
|
8'hEB : AddrMd <= " - ";
|
528 |
|
|
8'hEC : AddrMd <= " abs ";
|
529 |
|
|
8'hED : AddrMd <= " abs ";
|
530 |
|
|
8'hEE : AddrMd <= " abs ";
|
531 |
|
|
8'hEF : AddrMd <= "zp,rel ";
|
532 |
|
|
8'hF0 : AddrMd <= " rel ";
|
533 |
|
|
8'hF1 : AddrMd <= "(zp),Y ";
|
534 |
|
|
8'hF2 : AddrMd <= " (zp) ";
|
535 |
|
|
8'hF3 : AddrMd <= " - ";
|
536 |
|
|
8'hF4 : AddrMd <= " - ";
|
537 |
|
|
8'hF5 : AddrMd <= " zp,X ";
|
538 |
|
|
8'hF6 : AddrMd <= " zp,X ";
|
539 |
|
|
8'hF7 : AddrMd <= " zp ";
|
540 |
|
|
8'hF8 : AddrMd <= " imp ";
|
541 |
|
|
8'hF9 : AddrMd <= " abs,Y ";
|
542 |
|
|
8'hFA : AddrMd <= " imp ";
|
543 |
|
|
8'hFB : AddrMd <= " - ";
|
544 |
|
|
8'hFC : AddrMd <= " - ";
|
545 |
|
|
8'hFD : AddrMd <= " abs,X ";
|
546 |
|
|
8'hFE : AddrMd <= " abs,X ";
|
547 |
|
|
8'hFF : AddrMd <= "zp,rel ";
|
548 |
|
|
endcase
|
549 |
|
|
end
|