OpenCores
URL https://opencores.org/ocsvn/m65c02/m65c02/trunk

Subversion Repositories m65c02

[/] [m65c02/] [trunk/] [Src/] [Microprogram-Sources/] [M65C02_uPgm_V3a.out] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 MichaelA
---------------------- 2/23/2013 5:43:40 PM ------------------------
2
 
3
-- Instructions --
4
0x0000  RTS   RTS         .asm    0       -- Return from Subroutine
5
0x0001  BSR   BSR         .asm    1       -- Branch to subroutine
6
0x0002 FTCH   FTCH        .asm    2       -- Fetch next instruction
7
0x0003  BMW   BMW         .asm    3       -- Branch multi-way
8
0x0004 BRV0   BRV0        .asm    4       -- Branch via 0
9
0x0005 BRV1   BRV1        .asm    5       -- Branch via 1
10
0x0006 BRV2   BRV2        .asm    6       -- Branch via 2
11
0x0007 BRV3   BRV3        .asm    7       -- Branch via 3
12
0x0008 BTH0   BTH0        .asm    8       -- Branch if T0 is high
13
0x0009 BTH1   BTH1        .asm    9       -- Branch if T1 is high
14
0x000A BTH2   BTH2        .asm    10      -- Branch if T2 is high
15
0x000B BTH3   BTH3        .asm    11      -- Branch if T3 is high
16
0x000C BTL0   BTL0        .asm    12      -- Branch if T0 is low
17
0x000D BTL1   BTL1        .asm    13      -- Branch if T1 is low
18
0x000E BTL2   BTL2        .asm    14      -- Branch if T2 is low
19
0x000F BTL3   BTL3        .asm    15      -- Branch if T3 is low
20
 
21
-- Equates --
22
0x0000 PC          .equ    0       -- NA <= PC (default)
23
0x0001 Inc         .equ    1       -- NA <= PC  + 1
24
0x0002 MAR         .equ    2       -- NA <= MAR + 0
25
0x0003 Nxt         .equ    3       -- NA <= MAR + 1
26
0x0004 Stk         .equ    4       -- NA <= SP  + 0
27
0x0005 DPN         .equ    5       -- NA <= {  0, OP1} + 0
28
0x0006 DPX         .equ    6       -- NA <= {  0, OP1} + {0, X}
29
0x0007 DPY         .equ    7       -- NA <= {  0, OP1} + {0, Y}
30
0x0008 LDA         .equ    8       -- NA <= {OP2, OP1} + 0
31
0x000E LDAX        .equ    14      -- NA <= {OP2, OP1} + {0, X}
32
0x000F LDAY        .equ    15      -- NA <= {OP2, OP1} + {0, Y}
33
0x0001 Pls         .equ    1       -- PC <= PC + 1
34
0x0002 Jmp         .equ    2       -- PC <= NA
35
0x0003 Rel         .equ    3       -- PC <= PC + (CC ? {{8{DI[7]}}, DI} : 1)
36
0x0001 WR          .equ    1       -- Bus Operand Write
37
0x0002 RD          .equ    2       -- Bus Operand Read
38
0x0003 IF          .equ    3       -- Bus Insruction Fetch
39
0x0000 ALU         .equ    0       -- M   <= DI
40
0x0001 OP2         .equ    1       -- OP2 <= DI
41
0x0002 OP1         .equ    2       -- OP1 <= DI
42
0x0003 IR          .equ    3       -- IR  <= DI
43
0x0001 PCH         .equ    1       -- DO  <= PCH
44
0x0002 PCL         .equ    2       -- DO  <= PCL
45
0x0003 PSW         .equ    3       -- DO  <= PSW (P)
46
0x0002 Psh         .equ    2       -- S <= S - 1
47
0x0003 Pop         .equ    3       -- S <= S + 1
48
0x0001 WE_A        .equ    1       -- Write Enable A
49
0x0002 WE_X        .equ    2       -- Write Enable X
50
0x0003 WE_Y        .equ    3       -- Write Enable Y
51
0x0004 WE_R        .equ    4       -- Write Enable Register - write selected register
52
0x0005 WE_S        .equ    5       -- Write Enable S
53
0x0006 WE_P        .equ    6       -- Write Enable P
54
0x0007 WE_M        .equ    7       -- Write Enable M(emory)
55
0x0001 ISR         .equ    1       -- Assert ISR: Clear D, Set I
56
 
57
-- Defines --
58
0x0004 Inst        .def    4       -- Instruction
59
0x0009 BA          .def    9       -- Branch Address
60
0x0001 ZP          .def    1       -- Force mod 256 Address Calculation
61
0x0002 MemTyp      .def    2       -- Memory Access Type Control Field
62
0x0004 NA_Cntl     .def    4       -- Next Address Control Field
63
0x0002 PC_Cntl     .def    2       -- Program Counter Control Field
64
0x0002 IO_Cntl     .def    2       -- I/O Cycle Control Field
65
0x0002 DIO_Cntl    .def    2       -- Data Input/Output Demux/Mux Control Field
66
0x0002 Stk_Cntl    .def    2       -- ALU Stack Pointer Control Field
67
0x0003 RegWE_Cntl  .def    3       -- Register Write Enable (A, X, Y, S, P)
68
0x0001 PSW_Cntl    .def    1       -- Asserted to Clear D and Set I in PSW
69
 
70
-- Labels --
71
0x0000 _Start
72
0x0001 _Rst
73
0x0020 _Nxt
74
0x0020 _Psh
75
0x0020 _Pop
76
0x0020 _Rel
77
0x0020 _Imm
78
0x0021 _Int
79
0x0022 _Brk
80
0x0027 _JSR
81
0x002A _RTI
82
0x002D _RTS
83
0x002E _Jmp
84
0x002F _JmpI
85
0x0032 _JmpXI
86
0x0035 _RO_DP
87
0x0036 _RO_DPX
88
0x0037 _RO_DPY
89
0x0038 _RO_DPI
90
0x003B _RO_DPXI
91
0x003E _RO_DPIY
92
0x0041 _RO_Abs
93
0x0043 _RO_AbsX
94
0x0045 _RO_AbsY
95
0x0047 _WO_DP
96
0x0048 _WO_DPX
97
0x0049 _WO_DPY
98
0x004A _WO_DPI
99
0x004D _WO_DPXI
100
0x0050 _WO_DPIY
101
0x0053 _WO_Abs
102
0x0055 _WO_AbsX
103
0x0057 _WO_AbsY
104
0x0060 _RMW
105
0x0062 _RMW_DP
106
0x0064 _RMW_DPX
107
0x0066 _RMW_DPY
108
0x0068 _RMW_Abs
109
0x006B _RMW_AbsX
110
0x006E _RMW_AbsY
111
0x0071 _BByx_dp_rel
112
0x0073 _End_uPgm
113
0x00FC _WAI
114
0x0100 _IDEC_Start
115
0x0100 _BRK_imm
116
0x0101 _BPL_rel
117
0x0102 _JSR_abs
118
0x0103 _BMI_rel
119
0x0104 _RTI_imp
120
0x0105 _BVC_rel
121
0x0106 _RTS_imp
122
0x0107 _BVS_rel
123
0x0108 _BRA_rel
124
0x0109 _BCC_re
125
0x010A _LDY_imm
126
0x010B _BCS_rel
127
0x010C _CPY_imm
128
0x010D _BNE_rel
129
0x010E _CPX_imm
130
0x010F _BEQ_rel
131
0x0110 _ORA_dpXi
132
0x0111 _ORA_dpiY
133
0x0112 _AND_dpXi
134
0x0113 _AND_dpiY
135
0x0114 _EOR_dpXi
136
0x0115 _EOR_dpiY
137
0x0116 _ADC_dpXi
138
0x0117 _ADC_dpiY
139
0x0118 _STA_dpXi
140
0x0119 _STA_dpiY
141
0x011A _LDA_dpXi
142
0x011B _LDA_dpiY
143
0x011C _CMP_dpXi
144
0x011D _CMP_dpiY
145
0x011E _SBC_dpXi
146
0x011F _SBC_dpiY
147
0x0120 _NOP_02
148
0x0121 _ORA_dpi
149
0x0122 _NOP_22
150
0x0123 _AND_dpi
151
0x0124 _NOP_42
152
0x0125 _EOR_dpi
153
0x0126 _NOP_62
154
0x0127 _ADC_dpi
155
0x0128 _NOP_82
156
0x0129 _STA_dpi
157
0x012A _LDX_imm
158
0x012B _LDA_dpi
159
0x012C _NOP_C2
160
0x012D _CMP_dpi
161
0x012E _NOP_E2
162
0x012F _SBC_dpi
163
0x0130 _NOP_03
164
0x0131 _NOP_13
165
0x0132 _NOP_23
166
0x0133 _NOP_33
167
0x0134 _NOP_43
168
0x0135 _NOP_53
169
0x0136 _NOP_63
170
0x0137 _NOP_73
171
0x0138 _NOP_83
172
0x0139 _NOP_93
173
0x013A _NOP_A3
174
0x013B _NOP_B3
175
0x013C _NOP_C3
176
0x013D _NOP_D3
177
0x013E _NOP_E3
178
0x013F _NOP_F3
179
0x0140 _TSB_dp
180
0x0141 _TRB_dp
181
0x0142 _BIT_dp
182
0x0143 _BIT_dpX
183
0x0144 _NOP_44
184
0x0145 _NOP_54
185
0x0146 _STZ_dp
186
0x0147 _STZ_dpX
187
0x0148 _STY_dp
188
0x0149 _STY_dpX
189
0x014A _LDY_dp
190
0x014B _LDY_dpX
191
0x014C _CPY_dp
192
0x014D _NOP_D4
193
0x014E _CPX_dp
194
0x014F _NOP_F4
195
0x0150 _ORA_dp
196
0x0151 _ORA_dpX
197
0x0152 _AND_dp
198
0x0153 _AND_dpX
199
0x0154 _EOR_dp
200
0x0155 _EOR_dpX
201
0x0156 _ADC_dp
202
0x0157 _ADC_dpX
203
0x0158 _STA_dp
204
0x0159 _STA_dpX
205
0x015A _LDA_dp
206
0x015B _LDA_dpX
207
0x015C _CMP_dp
208
0x015D _CMP_dpX
209
0x015E _SBC_dp
210
0x015F _SBC_dpX
211
0x0160 _ASL_dp
212
0x0161 _ASL_dpX
213
0x0162 _ROL_dp
214
0x0163 _ROL_dpX
215
0x0164 _LSR_dp
216
0x0165 _LSR_dpX
217
0x0166 _ROR_dp
218
0x0167 _ROR_dpX
219
0x0168 _STX_dp
220
0x0169 _STX_dpY
221
0x016A _LDX_dp
222
0x016B _LDX_dpY
223
0x016C _DEC_dp
224
0x016D _DEC_dpX
225
0x016E _INC_dp
226
0x016F _INC_dpX
227
0x0170 _RMB0_dp
228
0x0171 _RMB1_dp
229
0x0172 _RMB2_dp
230
0x0173 _RMB3_dp
231
0x0174 _RMB4_dp
232
0x0175 _RMB5_dp
233
0x0176 _RMB6_dp
234
0x0177 _RMB7_dp
235
0x0178 _SMB0_dp
236
0x0179 _SMB1_dp
237
0x017A _SMB2_dp
238
0x017B _SMB3_dp
239
0x017C _SMB4_dp
240
0x017D _SMB5_dp
241
0x017E _SMB6_dp
242
0x017F _SMB7_dp
243
0x0180 _PHP
244
0x0181 _CLC
245
0x0182 _PLP
246
0x0183 _SEC
247
0x0184 _PHA
248
0x0185 _CLI
249
0x0186 _PLA
250
0x0187 _SEI
251
0x0188 _DEY
252
0x0189 _TYA
253
0x018A _TAY
254
0x018B _CLV
255
0x018C _INY
256
0x018D _CLD
257
0x018E _INX
258
0x018F _SED
259
0x0190 _ORA_imm
260
0x0191 _ORA_absY
261
0x0192 _AND_imm
262
0x0193 _AND_absY
263
0x0194 _EOR_imm
264
0x0195 _EOR_absY
265
0x0196 _ADC_imm
266
0x0197 _ADC_absY
267
0x0198 _BIT_imm
268
0x0199 _STA_absY
269
0x019A _LDA_imm
270
0x019B _LDA_absY
271
0x019C _CMP_imm
272
0x019D _CMP_absY
273
0x019E _SBC_imm
274
0x019F _SBC_absY
275
0x01A0 _ASL_A
276
0x01A1 _INC_A
277
0x01A2 _ROL_A
278
0x01A3 _DEC_A
279
0x01A4 _LSR_A
280
0x01A5 _PHY
281
0x01A6 _ROR_A
282
0x01A7 _PLY
283
0x01A8 _TXA
284
0x01A9 _TXS
285
0x01AA _TAX
286
0x01AB _TSX
287
0x01AC _DEX
288
0x01AD _PHX
289
0x01AE _NOP
290
0x01AF _PLX
291
0x01B0 _NOP_0B
292
0x01B1 _NOP_1B
293
0x01B2 _NOP_2B
294
0x01B3 _NOP_3B
295
0x01B4 _NOP_4B
296
0x01B5 _NOP_5B
297
0x01B6 _NOP_6B
298
0x01B7 _NOP_7B
299
0x01B8 _NOP_8B
300
0x01B9 _NOP_9B
301
0x01BA _NOP_AB
302
0x01BB _NOP_BB
303
0x01BC _WAI_CB
304
0x01BD _STP_DB
305
0x01BE _NOP_EB
306
0x01BF _NOP_FB
307
0x01C0 _TSB_abs
308
0x01C1 _TRB_abs
309
0x01C2 _BIT_abs
310
0x01C3 _BIT_absX
311
0x01C4 _JMP_abs
312
0x01C5 _NOP_5C
313
0x01C6 _JMP_absi
314
0x01C7 _JMP_absXi
315
0x01C8 _STY_abs
316
0x01C9 _STZ_abs
317
0x01CA _LDY_abs
318
0x01CB _LDY_absX
319
0x01CC _CPY_abs
320
0x01CD _NOP_DC
321
0x01CE _CPX_abs
322
0x01CF _NOP_FC
323
0x01D0 _ORA_abs
324
0x01D1 _ORA_absX
325
0x01D2 _AND_abs
326
0x01D3 _AND_absX
327
0x01D4 _EOR_abs
328
0x01D5 _EOR_absX
329
0x01D6 _ADC_abs
330
0x01D7 _ADC_absX
331
0x01D8 _STA_abs
332
0x01D9 _STA_absX
333
0x01DA _LDA_abs
334
0x01DB _LDA_absX
335
0x01DC _CMP_abs
336
0x01DD _CMP_absX
337
0x01DE _SBC_abs
338
0x01DF _SBC_absX
339
0x01E0 _ASL_abs
340
0x01E1 _ASL_absX
341
0x01E2 _ROL_abs
342
0x01E3 _ROL_absX
343
0x01E4 _LSR_abs
344
0x01E5 _LSR_absX
345
0x01E6 _ROR_abs
346
0x01E7 _ROR_absX
347
0x01E8 _STX_abs
348
0x01E9 _STZ_absX
349
0x01EA _LDX_abs
350
0x01EB _LDX_absY
351
0x01EC _DEC_abs
352
0x01ED _DEC_absX
353
0x01EE _INC_abs
354
0x01EF _INC_absX
355
0x01F0 _BBR0_dp_rel
356
0x01F1 _BBR1_dp_rel
357
0x01F2 _BBR2_dp_rel
358
0x01F3 _BBR3_dp_rel
359
0x01F4 _BBR4_dp_rel
360
0x01F5 _BBR5_dp_rel
361
0x01F6 _BBR6_dp_rel
362
0x01F7 _BBR7_dp_rel
363
0x01F8 _BBS0_dp_rel
364
0x01F9 _BBS1_dp_rel
365
0x01FA _BBS2_dp_rel
366
0x01FB _BBS3_dp_rel
367
0x01FC _BBS4_dp_rel
368
0x01FD _BBS5_dp_rel
369
0x01FE _BBS6_dp_rel
370
0x01FF _BBS7_dp_rel
371
0x0200 _Last
372
0x0200 _end
373
 
374
File  Prog
375
Line  Line   Opcode                                Line
376
0582 0x0000 _Start: .org 0
377
0583 0x0000  60090000 BRV2 _Rst,0,1 -- Load {OP2, OP1} with Vector
378
0584 0x0001 _Rst:
379
0585 0x0001  20098280 FTCH $,0,1, LDA,, RD, OP1 -- Read Indirect Dst Ptr Lo
380
0586 0x0002  20113A40 FTCH $,0,1, Nxt, Jmp, RD, OP2 -- Read Indirect Dst Ptr Hi
381
0587  --
382
0588 0x0003  501907C0 BRV1 $,0,1,, Pls, IF, IR -- Instruction Fetch
383
0590  -- this space reserved for future use - boot loader for the microprogram ROMs
384
0592  --------------------------------------------------------------------------------
385
0593  --------------------------------------------------------------------------------
386
0594  -- 2-Way Jump Table: _Nxt and _Int
387
0595  --------------------------------------------------------------------------------
388
0596  --------------------------------------------------------------------------------
389
0597  -- Instruction Fetch and Execute Microstate
390
0598  --------------------------------------------------------------------------------
391
0000 0x0004  00000000 added by program
392
0000 0x0005  00000000 added by program
393
0000 0x0006  00000000 added by program
394
0000 0x0007  00000000 added by program
395
0000 0x0008  00000000 added by program
396
0000 0x0009  00000000 added by program
397
0000 0x000A  00000000 added by program
398
0000 0x000B  00000000 added by program
399
0000 0x000C  00000000 added by program
400
0000 0x000D  00000000 added by program
401
0000 0x000E  00000000 added by program
402
0000 0x000F  00000000 added by program
403
0000 0x0010  00000000 added by program
404
0000 0x0011  00000000 added by program
405
0000 0x0012  00000000 added by program
406
0000 0x0013  00000000 added by program
407
0000 0x0014  00000000 added by program
408
0000 0x0015  00000000 added by program
409
0000 0x0016  00000000 added by program
410
0000 0x0017  00000000 added by program
411
0000 0x0018  00000000 added by program
412
0000 0x0019  00000000 added by program
413
0000 0x001A  00000000 added by program
414
0000 0x001B  00000000 added by program
415
0000 0x001C  00000000 added by program
416
0000 0x001D  00000000 added by program
417
0000 0x001E  00000000 added by program
418
0000 0x001F  00000000 added by program
419
0600 0x0020 _Nxt: .org 32
420
0601 0x0020 _Psh:
421
0602 0x0020 _Pop:
422
0603 0x0020 _Rel:
423
0604 0x0020 _Imm:
424
0605 0x0020  510107C8 BRV1 _Nxt,0,1,, Pls, IF, IR,, WE_R -- Instruction Fetch/Execute
425
0607  --------------------------------------------------------------------------------
426
0608  -- Interrupt Entry - NMI, (unmasked) IRQ (falls through to second state of BRK)
427
0609  --------------------------------------------------------------------------------
428
0611 0x0021 _Int:
429
0612 0x0021  61114168 BRV2 _Brk,0,1, Stk,, WR, PCH, Psh, WE_R -- Push PCH, capture Vector
430
0614  --------------------------------------------------------------------------------
431
0615  -- BRK Entry - BRK #imm (_Int falls through to _Brk, see comment above)
432
0616  --------------------------------------------------------------------------------
433
0618 0x0022 _Brk:
434
0619 0x0022  211141A0 FTCH $,0,1, Stk,, WR, PCL, Psh -- Push PCL
435
0620 0x0023  211949E1 FTCH $,0,1, Stk, Jmp, WR, PSW, Psh,, ISR -- Push P; Clr D, Set I
436
0621  --
437
0622 0x0024  21218280 FTCH $,0,1, LDA,, RD, OP1 -- Read Indirect Dst Ptr Lo
438
0623 0x0025  21293A40 FTCH $,0,1, Nxt, Jmp, RD, OP2 -- Read Indirect Dst Ptr Hi
439
0624  --
440
0625 0x0026  513107C0 BRV1 $,0,1,, Pls, IF, IR -- Instruction Fetch
441
0627  --------------------------------------------------------------------------------
442
0628  -- Jump To Subroutine - JSR Abs (Not interruptable)
443
0629  --------------------------------------------------------------------------------
444
0631 0x0027 _JSR:
445
0632 0x0027  21390340 FTCH $,0,1,,, IF, OP2 -- Load Indirect Dst Ptr Hi
446
0633 0x0028  21414160 FTCH $,0,1, Stk,, WR, PCH, Psh -- Push PC Hi
447
0634 0x0029  410149A0 BRV0 _Nxt,0,1, Stk, Jmp, WR, PCL, Psh -- Push PC Lo
448
0636  --------------------------------------------------------------------------------
449
0637  -- Return from Interrupt - RTI (Not interruptable)
450
0638  --------------------------------------------------------------------------------
451
0640 0x002A _RTI:
452
0641 0x002A  215142BC FTCH $,0,1, Stk,, RD, OP1, Pop, WE_P -- Pop PCL
453
0642 0x002B  21594A70 FTCH $,0,1, Stk, Jmp, RD, OP2, Pop -- Pop PCH
454
0643  --
455
0644 0x002C  516107C0 BRV1 $,0,1,, Pls, IF, IR -- Next, no Reg_WE, P okay
456
0646  --------------------------------------------------------------------------------
457
0647  -- Return From Subroutine - RTS (Not interruptable)
458
0648  --------------------------------------------------------------------------------
459
0650 0x002D _RTS:
460
0651 0x002D  41014A70 BRV0 _Nxt,0,1, Stk, Jmp, RD, OP2, Pop -- Pop PCH
461
0653  --------------------------------------------------------------------------------
462
0654  -- Jump Absolute - JMP Abs (Not interruptable)
463
0655  --------------------------------------------------------------------------------
464
0657 0x002E _Jmp:
465
0658 0x002E  41010B40 BRV0 _Nxt,0,1,, Jmp, IF, OP2
466
0660  --------------------------------------------------------------------------------
467
0661  -- Jump Indirect - JMP (Abs) (Not interruptable)
468
0662  --------------------------------------------------------------------------------
469
0664 0x002F _JmpI:
470
0665 0x002F  21790740 FTCH $,0,1,, Pls, IF, OP2 -- Load Indirect Dst Ptr Lo
471
0666 0x0030  21818280 FTCH $,0,1, LDA,, RD, OP1 -- Read Indirect Dst Ptr Hi
472
0667 0x0031  41013A40 BRV0 _Nxt,0,1, Nxt, Jmp, RD, OP2 -- Goto Next
473
0669  --------------------------------------------------------------------------------
474
0670  -- Jump Pre-Indexed Indirect - JMP (Abs, X) (Not interruptable)
475
0671  --------------------------------------------------------------------------------
476
0673 0x0032 _JmpXI:
477
0674 0x0032  21910740 FTCH $,0,1,, Pls, IF, OP2 -- Load Indirect Dst Ptr Lo
478
0675 0x0033  2199E280 FTCH $,0,1, LDAX,, RD, OP1 -- Read Indirect Dst Ptr Hi
479
0676 0x0034  41013A40 BRV0 _Nxt,0,1, Nxt, Jmp, RD, OP2 -- Goto Next
480
0678  --------------------------------------------------------------------------------
481
0679  -- Memory Read-Only Data Page Direct - xxx DP
482
0680  --------------------------------------------------------------------------------
483
0682 0x0035 _RO_DP:
484
0683 0x0035  31055280 BMW _Nxt,1,1, DPN,, RD, OP1 -- Read DP Mem
485
0685  -----------------------------------------------------------------------------
486
0686  -- Memory Read-Only Pre-Indexed Data Page Direct - xxx DP, X
487
0687  --------------------------------------------------------------------------------
488
0689 0x0036 _RO_DPX:
489
0690 0x0036  31056280 BMW _Nxt,1,1, DPX,, RD, OP1 -- Read DP Mem
490
0692  --------------------------------------------------------------------------------
491
0693  -- Memory Read-Only Post-Indexed Data Page Direct - xxx DP, Y
492
0694  --------------------------------------------------------------------------------
493
0696 0x0037 _RO_DPY:
494
0697 0x0037  31057280 BMW _Nxt,1,1, DPY,, RD, OP1 -- Read DP Mem
495
0699  ------------------------------------------------------------------------------
496
0700  -- Memory Read-Only Data Page Indirect - xxx (DP)
497
0701  --------------------------------------------------------------------------------
498
0703 0x0038 _RO_DPI:
499
0704 0x0038  21C55280 FTCH $,1,1, DPN,, RD, OP1 -- Read DP Mem Ptr Lo
500
0705 0x0039  21CD3240 FTCH $,1,1, Nxt,, RD, OP2 -- Read DP Mem Ptr Hi
501
0706 0x003A  31018280 BMW _Nxt,0,1, LDA,, RD, OP1 -- Read Operand
502
0708  --------------------------------------------------------------------------------
503
0709  -- Memory Read-Only Pre-Indexed Data Page Indirect - xxx (DP, X)
504
0710  --------------------------------------------------------------------------------
505
0712 0x003B _RO_DPXI:
506
0713 0x003B  21DD6280 FTCH $,1,1, DPX,, RD, OP1 -- Read DP Mem Ptr Lo (DP,X)
507
0714 0x003C  21E53240 FTCH $,1,1, Nxt,, RD, OP2 -- Read DP Mem Ptr Hi
508
0715 0x003D  31018280 BMW _Nxt,0,1, LDA,, RD, OP1 -- Read Operand
509
0717  --------------------------------------------------------------------------------
510
0718  -- Memory Read-Only Post-Indexed Data Page Indirect - xxx (DP), Y
511
0719  --------------------------------------------------------------------------------
512
0721 0x003E _RO_DPIY:
513
0722 0x003E  21F55280 FTCH $,1,1, DPN,, RD, OP1 -- Read DP Mem Ptr Lo
514
0723 0x003F  21FD3240 FTCH $,1,1, Nxt,, RD, OP2 -- Read DP Mem Ptr Hi
515
0724 0x0040  3101F280 BMW _Nxt,0,1, LDAY,, RD, OP1 -- Read Operand (DP),Y
516
0726  --------------------------------------------------------------------------------
517
0727  -- Memory Read-Only Absolute - xxx Abs
518
0728  --------------------------------------------------------------------------------
519
0730 0x0041 _RO_Abs:
520
0731 0x0041  22090740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
521
0732 0x0042  31018280 BMW _Nxt,0,1, LDA,, RD, OP1 -- Read Operand
522
0734  --------------------------------------------------------------------------------
523
0735  -- Memory Read-Only Pre-Indexed Absolute - xxx Abs, X
524
0736  --------------------------------------------------------------------------------
525
0738 0x0043 _RO_AbsX:
526
0739 0x0043  22190740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
527
0740 0x0044  3101E280 BMW _Nxt,0,1, LDAX,, RD, OP1 -- Read Operand Abs,X
528
0742  --------------------------------------------------------------------------------
529
0743  -- Memory Read-Only Post-Indexed Absolute - xxx Abs, Y
530
0744  --------------------------------------------------------------------------------
531
0746 0x0045 _RO_AbsY:
532
0747 0x0045  22290740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
533
0748 0x0046  3101F280 BMW _Nxt,0,1, LDAY,, RD, OP1 -- Read Operand Abs,Y
534
0750  --------------------------------------------------------------------------------
535
0751  -- Memory Write-Only Data Page Direct - xxx DP
536
0752  --------------------------------------------------------------------------------
537
0754 0x0047 _WO_DP:
538
0755 0x0047  31055100 BMW _Nxt,1,1, DPN,, WR -- Write to DP
539
0757  -----------------------------------------------------------------------------
540
0758  -- Memory Write-Only Pre-Indexed Data Page Direct - xxx DP, X
541
0759  --------------------------------------------------------------------------------
542
0761 0x0048 _WO_DPX:
543
0762 0x0048  31056100 BMW _Nxt,1,1, DPX,, WR -- Write to DP,X
544
0764  -----------------------------------------------------------------------------
545
0765  -- Memory Write-Only Post-Indexed Data Page Direct - xxx DP, Y
546
0766  --------------------------------------------------------------------------------
547
0768 0x0049 _WO_DPY:
548
0769 0x0049  31057100 BMW _Nxt,1,1, DPY,, WR -- Write to DP,Y
549
0771  --------------------------------------------------------------------------------
550
0772  -- Memory Write-Only Data Page Indirect - xxx (DP)
551
0773  --------------------------------------------------------------------------------
552
0775 0x004A _WO_DPI:
553
0776 0x004A  22555280 FTCH $,1,1, DPN,, RD, OP1 -- Read DP Mem Ptr Lo
554
0777 0x004B  225D3240 FTCH $,1,1, Nxt,, RD, OP2 -- Read DP Mem Ptr Hi
555
0778 0x004C  31018100 BMW _Nxt,0,1, LDA,, WR -- Write to (DP)
556
0780  --------------------------------------------------------------------------------
557
0781  -- Memory Write-Only Data Page Indirect - xxx (DP, X)
558
0782  --------------------------------------------------------------------------------
559
0784 0x004D _WO_DPXI:
560
0785 0x004D  226D6280 FTCH $,1,1, DPX,, RD, OP1 -- Read DP Mem Ptr Lo
561
0786 0x004E  22753240 FTCH $,1,1, Nxt,, RD, OP2 -- Read DP Mem Ptr Hi
562
0787 0x004F  31018100 BMW _Nxt,0,1, LDA,, WR -- Write to (DP)
563
0789  --------------------------------------------------------------------------------
564
0790  -- Memory Write-Only Post-Indexed Data Page Indirect - xxx (DP), Y
565
0791  --------------------------------------------------------------------------------
566
0793 0x0050 _WO_DPIY:
567
0794 0x0050  22855280 FTCH $,1,1, DPN,, RD, OP1 -- Read DP Mem Ptr Lo
568
0795 0x0051  228D3240 FTCH $,1,1, Nxt,, RD, OP2 -- Read DP Mem Ptr Hi
569
0796 0x0052  3101F100 BMW _Nxt,0,1, LDAY,, WR -- Write to (DP)
570
0798  --------------------------------------------------------------------------------
571
0799  -- Memory Write-Only Absolute - xxx Abs
572
0800  --------------------------------------------------------------------------------
573
0802 0x0053 _WO_Abs:
574
0803 0x0053  22990740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
575
0804 0x0054  31018100 BMW _Nxt,0,1, LDA,, WR -- Write to Abs
576
0806  --------------------------------------------------------------------------------
577
0807  -- Memory Write-Only Pre-Indexed Absolute - xxx Abs, X
578
0808  --------------------------------------------------------------------------------
579
0810 0x0055 _WO_AbsX:
580
0811 0x0055  22A90740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
581
0812 0x0056  3101E100 BMW _Nxt,0,1, LDAX,, WR -- Write to Abs,X
582
0814  --------------------------------------------------------------------------------
583
0815  -- Memory Write-Only Post-Indexed Absolute - xxx Abs, Y
584
0816  --------------------------------------------------------------------------------
585
0818 0x0057 _WO_AbsY:
586
0819 0x0057  22B90740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
587
0820 0x0058  3101F100 BMW _Nxt,0,1, LDAY,, WR -- Write to Abs,Y
588
0822  --------------------------------------------------------------------------------
589
0823  -- 2-way Read-Modify-Write Instruction/Interrupt Jump Table
590
0824  --------------------------------------------------------------------------------
591
0000 0x0059  00000000 added by program
592
0000 0x005A  00000000 added by program
593
0000 0x005B  00000000 added by program
594
0000 0x005C  00000000 added by program
595
0000 0x005D  00000000 added by program
596
0000 0x005E  00000000 added by program
597
0000 0x005F  00000000 added by program
598
0826 0x0060 _RMW: .org 96
599
0827 0x0060  530107C0 BRV1 _RMW,0,1,, Pls, IF, IR -- Instruction Fetch/Execute
600
0828 0x0061  61114160 BRV2 _Brk,0,1, Stk, , WR, PCH, Psh -- Push PCH, capture Vector
601
0830  --------------------------------------------------------------------------------
602
0831  -- Memory Read-Modify-Write Data Page Direct - xxx DP
603
0832  --------------------------------------------------------------------------------
604
0834 0x0062 _RMW_DP:
605
0835 0x0062  23155280 FTCH $,1,1, DPN,, RD, OP1 -- Read from DP
606
0836 0x0063  33052108 BMW _RMW,1,1, MAR,, WR,,,WE_R -- Write to DP
607
0838  --------------------------------------------------------------------------------
608
0839  -- Memory Read-Modify-Write Pre-Indexed Data Page Direct - xxx DP, X
609
0840  --------------------------------------------------------------------------------
610
0842 0x0064 _RMW_DPX:
611
0843 0x0064  23256280 FTCH $,1,1, DPX,, RD, OP1 -- Read from DP,X
612
0844 0x0065  33052108 BMW _RMW,1,1, MAR,, WR,,,WE_R -- Write to DP,X
613
0846  --------------------------------------------------------------------------------
614
0847  -- Memory Read-Modify-Write Post-Indexed Data Page Direct - xxx DP, Y
615
0848  --------------------------------------------------------------------------------
616
0850 0x0066 _RMW_DPY:
617
0851 0x0066  23357280 FTCH $,1,1, DPY,, RD, OP1 -- Read from DP,Y
618
0852 0x0067  33052108 BMW _RMW,1,1, MAR,, WR,,,WE_R -- Write to DP,Y
619
0854  --------------------------------------------------------------------------------
620
0855  -- Memory Read-Modify-Write Absolute - xxx Abs
621
0856  --------------------------------------------------------------------------------
622
0858 0x0068 _RMW_Abs:
623
0859 0x0068  23410740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
624
0860 0x0069  23498280 FTCH $,0,1, LDA,, RD, OP1 -- Read from Abs
625
0861 0x006A  33012108 BMW _RMW,0,1, MAR,, WR,,,WE_R -- Write to Abs
626
0863  --------------------------------------------------------------------------------
627
0864  -- Memory Read-Modify-Write Pre-Indexed Absolute - xxx Abs, X
628
0865  --------------------------------------------------------------------------------
629
0867 0x006B _RMW_AbsX:
630
0868 0x006B  23590740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
631
0869 0x006C  2361E280 FTCH $,0,1, LDAX,, RD, OP1 -- Read from Abs,X
632
0870 0x006D  33012108 BMW _RMW,0,1, MAR,, WR,,,WE_R -- Write to Abs,X
633
0872  --------------------------------------------------------------------------------
634
0873  -- Memory Read-Modify-Write Post-Indexed Absolute - xxx Abs, Y
635
0874  --------------------------------------------------------------------------------
636
0876 0x006E _RMW_AbsY:
637
0877 0x006E  23710740 FTCH $,0,1,, Pls, IF, OP2 -- Read Mem Ptr Hi
638
0878 0x006F  2379F280 FTCH $,0,1, LDAY,, RD, OP1 -- Read from Abs,Y
639
0879 0x0070  33012108 BMW _RMW,0,1, MAR,, WR,,,WE_R -- Write to Abs,Y
640
0881  --------------------------------------------------------------------------------
641
0882  -- Rockwell BBRx/BBSx dp,rel instructions
642
0883  --------------------------------------------------------------------------------
643
0885 0x0071 _BByx_dp_rel:
644
0886 0x0071  238D5280 FTCH $,1,1, DPN,, RD, OP1 -- Read from DP
645
0887 0x0072  41010F80 BRV0 _Nxt,0,1,, Rel, IF, OP1 -- Read rel value
646
0889  --------------------------------------------------------------------------------
647
0890  -- End of Microprogram Routines for Normal Instructions
648
0891  --------------------------------------------------------------------------------
649
0893 0x0073 _End_uPgm:
650
0895  --------------------------------------------------------------------------------
651
0896  -- WAI - Wait for Interrupt
652
0897  --------------------------------------------------------------------------------
653
0000 0x0073  00000000 added by program
654
0000 0x0074  00000000 added by program
655
0000 0x0075  00000000 added by program
656
0000 0x0076  00000000 added by program
657
0000 0x0077  00000000 added by program
658
0000 0x0078  00000000 added by program
659
0000 0x0079  00000000 added by program
660
0000 0x007A  00000000 added by program
661
0000 0x007B  00000000 added by program
662
0000 0x007C  00000000 added by program
663
0000 0x007D  00000000 added by program
664
0000 0x007E  00000000 added by program
665
0000 0x007F  00000000 added by program
666
0000 0x0080  00000000 added by program
667
0000 0x0081  00000000 added by program
668
0000 0x0082  00000000 added by program
669
0000 0x0083  00000000 added by program
670
0000 0x0084  00000000 added by program
671
0000 0x0085  00000000 added by program
672
0000 0x0086  00000000 added by program
673
0000 0x0087  00000000 added by program
674
0000 0x0088  00000000 added by program
675
0000 0x0089  00000000 added by program
676
0000 0x008A  00000000 added by program
677
0000 0x008B  00000000 added by program
678
0000 0x008C  00000000 added by program
679
0000 0x008D  00000000 added by program
680
0000 0x008E  00000000 added by program
681
0000 0x008F  00000000 added by program
682
0000 0x0090  00000000 added by program
683
0000 0x0091  00000000 added by program
684
0000 0x0092  00000000 added by program
685
0000 0x0093  00000000 added by program
686
0000 0x0094  00000000 added by program
687
0000 0x0095  00000000 added by program
688
0000 0x0096  00000000 added by program
689
0000 0x0097  00000000 added by program
690
0000 0x0098  00000000 added by program
691
0000 0x0099  00000000 added by program
692
0000 0x009A  00000000 added by program
693
0000 0x009B  00000000 added by program
694
0000 0x009C  00000000 added by program
695
0000 0x009D  00000000 added by program
696
0000 0x009E  00000000 added by program
697
0000 0x009F  00000000 added by program
698
0000 0x00A0  00000000 added by program
699
0000 0x00A1  00000000 added by program
700
0000 0x00A2  00000000 added by program
701
0000 0x00A3  00000000 added by program
702
0000 0x00A4  00000000 added by program
703
0000 0x00A5  00000000 added by program
704
0000 0x00A6  00000000 added by program
705
0000 0x00A7  00000000 added by program
706
0000 0x00A8  00000000 added by program
707
0000 0x00A9  00000000 added by program
708
0000 0x00AA  00000000 added by program
709
0000 0x00AB  00000000 added by program
710
0000 0x00AC  00000000 added by program
711
0000 0x00AD  00000000 added by program
712
0000 0x00AE  00000000 added by program
713
0000 0x00AF  00000000 added by program
714
0000 0x00B0  00000000 added by program
715
0000 0x00B1  00000000 added by program
716
0000 0x00B2  00000000 added by program
717
0000 0x00B3  00000000 added by program
718
0000 0x00B4  00000000 added by program
719
0000 0x00B5  00000000 added by program
720
0000 0x00B6  00000000 added by program
721
0000 0x00B7  00000000 added by program
722
0000 0x00B8  00000000 added by program
723
0000 0x00B9  00000000 added by program
724
0000 0x00BA  00000000 added by program
725
0000 0x00BB  00000000 added by program
726
0000 0x00BC  00000000 added by program
727
0000 0x00BD  00000000 added by program
728
0000 0x00BE  00000000 added by program
729
0000 0x00BF  00000000 added by program
730
0000 0x00C0  00000000 added by program
731
0000 0x00C1  00000000 added by program
732
0000 0x00C2  00000000 added by program
733
0000 0x00C3  00000000 added by program
734
0000 0x00C4  00000000 added by program
735
0000 0x00C5  00000000 added by program
736
0000 0x00C6  00000000 added by program
737
0000 0x00C7  00000000 added by program
738
0000 0x00C8  00000000 added by program
739
0000 0x00C9  00000000 added by program
740
0000 0x00CA  00000000 added by program
741
0000 0x00CB  00000000 added by program
742
0000 0x00CC  00000000 added by program
743
0000 0x00CD  00000000 added by program
744
0000 0x00CE  00000000 added by program
745
0000 0x00CF  00000000 added by program
746
0000 0x00D0  00000000 added by program
747
0000 0x00D1  00000000 added by program
748
0000 0x00D2  00000000 added by program
749
0000 0x00D3  00000000 added by program
750
0000 0x00D4  00000000 added by program
751
0000 0x00D5  00000000 added by program
752
0000 0x00D6  00000000 added by program
753
0000 0x00D7  00000000 added by program
754
0000 0x00D8  00000000 added by program
755
0000 0x00D9  00000000 added by program
756
0000 0x00DA  00000000 added by program
757
0000 0x00DB  00000000 added by program
758
0000 0x00DC  00000000 added by program
759
0000 0x00DD  00000000 added by program
760
0000 0x00DE  00000000 added by program
761
0000 0x00DF  00000000 added by program
762
0000 0x00E0  00000000 added by program
763
0000 0x00E1  00000000 added by program
764
0000 0x00E2  00000000 added by program
765
0000 0x00E3  00000000 added by program
766
0000 0x00E4  00000000 added by program
767
0000 0x00E5  00000000 added by program
768
0000 0x00E6  00000000 added by program
769
0000 0x00E7  00000000 added by program
770
0000 0x00E8  00000000 added by program
771
0000 0x00E9  00000000 added by program
772
0000 0x00EA  00000000 added by program
773
0000 0x00EB  00000000 added by program
774
0000 0x00EC  00000000 added by program
775
0000 0x00ED  00000000 added by program
776
0000 0x00EE  00000000 added by program
777
0000 0x00EF  00000000 added by program
778
0000 0x00F0  00000000 added by program
779
0000 0x00F1  00000000 added by program
780
0000 0x00F2  00000000 added by program
781
0000 0x00F3  00000000 added by program
782
0000 0x00F4  00000000 added by program
783
0000 0x00F5  00000000 added by program
784
0000 0x00F6  00000000 added by program
785
0000 0x00F7  00000000 added by program
786
0000 0x00F8  00000000 added by program
787
0000 0x00F9  00000000 added by program
788
0000 0x00FA  00000000 added by program
789
0000 0x00FB  00000000 added by program
790
0899 0x00FC _WAI: .org 252 -- Set up 4-way table for WAI instruction
791
0900 0x00FC  37E10000 BMW _WAI,0,1 -- No external interrupts asserted
792
0901 0x00FD  41090000 BRV0 _Int,0,1 -- Int asserted by NMI, do NMI interrupt
793
0902 0x00FE  41010000 BRV0 _Nxt,0,1 -- xIRQ asserted with IRQ_Msk asserted, continue
794
0903 0x00FF  41090000 BRV0 _Int,0,1 -- Int asserted by xIRQ, do IRQ interrupt
795
0905 0x0100 _IDEC_Start: .org 256
796
0907  --------------------------------------------------------------------------------
797
0908  -- Start of Instruction Decode Table (Entry for each Opcode)
798
0909  --
799
0910  -- Instead of being organized in numerical order, the table is organized by
800
0911  -- rows: the least significant nibble and the most significant nibble of the
801
0912  -- opcode are swapped. This organization more clearly shows the arrangement of
802
0913  -- the addressing modes of the WDC W65C02 microprocessor being emulated. It al-
803
0914  -- so more clearly shows the regularity of the ALU instructions that are imple-
804
0915  -- mented. The implementation of the microprogram is first based on the addres-
805
0916  -- sing mode, and then on the ALU function. Single cycle instructions will be
806
0917  -- easily recognized in the following table because their table entry use the
807
0918  -- BRV3 MPC instruction. Multi-cycle instructions use the BRV0 MPC instruction
808
0919  -- to vector a microroutine in the lower 256 words of the microprogram ROM/RAM.
809
0920  -- Single byte instructions such as BRK, RTS, RTI, and register push/pull in-
810
0921  -- structions (PHA, PLA, PHP, PLP, PHX, PLX, PHY, PLY), and multi-byte instruc-
811
0922  -- tions like JSR abs are implemented with special microroutines that perform
812
0923  -- the necessary stack accesses. The remainder of the microroutines are orga-
813
0924  -- nized by addressing mode, and whether the mode is used in a RO, WO, or RMW
814
0925  -- manner.
815
0926  --
816
0927  -- Microprogram Word Format:
817
0928  --
818
0929  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
819
0930  --
820
0931  --------------------------------------------------------------------------------
821
0933  --------------------------------------------------------------------------------
822
0934  -- Row 0 : 0x00-0xF0 (All Bcc/JMP/JSR/RTS/RTI implemented as uninterruptable)
823
0935  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
824
0936  --------------------------------------------------------------------------------
825
0937 0x0100 _BRK_imm:
826
0938 0x0100  6111416C BRV2 _Brk,0,1, Stk,, WR, PCH, Psh, WE_P -- Start Break Handler
827
0939 0x0101 _BPL_rel:
828
0940 0x0101  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
829
0941 0x0102 _JSR_abs:
830
0942 0x0102  41390780 BRV0 _JSR,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
831
0943 0x0103 _BMI_rel:
832
0944 0x0103  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
833
0945 0x0104 _RTI_imp:
834
0946 0x0104  415142B0 BRV0 _RTI,0,1, Stk,, RD, OP1, Pop -- Read PSW from Stack
835
0947 0x0105 _BVC_rel:
836
0948 0x0105  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
837
0949 0x0106 _RTS_imp:
838
0950 0x0106  416942B0 BRV0 _RTS,0,1, Stk,, RD, OP1, Pop -- Read PCL from Stack
839
0951 0x0107 _BVS_rel:
840
0952 0x0107  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
841
0953 0x0108 _BRA_rel:
842
0954 0x0108  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
843
0955 0x0109 _BCC_rel
844
0956 0x0109  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
845
0957 0x010A _LDY_imm:
846
0958 0x010A  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read #imm Value
847
0959 0x010B _BCS_rel:
848
0960 0x010B  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
849
0961 0x010C _CPY_imm:
850
0962 0x010C  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read #imm Value
851
0963 0x010D _BNE_rel:
852
0964 0x010D  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
853
0965 0x010E _CPX_imm:
854
0966 0x010E  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read #imm Value
855
0967 0x010F _BEQ_rel:
856
0968 0x010F  41010F80 BRV0 _Rel,0,1,, Rel, IF, OP1 -- Read rel Value
857
0969  --------------------------------------------------------------------------------
858
0970  -- Row 1 : 0x01-0xF1
859
0971  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
860
0972  --------------------------------------------------------------------------------
861
0973 0x0110 _ORA_dpXi:
862
0974 0x0110  41D90780 BRV0 _RO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
863
0975 0x0111 _ORA_dpiY:
864
0976 0x0111  41F10780 BRV0 _RO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
865
0977 0x0112 _AND_dpXi:
866
0978 0x0112  41D90780 BRV0 _RO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
867
0979 0x0113 _AND_dpiY:
868
0980 0x0113  41F10780 BRV0 _RO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
869
0981 0x0114 _EOR_dpXi:
870
0982 0x0114  41D90780 BRV0 _RO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
871
0983 0x0115 _EOR_dpiY:
872
0984 0x0115  41F10780 BRV0 _RO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
873
0985 0x0116 _ADC_dpXi:
874
0986 0x0116  41D90780 BRV0 _RO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
875
0987 0x0117 _ADC_dpiY:
876
0988 0x0117  41F10780 BRV0 _RO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
877
0989 0x0118 _STA_dpXi:
878
0990 0x0118  42690780 BRV0 _WO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
879
0991 0x0119 _STA_dpiY:
880
0992 0x0119  42810780 BRV0 _WO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
881
0993 0x011A _LDA_dpXi:
882
0994 0x011A  41D90780 BRV0 _RO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
883
0995 0x011B _LDA_dpiY:
884
0996 0x011B  41F10780 BRV0 _RO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
885
0997 0x011C _CMP_dpXi:
886
0998 0x011C  41D90780 BRV0 _RO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
887
0999 0x011D _CMP_dpiY:
888
1000 0x011D  41F10780 BRV0 _RO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
889
1001 0x011E _SBC_dpXi:
890
1002 0x011E  41D90780 BRV0 _RO_DPXI,0,1,, Pls, IF, OP1 -- Read DP Ptr
891
1003 0x011F _SBC_dpiY:
892
1004 0x011F  41F10780 BRV0 _RO_DPIY,0,1,, Pls, IF, OP1 -- Read DP Ptr
893
1005  --------------------------------------------------------------------------------
894
1006  -- Row 2 : 0x02-0xF2
895
1007  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
896
1008  --------------------------------------------------------------------------------
897
1009 0x0120 _NOP_02:
898
1010 0x0120  790107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
899
1011 0x0121 _ORA_dpi:
900
1012 0x0121  41C10780 BRV0 _RO_DPI,0,1,, Pls, IF, OP1 -- Read DP
901
1013 0x0122 _NOP_22:
902
1014 0x0122  791107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
903
1015 0x0123 _AND_dpi:
904
1016 0x0123  41C10780 BRV0 _RO_DPI,0,1,, Pls, IF, OP1 -- Read DP
905
1017 0x0124 _NOP_42:
906
1018 0x0124  792107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
907
1019 0x0125 _EOR_dpi:
908
1020 0x0125  41C10780 BRV0 _RO_DPI,0,1,, Pls, IF, OP1 -- Read DP
909
1021 0x0126 _NOP_62:
910
1022 0x0126  793107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
911
1023 0x0127 _ADC_dpi:
912
1024 0x0127  41C10780 BRV0 _RO_DPI,0,1,, Pls, IF, OP1 -- Read DP
913
1025 0x0128 _NOP_82:
914
1026 0x0128  794107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
915
1027 0x0129 _STA_dpi:
916
1028 0x0129  42510780 BRV0 _WO_DPI,0,1,, Pls, IF, OP1 -- Read DP
917
1029 0x012A _LDX_imm:
918
1030 0x012A  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read #imm Value
919
1031 0x012B _LDA_dpi:
920
1032 0x012B  41C10780 BRV0 _RO_DPI,0,1,, Pls, IF, OP1 -- Read DP
921
1033 0x012C _NOP_C2:
922
1034 0x012C  796107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
923
1035 0x012D _CMP_dpi:
924
1036 0x012D  41C10780 BRV0 _RO_DPI,0,1,, Pls, IF, OP1 -- Read DP
925
1037 0x012E _NOP_E2:
926
1038 0x012E  797107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
927
1039 0x012F _SBC_dpi:
928
1040 0x012F  41C10780 BRV0 _RO_DPI,0,1,, Pls, IF, OP1 -- Read DP
929
1041  --------------------------------------------------------------------------------
930
1042  -- Row 3 : 0x03-0xF3
931
1043  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
932
1044  --------------------------------------------------------------------------------
933
1045 0x0130 _NOP_03:
934
1046 0x0130  798107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
935
1047 0x0131 _NOP_13:
936
1048 0x0131  798907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
937
1049 0x0132 _NOP_23:
938
1050 0x0132  799107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
939
1051 0x0133 _NOP_33:
940
1052 0x0133  799907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
941
1053 0x0134 _NOP_43:
942
1054 0x0134  79A107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
943
1055 0x0135 _NOP_53:
944
1056 0x0135  79A907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
945
1057 0x0136 _NOP_63:
946
1058 0x0136  79B107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
947
1059 0x0137 _NOP_73:
948
1060 0x0137  79B907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
949
1061 0x0138 _NOP_83:
950
1062 0x0138  79C107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
951
1063 0x0139 _NOP_93:
952
1064 0x0139  79C907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
953
1065 0x013A _NOP_A3:
954
1066 0x013A  79D107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
955
1067 0x013B _NOP_B3:
956
1068 0x013B  79D907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
957
1069 0x013C _NOP_C3:
958
1070 0x013C  79E107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
959
1071 0x013D _NOP_D3:
960
1072 0x013D  79E907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
961
1073 0x013E _NOP_E3:
962
1074 0x013E  79F107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
963
1075 0x013F _NOP_F3:
964
1076 0x013F  79F907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
965
1077  --------------------------------------------------------------------------------
966
1078  -- Row 4 : 0x04-0xF4
967
1079  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
968
1080  --------------------------------------------------------------------------------
969
1081 0x0140 _TSB_dp:
970
1082 0x0140  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
971
1083 0x0141 _TRB_dp:
972
1084 0x0141  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
973
1085 0x0142 _BIT_dp:
974
1086 0x0142  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
975
1087 0x0143 _BIT_dpX:
976
1088 0x0143  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
977
1089 0x0144 _NOP_44:
978
1090 0x0144  7A2107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
979
1091 0x0145 _NOP_54:
980
1092 0x0145  7A2907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
981
1093 0x0146 _STZ_dp:
982
1094 0x0146  42390780 BRV0 _WO_DP,0,1,, Pls, IF, OP1 -- Read DP
983
1095 0x0147 _STZ_dpX:
984
1096 0x0147  42410780 BRV0 _WO_DPX,0,1,, Pls, IF, OP1 -- Read DP
985
1097 0x0148 _STY_dp:
986
1098 0x0148  42390780 BRV0 _WO_DP,0,1,, Pls, IF, OP1 -- Read DP
987
1099 0x0149 _STY_dpX:
988
1100 0x0149  42410780 BRV0 _WO_DPX,0,1,, Pls, IR, OP1 -- Read DP
989
1101 0x014A _LDY_dp:
990
1102 0x014A  41A90780 BRV0 _RO_DP,0,1,, Pls, IR, OP1 -- Read DP
991
1103 0x014B _LDY_dpX:
992
1104 0x014B  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
993
1105 0x014C _CPY_dp:
994
1106 0x014C  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
995
1107 0x014D _NOP_D4:
996
1108 0x014D  7A6907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
997
1109 0x014E _CPX_dp:
998
1110 0x014E  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
999
1111 0x014F _NOP_F4:
1000
1112 0x014F  7A7907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1001
1113  --------------------------------------------------------------------------------
1002
1114  -- Row 5 : 0x05-0xF5
1003
1115  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1004
1116  --------------------------------------------------------------------------------
1005
1117 0x0150 _ORA_dp:
1006
1118 0x0150  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1007
1119 0x0151 _ORA_dpX:
1008
1120 0x0151  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1009
1121 0x0152 _AND_dp:
1010
1122 0x0152  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1011
1123 0x0153 _AND_dpX:
1012
1124 0x0153  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1013
1125 0x0154 _EOR_dp:
1014
1126 0x0154  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1015
1127 0x0155 _EOR_dpX:
1016
1128 0x0155  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1017
1129 0x0156 _ADC_dp:
1018
1130 0x0156  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1019
1131 0x0157 _ADC_dpX:
1020
1132 0x0157  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1021
1133 0x0158 _STA_dp:
1022
1134 0x0158  42390780 BRV0 _WO_DP,0,1,, Pls, IF, OP1 -- Read DP
1023
1135 0x0159 _STA_dpX:
1024
1136 0x0159  42410780 BRV0 _WO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1025
1137 0x015A _LDA_dp:
1026
1138 0x015A  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1027
1139 0x015B _LDA_dpX:
1028
1140 0x015B  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1029
1141 0x015C _CMP_dp:
1030
1142 0x015C  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1031
1143 0x015D _CMP_dpX:
1032
1144 0x015D  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1033
1145 0x015E _SBC_dp:
1034
1146 0x015E  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1035
1147 0x015F _SBC_dpX:
1036
1148 0x015F  41B10780 BRV0 _RO_DPX,0,1,, Pls, IF, OP1 -- Read DP
1037
1149  --------------------------------------------------------------------------------
1038
1150  -- Row 6 : 0x06-0xF6
1039
1151  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1040
1152  --------------------------------------------------------------------------------
1041
1153 0x0160 _ASL_dp:
1042
1154 0x0160  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1043
1155 0x0161 _ASL_dpX:
1044
1156 0x0161  43210780 BRV0 _RMW_DPX,0,1,, Pls, IF, OP1 -- Read DP
1045
1157 0x0162 _ROL_dp:
1046
1158 0x0162  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1047
1159 0x0163 _ROL_dpX:
1048
1160 0x0163  43210780 BRV0 _RMW_DPX,0,1,, Pls, IF, OP1 -- Read DP
1049
1161 0x0164 _LSR_dp:
1050
1162 0x0164  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1051
1163 0x0165 _LSR_dpX:
1052
1164 0x0165  43210780 BRV0 _RMW_DPX,0,1,, Pls, IF, OP1 -- Read DP
1053
1165 0x0166 _ROR_dp:
1054
1166 0x0166  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1055
1167 0x0167 _ROR_dpX:
1056
1168 0x0167  43210780 BRV0 _RMW_DPX,0,1,, Pls, IF, OP1 -- Read DP
1057
1169 0x0168 _STX_dp:
1058
1170 0x0168  42390780 BRV0 _WO_DP,0,1,, Pls, IF, OP1 -- Read DP
1059
1171 0x0169 _STX_dpY:
1060
1172 0x0169  42490780 BRV0 _WO_DPY,0,1,, Pls, IF, OP1 -- Read DP
1061
1173 0x016A _LDX_dp:
1062
1174 0x016A  41A90780 BRV0 _RO_DP,0,1,, Pls, IF, OP1 -- Read DP
1063
1175 0x016B _LDX_dpY:
1064
1176 0x016B  41B90780 BRV0 _RO_DPY,0,1,, Pls, IF, OP1 -- Read DP
1065
1177 0x016C _DEC_dp:
1066
1178 0x016C  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1067
1179 0x016D _DEC_dpX:
1068
1180 0x016D  43210780 BRV0 _RMW_DPX,0,1,, Pls, IF, OP1 -- Read DP
1069
1181 0x016E _INC_dp:
1070
1182 0x016E  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1071
1183 0x016F _INC_dpX:
1072
1184 0x016F  43210780 BRV0 _RMW_DPX,0,1,, Pls, IF, OP1 -- Read DP
1073
1185  --------------------------------------------------------------------------------
1074
1186  -- Row 7 : 0x07-0xF7 (Rockwell Instructions: RMBx/SMBx dp)
1075
1187  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1076
1188  --------------------------------------------------------------------------------
1077
1189 0x0170 _RMB0_dp:
1078
1190 0x0170  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1079
1191 0x0171 _RMB1_dp:
1080
1192 0x0171  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1081
1193 0x0172 _RMB2_dp:
1082
1194 0x0172  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1083
1195 0x0173 _RMB3_dp:
1084
1196 0x0173  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1085
1197 0x0174 _RMB4_dp:
1086
1198 0x0174  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1087
1199 0x0175 _RMB5_dp:
1088
1200 0x0175  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1089
1201 0x0176 _RMB6_dp:
1090
1202 0x0176  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1091
1203 0x0177 _RMB7_dp:
1092
1204 0x0177  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1093
1205 0x0178 _SMB0_dp:
1094
1206 0x0178  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1095
1207 0x0179 _SMB1_dp:
1096
1208 0x0179  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1097
1209 0x017A _SMB2_dp:
1098
1210 0x017A  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1099
1211 0x017B _SMB3_dp:
1100
1212 0x017B  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1101
1213 0x017C _SMB4_dp:
1102
1214 0x017C  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1103
1215 0x017D _SMB5_dp:
1104
1216 0x017D  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1105
1217 0x017E _SMB6_dp:
1106
1218 0x017E  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1107
1219 0x017F _SMB7_dp:
1108
1220 0x017F  43110780 BRV0 _RMW_DP,0,1,, Pls, IF, OP1 -- Read DP
1109
1221  --------------------------------------------------------------------------------
1110
1222  -- Row 8 : 0x08-0xF8
1111
1223  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1112
1224  --------------------------------------------------------------------------------
1113
1225 0x0180 _PHP:
1114
1226 0x0180  41014120 BRV0 _Psh,0,1, Stk,, WR,, Psh -- Push P
1115
1227 0x0181 _CLC:
1116
1228 0x0181  7C0907CC BRV3 $,0,1,, Pls, IF, IR,, WE_P -- Clear Carry Flag
1117
1229 0x0182 _PLP:
1118
1230 0x0182  410142B0 BRV0 _Pop,0,1, Stk,, RD, OP1, Pop -- Pop P
1119
1231 0x0183 _SEC:
1120
1232 0x0183  7C1907CC BRV3 $,0,1,, Pls, IF, IR,, WE_P -- Set Carry Flag
1121
1233 0x0184 _PHA:
1122
1234 0x0184  41014120 BRV0 _Psh,0,1, Stk,, WR,, Psh -- Push A
1123
1235 0x0185 _CLI:
1124
1236 0x0185  5C2907CC BRV1 $,0,1,, Pls, IF, IR,, WE_P -- Clear Interrupt Mask Flg
1125
1237 0x0186 _PLA:
1126
1238 0x0186  410142B0 BRV0 _Pop,0,1, Stk,, RD, OP1, Pop -- Pop A
1127
1239 0x0187 _SEI:
1128
1240 0x0187  5C3907CC BRV1 $,0,1,, Pls, IF, IR,, WE_P -- Set Interrupt Mask Flag
1129
1241 0x0188 _DEY:
1130
1242 0x0188  7C4107C6 BRV3 $,0,1,, Pls, IF, IR,, WE_Y -- Decrement Y
1131
1243 0x0189 _TYA:
1132
1244 0x0189  7C4907C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Transfer Y to A
1133
1245 0x018A _TAY:
1134
1246 0x018A  7C5107C6 BRV3 $,0,1,, Pls, IF, IR,, WE_Y -- Transfer A to Y
1135
1247 0x018B _CLV:
1136
1248 0x018B  7C5907CC BRV3 $,0,1,, Pls, IF, IR,, WE_P -- Clear oVerflow Flag
1137
1249 0x018C _INY:
1138
1250 0x018C  7C6107C6 BRV3 $,0,1,, Pls, IF, IR,, WE_Y -- Increment Y
1139
1251 0x018D _CLD:
1140
1252 0x018D  7C6907CC BRV3 $,0,1,, Pls, IF, IR,, WE_P -- Clear Decimal Mode Flag
1141
1253 0x018E _INX:
1142
1254 0x018E  7C7107C4 BRV3 $,0,1,, Pls, IF, IR,, WE_X -- Increment X
1143
1255 0x018F _SED:
1144
1256 0x018F  7C7907CC BRV3 $,0,1,, Pls, IF, IR,, WE_P -- Set Decimal Mode Flag
1145
1257  --------------------------------------------------------------------------------
1146
1258  -- Row 9 : 0x09-0xF9
1147
1259  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1148
1260  --------------------------------------------------------------------------------
1149
1261 0x0190 _ORA_imm:
1150
1262 0x0190  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1151
1263 0x0191 _ORA_absY:
1152
1264 0x0191  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1153
1265 0x0192 _AND_imm:
1154
1266 0x0192  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1155
1267 0x0193 _AND_absY:
1156
1268 0x0193  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1157
1269 0x0194 _EOR_imm:
1158
1270 0x0194  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1159
1271 0x0195 _EOR_absY:
1160
1272 0x0195  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1161
1273 0x0196 _ADC_imm:
1162
1274 0x0196  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1163
1275 0x0197 _ADC_absY:
1164
1276 0x0197  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1165
1277 0x0198 _BIT_imm:
1166
1278 0x0198  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1167
1279 0x0199 _STA_absY:
1168
1280 0x0199  42B90780 BRV0 _WO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1169
1281 0x019A _LDA_imm:
1170
1282 0x019A  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1171
1283 0x019B _LDA_absY:
1172
1284 0x019B  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1173
1285 0x019C _CMP_imm:
1174
1286 0x019C  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1175
1287 0x019D _CMP_absY:
1176
1288 0x019D  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1177
1289 0x019E _SBC_imm:
1178
1290 0x019E  31010780 BMW _Imm,0,1,, Pls, IF, OP1 -- Read Immediate Operand
1179
1291 0x019F _SBC_absY:
1180
1292 0x019F  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Mem Ptr Lo
1181
1293  --------------------------------------------------------------------------------
1182
1294  -- Row A : 0x0A-0xFA
1183
1295  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1184
1296  --------------------------------------------------------------------------------
1185
1297 0x01A0 _ASL_A:
1186
1298 0x01A0  7D0107C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Arithmetic Shift A Left
1187
1299 0x01A1 _INC_A:
1188
1300 0x01A1  7D0907C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Increment A
1189
1301 0x01A2 _ROL_A:
1190
1302 0x01A2  7D1107C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Rotate A Left
1191
1303 0x01A3 _DEC_A:
1192
1304 0x01A3  7D1907C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Decrement A
1193
1305 0x01A4 _LSR_A:
1194
1306 0x01A4  7D2107C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Logical Shift A Right
1195
1307 0x01A5 _PHY:
1196
1308 0x01A5  41014120 BRV0 _Psh,0,1, Stk,, WR,, Psh -- Push Y
1197
1309 0x01A6 _ROR_A:
1198
1310 0x01A6  7D3107C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Rotate A Right
1199
1311 0x01A7 _PLY:
1200
1312 0x01A7  410142B0 BRV0 _Pop,0,1, Stk,, RD, OP1, Pop -- Pop Y
1201
1313 0x01A8 _TXA:
1202
1314 0x01A8  7D4107C2 BRV3 $,0,1,, Pls, IF, IR,, WE_A -- Transfer X to A
1203
1315 0x01A9 _TXS:
1204
1316 0x01A9  7D4907CA BRV3 $,0,1,, Pls, IF, IR,, WE_S -- Transfer X to S
1205
1317 0x01AA _TAX:
1206
1318 0x01AA  7D5107C4 BRV3 $,0,1,, Pls, IF, IR,, WE_X -- Transfer A to X
1207
1319 0x01AB _TSX:
1208
1320 0x01AB  7D5907C4 BRV3 $,0,1,, Pls, IF, IR,, WE_X -- Transfer S to X
1209
1321 0x01AC _DEX:
1210
1322 0x01AC  7D6107C4 BRV3 $,0,1,, Pls, IF, IR,, WE_X -- Decrement X
1211
1323 0x01AD _PHX:
1212
1324 0x01AD  41014120 BRV0 _Psh,0,1, Stk,, WR,, Psh -- Push X
1213
1325 0x01AE _NOP: -- the real NOP
1214
1326 0x01AE  7D7107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip True NOP Instruction
1215
1327 0x01AF _PLX:
1216
1328 0x01AF  410142B0 BRV0 _Pop,0,1, Stk,, RD, OP1, Pop -- Pop X
1217
1329  --------------------------------------------------------------------------------
1218
1330  -- Row B : 0x0B-0xFB
1219
1331  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1220
1332  --------------------------------------------------------------------------------
1221
1333 0x01B0 _NOP_0B:
1222
1334 0x01B0  7D8107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1223
1335 0x01B1 _NOP_1B:
1224
1336 0x01B1  7D8907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1225
1337 0x01B2 _NOP_2B:
1226
1338 0x01B2  7D9107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1227
1339 0x01B3 _NOP_3B:
1228
1340 0x01B3  7D9907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1229
1341 0x01B4 _NOP_4B:
1230
1342 0x01B4  7DA107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1231
1343 0x01B5 _NOP_5B:
1232
1344 0x01B5  7DA907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1233
1345 0x01B6 _NOP_6B:
1234
1346 0x01B6  7DB107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1235
1347 0x01B7 _NOP_7B:
1236
1348 0x01B7  7DB907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1237
1349 0x01B8 _NOP_8B:
1238
1350 0x01B8  7DC107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1239
1351 0x01B9 _NOP_9B:
1240
1352 0x01B9  7DC907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1241
1353 0x01BA _NOP_AB:
1242
1354 0x01BA  7DD107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1243
1355 0x01BB _NOP_BB:
1244
1356 0x01BB  7DD907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1245
1357 0x01BC _WAI_CB:
1246
1358 0x01BC  47E10000 BRV0 _WAI,0,1 -- Wait for Interrupt
1247
1359 0x01BD _STP_DB:
1248
1360 0x01BD  4DE90000 BRV0 $,0,1 -- Stop Processor Execution
1249
1361 0x01BE _NOP_EB:
1250
1362 0x01BE  7DF107C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1251
1363 0x01BF _NOP_FB:
1252
1364 0x01BF  7DF907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1253
1365  --------------------------------------------------------------------------------
1254
1366  -- Row C : 0x0C-0xFC
1255
1367  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1256
1368  --------------------------------------------------------------------------------
1257
1369 0x01C0 _TSB_abs:
1258
1370 0x01C0  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1259
1371 0x01C1 _TRB_abs:
1260
1372 0x01C1  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1261
1373 0x01C2 _BIT_abs:
1262
1374 0x01C2  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1263
1375 0x01C3 _BIT_absX:
1264
1376 0x01C3  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1265
1377 0x01C4 _JMP_abs:
1266
1378 0x01C4  41710780 BRV0 _Jmp,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1267
1379 0x01C5 _NOP_5C:
1268
1380 0x01C5  7E2907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1269
1381 0x01C6 _JMP_absi:
1270
1382 0x01C6  41790780 BRV0 _JmpI,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1271
1383 0x01C7 _JMP_absXi:
1272
1384 0x01C7  41910780 BRV0 _JmpXI,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1273
1385 0x01C8 _STY_abs:
1274
1386 0x01C8  42990780 BRV0 _WO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1275
1387 0x01C9 _STZ_abs:
1276
1388 0x01C9  42990780 BRV0 _WO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1277
1389 0x01CA _LDY_abs:
1278
1390 0x01CA  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1279
1391 0x01CB _LDY_absX:
1280
1392 0x01CB  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1281
1393 0x01CC _CPY_abs:
1282
1394 0x01CC  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1283
1395 0x01CD _NOP_DC:
1284
1396 0x01CD  7E6907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1285
1397 0x01CE _CPX_abs:
1286
1398 0x01CE  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1287
1399 0x01CF _NOP_FC:
1288
1400 0x01CF  7E7907C0 BRV3 $,0,1,, Pls, IF, IR -- Skip Invalid Instruction
1289
1401  --------------------------------------------------------------------------------
1290
1402  -- Row D : 0x0D-0xFD
1291
1403  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1292
1404  --------------------------------------------------------------------------------
1293
1405 0x01D0 _ORA_abs:
1294
1406 0x01D0  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1295
1407 0x01D1 _ORA_absX:
1296
1408 0x01D1  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1297
1409 0x01D2 _AND_abs:
1298
1410 0x01D2  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1299
1411 0x01D3 _AND_absX:
1300
1412 0x01D3  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1301
1413 0x01D4 _EOR_abs:
1302
1414 0x01D4  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1303
1415 0x01D5 _EOR_absX:
1304
1416 0x01D5  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1305
1417 0x01D6 _ADC_abs:
1306
1418 0x01D6  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1307
1419 0x01D7 _ADC_absX:
1308
1420 0x01D7  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1309
1421 0x01D8 _STA_abs:
1310
1422 0x01D8  42990780 BRV0 _WO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1311
1423 0x01D9 _STA_absX:
1312
1424 0x01D9  42A90780 BRV0 _WO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1313
1425 0x01DA _LDA_abs:
1314
1426 0x01DA  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1315
1427 0x01DB _LDA_absX:
1316
1428 0x01DB  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1317
1429 0x01DC _CMP_abs:
1318
1430 0x01DC  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1319
1431 0x01DD _CMP_absX:
1320
1432 0x01DD  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1321
1433 0x01DE _SBC_abs:
1322
1434 0x01DE  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1323
1435 0x01DF _SBC_absX:
1324
1436 0x01DF  42190780 BRV0 _RO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1325
1437  --------------------------------------------------------------------------------
1326
1438  -- Row E : 0x0E-0xFE
1327
1439  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1328
1440  --------------------------------------------------------------------------------
1329
1441 0x01E0 _ASL_abs:
1330
1442 0x01E0  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1331
1443 0x01E1 _ASL_absX:
1332
1444 0x01E1  43590780 BRV0 _RMW_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1333
1445 0x01E2 _ROL_abs:
1334
1446 0x01E2  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1335
1447 0x01E3 _ROL_absX:
1336
1448 0x01E3  43590780 BRV0 _RMW_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1337
1449 0x01E4 _LSR_abs:
1338
1450 0x01E4  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1339
1451 0x01E5 _LSR_absX:
1340
1452 0x01E5  43590780 BRV0 _RMW_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1341
1453 0x01E6 _ROR_abs:
1342
1454 0x01E6  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1343
1455 0x01E7 _ROR_absX:
1344
1456 0x01E7  43590780 BRV0 _RMW_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1345
1457 0x01E8 _STX_abs:
1346
1458 0x01E8  42990780 BRV0 _WO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1347
1459 0x01E9 _STZ_absX:
1348
1460 0x01E9  42A90780 BRV0 _WO_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1349
1461 0x01EA _LDX_abs:
1350
1462 0x01EA  42090780 BRV0 _RO_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1351
1463 0x01EB _LDX_absY:
1352
1464 0x01EB  42290780 BRV0 _RO_AbsY,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1353
1465 0x01EC _DEC_abs:
1354
1466 0x01EC  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1355
1467 0x01ED _DEC_absX:
1356
1468 0x01ED  43590780 BRV0 _RMW_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1357
1469 0x01EE _INC_abs:
1358
1470 0x01EE  43410780 BRV0 _RMW_Abs,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1359
1471 0x01EF _INC_absX:
1360
1472 0x01EF  43590780 BRV0 _RMW_AbsX,0,1,, Pls, IF, OP1 -- Read Dst Ptr Lo
1361
1473  --------------------------------------------------------------------------------
1362
1474  -- Row F : 0x0F-0xFF (Rockwell Instructions: BBRx/BBSx dp,rel)
1363
1475  -- I BA, Wt, En, NA, PC, IO, DI, SP, Reg_WE, ISR
1364
1476  --------------------------------------------------------------------------------
1365
1477 0x01F0 _BBR0_dp_rel:
1366
1478 0x01F0  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1367
1479 0x01F1 _BBR1_dp_rel:
1368
1480 0x01F1  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1369
1481 0x01F2 _BBR2_dp_rel:
1370
1482 0x01F2  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1371
1483 0x01F3 _BBR3_dp_rel:
1372
1484 0x01F3  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1373
1485 0x01F4 _BBR4_dp_rel:
1374
1486 0x01F4  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1375
1487 0x01F5 _BBR5_dp_rel:
1376
1488 0x01F5  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1377
1489 0x01F6 _BBR6_dp_rel:
1378
1490 0x01F6  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1379
1491 0x01F7 _BBR7_dp_rel:
1380
1492 0x01F7  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1381
1493 0x01F8 _BBS0_dp_rel:
1382
1494 0x01F8  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1383
1495 0x01F9 _BBS1_dp_rel:
1384
1496 0x01F9  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1385
1497 0x01FA _BBS2_dp_rel:
1386
1498 0x01FA  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1387
1499 0x01FB _BBS3_dp_rel:
1388
1500 0x01FB  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1389
1501 0x01FC _BBS4_dp_rel:
1390
1502 0x01FC  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1391
1503 0x01FD _BBS5_dp_rel:
1392
1504 0x01FD  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1393
1505 0x01FE _BBS6_dp_rel:
1394
1506 0x01FE  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1395
1507 0x01FF _BBS7_dp_rel:
1396
1508 0x01FF  43890780 BRV0 _BByx_dp_rel,0,1,, Pls, IF, OP1 -- Read DP
1397
1509  --------------------------------------------------------------------------------
1398
1510  -- End of Instruction Decode Table
1399
1511  --------------------------------------------------------------------------------
1400
1513 0x0200 _Last: .org 512
1401
1515 0x0200 _end:

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.