-
Notifications
You must be signed in to change notification settings - Fork 3
/
mcode.txt
1028 lines (1013 loc) · 18.5 KB
/
mcode.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%
/***************************************************************************
This file is part of "HD63701V0 Compatible Processor Core".
( DON'T ADD TO PROJECT, Because this file is include file. )
****************************************************************************/
`define MC_TRAP {`mcINT, `vaTRP ,`mcrn,`mcpI,`amPC,`pcI}
`define MC_HALT {`mcNOP,`mcrn,`mcrn,`mcrn,`mcpH,`amPC,`pcN}
`define MC_NEXTI {`mcNOP,`mcrn,`mcrn,`mcrn,`mcp0,`amPC,`pcN}
`define MC_NEXTP {`mcNOP,`mcrn,`mcrn,`mcrn,`mcpN,`amPC,`pcI}
`define MC_LDBRO {`mcLDN,`mcrM,`mcrn,`mcrT,`mcpN,`amPC,`pcI} // Bxx NN
`define MC_LDIXO {`mcLDN,`mcrM,`mcrn,`mcrT,`mcpN,`amPC,`pcI} // ($NN+X)
`define MC_LDIXM {`mcLDN,`mcrM,`mcrn,`mcrE,`mcpN,`amXT,`pcN} // ($nn+X) => rE
`define MC_LDEXH {`mcLDN,`mcrN,`mcrn,`mcrE,`mcpN,`amPC,`pcI} // ($NNnn)
`define MC_LDEXL {`mcLOR,`mcrM,`mcrE,`mcrE,`mcpN,`amPC,`pcI} // ($nnNN)
`define MC_LDEXM {`mcLDN,`mcrM,`mcrn,`mcrT,`mcpN,`amE0,`pcN} // ($nnnn) => rT
%
#----------------------------------------------------------------------------------
#$00 (undef)
$01 NOP NOP nnn K PC I
#$02 (undef)
#$03 (undef)
$04 LSRD LSR DnD K PC I
$05 ASLD ASL DnD K PC I
$06 TAP LDN AnC K PC I
$07 TPA LDN CnA K PC I
$08 INX INC XnX K PC I
$09 DEX DEC XnX K PC I
$0A CLV "{`mcCCB, ~`bfV ,`mcrC,`mcpK,`amPC,`pcI}"
$0B SEV "{`mcSCB, `bfV ,`mcrC,`mcpK,`amPC,`pcI}"
$0C CLC "{`mcCCB, ~`bfC ,`mcrC,`mcpK,`amPC,`pcI}"
$0D SEC "{`mcSCB, `bfC ,`mcrC,`mcpK,`amPC,`pcI}"
$0E CLI "{`mcCCB, ~`bfI ,`mcrC,`mcpK,`amPC,`pcI}"
$0F SEI "{`mcSCB, `bfI ,`mcrC,`mcpK,`amPC,`pcI}"
#----------------------------------------------------------------------------------
$10 SBA SUB ABA K PC I
$11 CBA SUB ABn K PC I
$12 (undoc1)
LDN MnT N S1 I
ADD XTX 0 PC N
$13 (undoc2)
LDN MnT N S1 I
ADD XTX 0 PC N
#$14 (undef)
#$15 (undef)
$16 TAB LDR AnB K PC I
$17 TBA LDR BnA K PC I
$18 XGDX
XTD nnn N PC I
LDN TnD 0 PC N
$19 DAA DAA AnA 0 PC I
$1A SLP NOP nnn S PC I
$1B ABA ADD ABA K PC I
#$1C (undef)
#$1D (undef)
#$1E (undef)
$1F (DBGHLT) "`MC_HALT"
#----------------------------------------------------------------------------------
$20 BRA
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfRA ,`mcrn,`mcp0,`amPC,`pcN}"
$21 BRN
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfRN ,`mcrn,`mcp0,`amPC,`pcN}"
$22 BHI
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfHI ,`mcrn,`mcp0,`amPC,`pcN}"
$23 BLS
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfLS ,`mcrn,`mcp0,`amPC,`pcN}"
$24 BCC
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfCC ,`mcrn,`mcp0,`amPC,`pcN}"
$25 BCS
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfCS ,`mcrn,`mcp0,`amPC,`pcN}"
$26 BNE
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfNE ,`mcrn,`mcp0,`amPC,`pcN}"
$27 BEQ
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfEQ ,`mcrn,`mcp0,`amPC,`pcN}"
$28 BVC
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfVC ,`mcrn,`mcp0,`amPC,`pcN}"
$29 BVS
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfVS ,`mcrn,`mcp0,`amPC,`pcN}"
$2A BPL
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfPL ,`mcrn,`mcp0,`amPC,`pcN}"
$2B BMI
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfMI ,`mcrn,`mcp0,`amPC,`pcN}"
$2C BGE
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfGE ,`mcrn,`mcp0,`amPC,`pcN}"
$2D BLT
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfLT ,`mcrn,`mcp0,`amPC,`pcN}"
$2E BGT
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfGT ,`mcrn,`mcp0,`amPC,`pcN}"
$2F BLE
"`MC_NEXTP"
"`MC_LDBRO"
"{`mcAPC, `bfLE ,`mcrn,`mcp0,`amPC,`pcN}"
#----------------------------------------------------------------------------------
$30 TSX INC SnX K PC I
$31 INS INC SnS K PC I
$32 PULA
PUL MnA N S1 I
NOP nnn N PC N
"`MC_NEXTI"
$33 PULB
PUL MnB N S1 I
NOP nnn N PC N
"`MC_NEXTI"
$34 DES DEC SnS K PC I
$35 TXS DEC XnS K PC I
$36 PSHA
PSH AnM N SP I
NOP nnn N PC N
NOP nnn N PC N
"`MC_NEXTI"
$37 PSHB
PSH BnM N SP I
NOP nnn N PC N
NOP nnn N PC N
"`MC_NEXTI"
$38 PULX
INC SnS N PC I
LDN NnX N SP N
LOR XMX N S1 N
INC SnS 0 PC N
$39 RTS
NOP nnn N PC N
INC SnS N PC N
LDN NnP N SP N
LOR PMP N S1 N
INC SnS 0 PC N
$3A ABX ADD XBX K PC I
$3B RTI
PUL MnT N S1 N
PUL MnB N S1 N
PUL MnA N S1 N
PUL NnX N S1 N
LOR MXX N S1 N
INC SnS N S1 N
PUL NnP N S1 N
LOR MPP N S1 N
INC SnS N PC N
LDN TnC 0 PC N
$3C PSHX
DEC SnS N PC I
LDN XnM N S1 N
LDN XnN N SP N
DEC SnS N PC N
NOP nnn 0 PC N
$3D MUL
NOP nnn N PC N
NOP nnn N PC N
NOP nnn N PC N
NOP nnn N PC N
NOP nnn N PC N
NOP nnn N PC N
MUL ABD 0 PC I
$3E WAI "{`mcINT, `vaWAI ,`mcrn,`mcpI,`amPC,`pcI}"
$3F SWI "{`mcINT, `vaSWI ,`mcrn,`mcpI,`amPC,`pcI}"
#----------------------------------------------------------------------------------
$40 NEGA NEG AnA K PC I
#$41 (undef)
#$42 (undef)
$43 COMA NOT AnA K PC I
$44 LSRA LSR AnA K PC I
#$45 (undef)
$46 RORA ROR AnA K PC I
$47 ASRA ASR AnA K PC I
$48 ASLA ASL AnA K PC I
$49 ROLA ROL AnA K PC I
$4A DECA DEC AnA K PC I
#$4B (undef)
$4C INCA INC AnA K PC I
$4D TSTA TST Ann K PC I
#$4E (undef)
$4F CLRA LDR nnA K PC I
#----------------------------------------------------------------------------------
$50 NEGB NEG BnB K PC I
#$51 (undef)
#$52 (undef)
$53 COMB NOT BnB K PC I
$54 LSRB LSR BnB K PC I
#$55 (undef)
$56 RORB ROR BnB K PC I
$57 ASRB ASR BnB K PC I
$58 ASLB ASL BnB K PC I
$59 ROLB ROL BnB K PC I
$5A DECB DEC BnB K PC I
#$5B (undef)
$5C INCB INC BnB K PC I
$5D TSTB TST Bnn K PC I
#$5E (undef)
$5F CLRB LDR nnB K PC I
#----------------------------------------------------------------------------------
$60 NEG($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
NEG EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$61 AIM#,($nn+X)
"`MC_NEXTP"
LDN MnE N PC I
"`MC_LDIXO"
AND MEE N XT N
LDN EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$62 OIM#,($nn+X)
"`MC_NEXTP"
LDN MnE N PC I
"`MC_LDIXO"
LOR MEE N XT N
LDN EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$63 COM($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
NOT EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$64 LSR($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
LSR EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$65 EIM#,($nn+X)
"`MC_NEXTP"
LDN MnE N PC I
"`MC_LDIXO"
EOR MEE N XT N
LDN EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$66 ROR($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
ROR EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$67 ASR($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
ASR EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$68 ASL($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
ASL EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$69 ROL($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
ROL EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$6A DEC($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
DEC EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$6B TIM#,($nn+X)
"`MC_NEXTP"
LDN MnE N PC I
"`MC_LDIXO"
AND MEn N XT N
"`MC_NEXTI"
$6C INC($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
"`MC_LDIXM"
INC EnM N XT N
NOP nnn N PC N
"`MC_NEXTI"
$6D TST($nn+X)
LDN MnT N P1 I
TST Mnn N XT I
NOP nnn N PC N
"`MC_NEXTI"
$6E JMP.$nn+X
"`MC_NEXTP"
"`MC_LDIXO"
ADD XTP 0 PC N
$6F CLR($nn+X)
"`MC_NEXTP"
"`MC_LDIXO"
NOP nnn N XT N
LDN nnM N XT N
"`MC_NEXTI"
#----------------------------------------------------------------------------------
$70 NEG($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
NEG TnM N E0 N
"`MC_NEXTI"
$71 AIM#,($nn)
LDN MnT N P1 I
LDN MnE N P1 I
AND TMT N E0 I
LDN TnM N E0 N
"`MC_NEXTI"
$72 OIM#,($nn)
LDN MnT N P1 I
LDN MnE N P1 I
LOR TMT N E0 I
LDN TnM N E0 N
"`MC_NEXTI"
$73 COM($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
NOT TnM N E0 N
"`MC_NEXTI"
$74 LSR($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
LSR TnM N E0 N
"`MC_NEXTI"
$75 EIM#,($nnnn)
LDN MnT N P1 I
LDN NnE N P1 I
LOR MEE N P1 I
EOR TMT N E0 I
LDN TnM N E0 N
"`MC_NEXTI"
$76 ROR($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
ROR TnM N E0 N
"`MC_NEXTI"
$77 ASR($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
ASR TnM N E0 N
"`MC_NEXTI"
$78 ASL($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
ASL TnM N E0 N
"`MC_NEXTI"
$79 ROL($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
ROL TnM N E0 N
"`MC_NEXTI"
$7A DEC($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
DEC TnM N E0 N
"`MC_NEXTI"
$7B TIM#,($nn)
LDN MnT N P1 I
LDN MnE N P1 I
AND TMn N E0 I
"`MC_NEXTI"
$7C INC($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
"`MC_LDEXM"
INC TnM N E0 N
"`MC_NEXTI"
$7D TST($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
TST Mnn N E0 I
"`MC_NEXTI"
$7E JMP.$nnnn
"`MC_NEXTP"
"`MC_LDEXH"
LOR MEP 0 PC N
$7F CLR($nnnn)
"`MC_NEXTP"
"`MC_LDEXH"
"`MC_LDEXL"
LDR nnM N E0 N
"`MC_NEXTI"
#----------------------------------------------------------------------------------
$80 SUBA#
NOP nnn N PC I
SUB AMA 0 PC I
$81 CMPA#
NOP nnn N PC I
SUB AMn 0 PC I
$82 SBCA#
NOP nnn N PC I
SBC AMA 0 PC I
$83 SUBD#
LDN MnU N P1 I
LDN MnV N P1 I
SUB DTD 0 PC I
$84 ANDA#
NOP nnn N PC I
AND AMA 0 PC I
$85 BITA#
NOP nnn N PC I
AND AMn 0 PC I
$86 LDA#
NOP nnn N PC I
LDR MnA 0 PC I
#$87 (undef)
$88 EORA#
NOP nnn N PC I
EOR AMA 0 PC I
$89 ADCA#
NOP nnn N PC I
ADC AMA 0 PC I
$8A ORA#
NOP nnn N PC I
LOR AMA 0 PC I
$8B ADDA#
NOP nnn N PC I
ADD AMA 0 PC I
$8C CMPX#
LDN MnU N P1 I
LDN MnV N P1 I
SUB XTn 0 PC I
$8D BSR
LDN MnT N P1 I
NOP nnn N PC I
PSH PnM N SP N
PSH PnN N SP N
"{`mcAPC, `bfRA ,`mcrn,`mcp0,`amPC,`pcN}"
$8E LDS#
LDN MnU N P1 I
LDN MnV N P1 I
LDR TnS 0 PC I
#$8F (undef)
#----------------------------------------------------------------------------------
$90 SUBA($nn)
LDN MnE N P1 I
SUB AMA N E0 I
NOP nnn 0 PC N
$91 CMPA($nn)
LDN MnE N P1 I
SUB AMn N E0 I
NOP nnn 0 PC N
$92 SBCA($nn)
LDN MnE N P1 I
SBC AMA N E0 I
NOP nnn 0 PC N
$93 SUBD($nn)
LDN MnE N P1 I
LDN MnU N E0 I
LDN MnV N E1 N
SUB DTD 0 PC N
$94 ANDA($nn)
LDN MnE N P1 I
AND AMA N E0 I
NOP nnn 0 PC N
$95 BITA($nn)
LDN MnE N P1 I
AND AMn N E0 I
NOP nnn 0 PC N
$96 LDA($nn)
LDN MnE N P1 I
LDR MnA N E0 I
NOP nnn 0 PC N
$97 STA($nn)
LDN MnE N P1 I
LDR AnM N E0 I
NOP nnn 0 PC N
$98 EORA($nn)
LDN MnE N P1 I
EOR AMA N E0 I
NOP nnn 0 PC N
$99 ADCA($nn)
LDN MnE N P1 I
ADC AMA N E0 I
NOP nnn 0 PC N
$9A ORA($nn)
LDN MnE N P1 I
LOR AMA N E0 I
NOP nnn 0 PC N
$9B ADDA($nn)
LDN MnE N P1 I
ADD AMA N E0 I
NOP nnn 0 PC N
$9C CMPX($nn)
LDN MnE N P1 I
LDN NnT N E0 I
LOR MTT N E1 N
SUB XTn 0 PC N
$9D JSR($nn)
NOP nnn N PC I
LDN MnE N PC I
PSH PnM N SP N
PSH PnN N SP N
LDN EnP 0 PC N
$9E LDS($nn)
LDN MnE N P1 I
LDN MnU N E0 I
LDN MnV N E1 N
LDR TnS 0 PC N
$9F STS($nn)
LDN MnE N P1 I
LDN SnN N E0 I
LDN SnM N E1 N
LDR SnS 0 PC N
#----------------------------------------------------------------------------------
$A0 SUBA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
SUB AEA 0 PC N
$A1 CMPA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
SUB AEn 0 PC N
$A2 SBCA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
SBC AEn 0 PC N
$A3 SUBD($nn+X)
LDN MnT N P1 I
LDN NnE N XT I
INC TnT N XT N
LOR MEE N XT N
SUB DED 0 PC N
$A4 ANDA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
AND AEA 0 PC N
$A5 BITA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
AND AEn 0 PC N
$A6 LDA($nn+X)
LDN MnT N P1 I
LDR MnA N XT I
NOP nnn N PC N
NOP nnn 0 PC N
$A7 STA($nn+X)
LDN MnT N P1 I
LDR AnM N XT I
NOP nnn N PC N
NOP nnn 0 PC N
$A8 EORA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
EOR AEA 0 PC N
$A9 ADCA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
ADC AEA 0 PC N
$AA ORA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
LOR AEA 0 PC N
$AB ADDA($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
ADD AEA 0 PC N
$AC CMPX($nn+X)
LDN MnT N P1 I
LDN NnE N XT I
INC TnT N XT N
LOR MEE N XT N
SUB XEn 0 PC N
$AD JSR.$nn+X
LDN MnT N P1 I
NOP nnn N PC I
PSH PnM N SP N
PSH PnN N SP N
ADD XTP 0 PC N
$AE LDS($nn+X)
LDN MnT N P1 I
LDN NnE N XT I
INC TnT N XT N
LOR MEE N XT N
LDR EnS 0 PC N
$AF STS($nn+X)
LDN MnT N P1 I
LDN SnN N XT I
INC TnT N XT N
LDN SnM N XT N
LDR SnS 0 PC N
#----------------------------------------------------------------------------------
$B0 SUBA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
SUB AMA N E0 I
NOP nnn 0 PC N
$B1 CMPA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
SUB AMn N E0 I
NOP nnn 0 PC N
$B2 SBCA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
SBC AMn N E0 I
NOP nnn 0 PC N
$B3 SUBD($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDN NnT N E0 I
LOR MTT N E1 N
SUB DTD 0 PC N
$B4 ANDA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
AND AMA N E0 I
NOP nnn 0 PC N
$B5 BITA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
AND AMn N E0 I
NOP nnn 0 PC N
$B6 LDA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDR MnA N E0 I
NOP nnn 0 PC N
$B7 STA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDR AnM N E0 I
NOP nnn 0 PC N
$B8 EORA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
EOR AMA N E0 I
NOP nnn 0 PC N
$B9 ADCA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
ADC AMA N E0 I
NOP nnn 0 PC N
$BA ORA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LOR AMA N E0 I
NOP nnn 0 PC N
$BB ADDA($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
ADD AMA N E0 I
NOP nnn 0 PC N
$BC CMPX($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDN NnT N E0 I
LOR MTT N E1 N
SUB XTn 0 PC N
$BD JSR.$nnnn
NOP nnn N PC I
LDN NnE N PC I
LOR MEE N PC I
PSH PnM N SP N
PSH PnN N SP N
LDN EnP 0 PC N
$BE LDS($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDN MnU N E0 I
LDN MnV N E1 N
LDR TnS 0 PC N
$BF STS($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDN SnN N E0 I
LDN SnM N E1 N
LDR SnS 0 PC N
#----------------------------------------------------------------------------------
$C0 SUBB#
NOP nnn N PC I
SUB BMB 0 PC I
$C1 CMPB#
NOP nnn N PC I
SUB BMn 0 PC I
$C2 SBCB#
NOP nnn N PC I
SBC BMB 0 PC I
$C3 ADDD#
LDN MnU N P1 I
LDN MnV N P1 I
ADD DTD 0 PC I
$C4 ANDB#
NOP nnn N PC I
AND BMB 0 PC I
$C5 BITB#
NOP nnn N PC I
AND BMn 0 PC I
$C6 LDB#
NOP nnn N PC I
LDR MnB 0 PC I
#$C7 (undef)
$C8 EORB#
NOP nnn N PC I
EOR BMB 0 PC I
$C9 ADCB#
NOP nnn N PC I
ADC BMB 0 PC I
$CA ORB#
NOP nnn N PC I
LOR BMB 0 PC I
$CB ADDB#
NOP nnn N PC I
ADD BMB 0 PC I
$CC LDD#
LDN MnU N P1 I
LDN MnV N P1 I
LDR TnD 0 PC I
#$CD (undef)
$CE LDX#
LDN MnU N P1 I
LDN MnV N P1 I
LDR TnX 0 PC I
#$CF (undef)
#----------------------------------------------------------------------------------
$D0 SUBB($nn)
LDN MnE N P1 I
SUB BMB N E0 I
NOP nnn 0 PC N
$D1 CMPB($nn)
LDN MnE N P1 I
SUB BMn N E0 I
NOP nnn 0 PC N
$D2 SBCB($nn)
LDN MnE N P1 I
SBC BMB N E0 I
NOP nnn 0 PC N
$D3 ADDD($nn)
LDN MnE N P1 I
LDN MnU N E0 I
LDN MnV N E1 N
ADD DTD 0 PC N
$D4 ANDB($nn)
LDN MnE N P1 I
AND BMB N E0 I
NOP nnn 0 PC N
$D5 BITB($nn)
LDN MnE N P1 I
AND BMn N E0 I
NOP nnn 0 PC N
$D6 LDB($nn)
LDN MnE N P1 I
LDR MnB N E0 I
NOP nnn 0 PC N
$D7 STB($nn)
LDN MnE N P1 I
LDR BnM N E0 I
NOP nnn 0 PC N
$D8 EORB($nn)
LDN MnE N P1 I
EOR BMB N E0 I
NOP nnn 0 PC N
$D9 ADCB($nn)
LDN MnE N P1 I
ADC BMB N E0 I
NOP nnn 0 PC N
$DA ORB($nn)
LDN MnE N P1 I
LOR BMB N E0 I
NOP nnn 0 PC N
$DB ADDB($nn)
LDN MnE N P1 I
ADD BMB N E0 I
NOP nnn 0 PC N
$DC LDD($nn)
LDN MnE N P1 I
LDN NnD N E0 I
LOR MDD N E1 N
LDR DnD 0 PC N
$DD STD($nn)
LDN MnE N P1 I
LDN DnN N E0 I
LDN DnM N E1 N
LDR DnD 0 PC N
$DE LDX($nn)
LDN MnE N P1 I
LDN NnX N E0 I
LOR MXX N E1 N
LDR XnX 0 PC N
$DF STX($nn)
LDN MnE N P1 I
LDN XnN N E0 I
LDN XnM N E1 N
LDR XnX 0 PC N
#----------------------------------------------------------------------------------
$E0 SUBB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
SUB BEB 0 PC N
$E1 CMPB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
SUB BEn 0 PC N
$E2 SBCB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
SBC BEB 0 PC N
$E3 ADDD($nn+X)
LDN MnT N P1 I
LDN NnE N XT I
INC TnT N XT N
LOR MEE N XT N
ADD DED 0 PC N
$E4 ANDB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
AND BEB 0 PC N
$E5 BITB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
AND BEn 0 PC N
$E6 LDB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
LDR EnB 0 PC N
$E7 STB($nn+X)
LDN MnT N P1 I
LDN BnM N XT I
NOP nnn N PC N
NOP nnn 0 PC N
$E8 EORB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
EOR BEB 0 PC N
$E9 ADCB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
ADC BEB 0 PC N
$EA ORB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
LOR BEB 0 PC N
$EB ADDB($nn+X)
LDN MnT N P1 I
LDN MnE N XT I
NOP nnn N PC N
ADD BEB 0 PC N
$EC LDD($nn+X)
LDN MnT N P1 I
LDN NnE N XT I
INC TnT N XT N
LOR MEE N XT N
LDR EnD 0 PC N
$ED STD($nn+X)
LDN MnT N P1 I
LDN DnN N XT I
INC TnT N XT N
LDN DnM N XT N
LDR DnD 0 PC N
$EE LDX($nn+X)
LDN MnT N P1 I
LDN NnE N XT I
INC TnT N XT N
LOR MEE N XT N
LDN EnX 0 PC N
$EF STX($nn+X)
LDN MnT N P1 I
LDN XnN N XT I
INC TnT N XT N
LDN XnM N XT N
LDR XnX 0 PC N
#----------------------------------------------------------------------------------
$F0 SUBB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
SUB BMB N E0 I
NOP nnn 0 PC N
$F1 CMPB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
SUB BMn N E0 I
NOP nnn 0 PC N
$F2 SBCB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
SBC BMn N E0 I
NOP nnn 0 PC N
$F3 ADDD($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDN NnT N E0 I
LOR MTT N E1 N
ADD DTD 0 PC N
$F4 ANDB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
AND BMB N E0 I
NOP nnn 0 PC N
$F5 BITB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
AND BMn N E0 I
NOP nnn 0 PC N
$F6 LDB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDR MnB N E0 I
NOP nnn 0 PC N
$F7 STB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LDR BnM N E0 I
NOP nnn 0 PC N
$F8 EORB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
EOR BMB N E0 I
NOP nnn 0 PC N
$F9 ADCB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
ADC BMB N E0 I
NOP nnn 0 PC N
$FA ORB($nnnn)
LDN NnE N P1 I
LOR MEE N P1 I
LOR BMB N E0 I
NOP nnn 0 PC N
$FB ADDB($nnnn)
LDN NnE N P1 I