-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathassembler.asm
3271 lines (3268 loc) · 115 KB
/
assembler.asm
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
naken_util - by Michael Kohn
Joe Davisson
Web: http://www.mikekohn.net/
Email: [email protected]
Version: March 15, 2020
Loaded bin binaries/flash.bin from 0x8000 to 0x9fff
Type help for a list of commands.
Addr Opcode Instruction
------- ------ ---------------------------------- ; removed cycle counts - unnecessary clutter
; manual annotations with comment
; interrupt vectors
0x8000: 82 00 99 dc int $99dc
0x8004: 82 00 9b ba int $9bba
0x8008: 82 00 9b ba int $9bba
0x800c: 82 00 9b ba int $9bba
0x8010: 82 00 9b ba int $9bba
0x8014: 82 00 9b ba int $9bba
0x8018: 82 00 9b ba int $9bba
0x801c: 82 00 9b ba int $9bba
0x8020: 82 00 9b ba int $9bba
0x8024: 82 00 9b ba int $9bba
0x8028: 82 00 9b ba int $9bba
0x802c: 82 00 9b ba int $9bba
0x8030: 82 00 9b ba int $9bba
0x8034: 82 00 9a 22 int $9a22
0x8038: 82 00 9b ba int $9bba
0x803c: 82 00 9a 48 int $9a48
0x8040: 82 00 9b ba int $9bba
0x8044: 82 00 9b ba int $9bba
0x8048: 82 00 9b ba int $9bba
0x804c: 82 00 98 8d int $988d
0x8050: 82 00 98 e0 int $98e0
0x8054: 82 00 9b ba int $9bba
0x8058: 82 00 9b ba int $9bba
0x805c: 82 00 9b ba int $9bba
0x8060: 82 00 9b ba int $9bba
0x8064: 82 00 9b ba int $9bba
0x8068: 82 00 9b ba int $9bba
0x806c: 82 00 9b ba int $9bba
0x8070: 82 00 9b ba int $9bba
0x8074: 82 00 9b ba int $9bba
0x8078: 82 00 9b ba int $9bba
0x807c: 82 00 9b ba int $9bba
; program instructions follow
; memcpy
0x8080: b7 00 ld $00,A
0x8082: 27 0d jreq $8091 (offset=13)
0x8084: 90 f6 ld A, (Y)
0x8086: f7 ld (X),A
0x8087: 5c incw X
0x8088: 90 5c incw Y
0x808a: b6 00 ld A, $00
0x808c: 4a dec A
0x808d: b7 00 ld $00,A
0x808f: 26 f3 jrne $8084 (offset=-13)
0x8091: 81 ret
; update()
0x8092: 52 61 sub SP, #$61
0x8094: 96 ldw X, SP
0x8095: 1c 00 31 addw X, #$31
0x8098: cd 9b 9e call $9b9e
0x809b: 1e 31 ldw X, ($31,SP)
0x809d: c3 00 92 cpw X, $92
0x80a0: 26 03 jrne $80a5 (offset=3)
0x80a2: cc 88 d4 jp $88d4
0x80a5: cf 00 92 ldw $92,X
0x80a8: ce 00 94 ldw X, $94
0x80ab: 5c incw X
0x80ac: cf 00 94 ldw $94,X
0x80af: c6 00 11 ld A, $11
0x80b2: 4a dec A
0x80b3: 27 51 jreq $8106 (offset=81)
0x80b5: 4a dec A
0x80b6: 27 58 jreq $8110 (offset=88)
0x80b8: 4a dec A
0x80b9: 27 76 jreq $8131 (offset=118)
0x80bb: 4a dec A
0x80bc: 26 03 jrne $80c1 (offset=3)
0x80be: cc 86 71 jp $8671
0x80c1: 4a dec A
0x80c2: 26 03 jrne $80c7 (offset=3)
0x80c4: cc 86 7b jp $867b
0x80c7: 4a dec A
0x80c8: 26 03 jrne $80cd (offset=3)
0x80ca: cc 86 a0 jp $86a0
0x80cd: 4a dec A
0x80ce: 26 03 jrne $80d3 (offset=3)
0x80d0: cc 86 aa jp $86aa
0x80d3: 4a dec A
0x80d4: 26 03 jrne $80d9 (offset=3)
0x80d6: cc 86 d1 jp $86d1
0x80d9: 4a dec A
0x80da: 26 03 jrne $80df (offset=3)
0x80dc: cc 86 db jp $86db
0x80df: 4a dec A
0x80e0: 26 03 jrne $80e5 (offset=3)
0x80e2: cc 87 05 jp $8705
0x80e5: 4a dec A
0x80e6: 26 03 jrne $80eb (offset=3)
0x80e8: cc 87 0e jp $870e
0x80eb: 4a dec A
0x80ec: 26 03 jrne $80f1 (offset=3)
0x80ee: cc 87 71 jp $8771
0x80f1: 4a dec A
0x80f2: 26 03 jrne $80f7 (offset=3)
0x80f4: cc 87 7f jp $877f
0x80f7: 4a dec A
0x80f8: 26 03 jrne $80fd (offset=3)
0x80fa: cc 88 1c jp $881c
0x80fd: 4a dec A
0x80fe: 26 03 jrne $8103 (offset=3)
0x8100: cc 88 4a jp $884a
0x8103: cc 88 d4 jp $88d4
0x8106: cd 9b 50 call $9b50
0x8109: 35 02 00 11 mov $11, #$02
0x810d: cc 86 43 jp $8643
0x8110: a3 01 f5 cpw X, #$1f5
0x8113: 24 03 jrnc $8118 (offset=3)
0x8115: cc 88 d4 jp $88d4
0x8118: cd 98 69 call $9869
0x811b: 5f clrw X
0x811c: cf 00 94 ldw $94,X
0x811f: 72 5f 00 a3 clr $a3
0x8123: 35 03 00 11 mov $11, #$03
0x8127: 35 02 00 12 mov $12, #$02
0x812b: cd 9b a9 call $9ba9
0x812e: cc 88 d4 jp $88d4
0x8131: c6 00 12 ld A, $12
0x8134: 4a dec A
0x8135: 26 03 jrne $813a (offset=3)
0x8137: cc 82 27 jp $8227
0x813a: 4a dec A
0x813b: 26 03 jrne $8140 (offset=3)
0x813d: cc 82 52 jp $8252
0x8140: 4a dec A
0x8141: 26 03 jrne $8146 (offset=3)
0x8143: cc 82 6e jp $826e
0x8146: 4a dec A
0x8147: 26 03 jrne $814c (offset=3)
0x8149: cc 82 8a jp $828a
0x814c: 4a dec A
0x814d: 26 03 jrne $8152 (offset=3)
0x814f: cc 82 a6 jp $82a6
0x8152: 4a dec A
0x8153: 26 03 jrne $8158 (offset=3)
0x8155: cc 82 c3 jp $82c3
0x8158: 4a dec A
0x8159: 26 03 jrne $815e (offset=3)
0x815b: cc 82 dd jp $82dd
0x815e: 4a dec A
0x815f: 26 03 jrne $8164 (offset=3)
0x8161: cc 82 f7 jp $82f7
0x8164: 4a dec A
0x8165: 26 03 jrne $816a (offset=3)
0x8167: cc 83 13 jp $8313
0x816a: 4a dec A
0x816b: 26 03 jrne $8170 (offset=3)
0x816d: cc 83 22 jp $8322
0x8170: 4a dec A
0x8171: 26 03 jrne $8176 (offset=3)
0x8173: cc 83 3f jp $833f
0x8176: 4a dec A
0x8177: 26 03 jrne $817c (offset=3)
0x8179: cc 83 59 jp $8359
0x817c: 4a dec A
0x817d: 26 03 jrne $8182 (offset=3)
0x817f: cc 83 73 jp $8373
0x8182: 4a dec A
0x8183: 26 03 jrne $8188 (offset=3)
0x8185: cc 83 8f jp $838f
0x8188: 4a dec A
0x8189: 26 03 jrne $818e (offset=3)
0x818b: cc 83 9e jp $839e
0x818e: 4a dec A
0x818f: 26 03 jrne $8194 (offset=3)
0x8191: cc 83 bb jp $83bb
0x8194: 4a dec A
0x8195: 26 03 jrne $819a (offset=3)
0x8197: cc 83 d5 jp $83d5
0x819a: 4a dec A
0x819b: 26 03 jrne $81a0 (offset=3)
0x819d: cc 83 f4 jp $83f4
0x81a0: 4a dec A
0x81a1: 26 03 jrne $81a6 (offset=3)
0x81a3: cc 84 13 jp $8413
0x81a6: 4a dec A
0x81a7: 26 03 jrne $81ac (offset=3)
0x81a9: cc 84 22 jp $8422
0x81ac: 4a dec A
0x81ad: 26 03 jrne $81b2 (offset=3)
0x81af: cc 84 44 jp $8444
0x81b2: 4a dec A
0x81b3: 26 03 jrne $81b8 (offset=3)
0x81b5: cc 84 63 jp $8463
0x81b8: 4a dec A
0x81b9: 26 03 jrne $81be (offset=3)
0x81bb: cc 84 82 jp $8482
0x81be: 4a dec A
0x81bf: 26 03 jrne $81c4 (offset=3)
0x81c1: cc 84 a1 jp $84a1
0x81c4: 4a dec A
0x81c5: 26 03 jrne $81ca (offset=3)
0x81c7: cc 84 c0 jp $84c0
0x81ca: 4a dec A
0x81cb: 26 03 jrne $81d0 (offset=3)
0x81cd: cc 84 cf jp $84cf
0x81d0: 4a dec A
0x81d1: 26 03 jrne $81d6 (offset=3)
0x81d3: cc 84 f1 jp $84f1
0x81d6: 4a dec A
0x81d7: 26 03 jrne $81dc (offset=3)
0x81d9: cc 85 10 jp $8510
0x81dc: 4a dec A
0x81dd: 26 03 jrne $81e2 (offset=3)
0x81df: cc 85 2f jp $852f
0x81e2: 4a dec A
0x81e3: 26 03 jrne $81e8 (offset=3)
0x81e5: cc 85 4e jp $854e
0x81e8: 4a dec A
0x81e9: 26 03 jrne $81ee (offset=3)
0x81eb: cc 85 6d jp $856d
0x81ee: 4a dec A
0x81ef: 26 03 jrne $81f4 (offset=3)
0x81f1: cc 85 7c jp $857c
0x81f4: 4a dec A
0x81f5: 26 03 jrne $81fa (offset=3)
0x81f7: cc 85 9e jp $859e
0x81fa: 4a dec A
0x81fb: 26 03 jrne $8200 (offset=3)
0x81fd: cc 85 bd jp $85bd
0x8200: 4a dec A
0x8201: 26 03 jrne $8206 (offset=3)
0x8203: cc 85 dc jp $85dc
0x8206: 4a dec A
0x8207: 26 03 jrne $820c (offset=3)
0x8209: cc 85 fb jp $85fb
0x820c: 4a dec A
0x820d: 26 03 jrne $8212 (offset=3)
0x820f: cc 86 1e jp $861e
0x8212: 4a dec A
0x8213: 26 03 jrne $8218 (offset=3)
0x8215: cc 86 2d jp $862d
0x8218: 4a dec A
0x8219: 26 03 jrne $821e (offset=3)
0x821b: cc 86 4a jp $864a
0x821e: 4a dec A
0x821f: 26 03 jrne $8224 (offset=3)
0x8221: cc 86 59 jp $8659
0x8224: cc 88 d4 jp $88d4
0x8227: a3 00 07 cpw X, #$7
0x822a: 24 03 jrnc $822f (offset=3)
0x822c: cc 88 d4 jp $88d4
0x822f: 4f clr A
0x8230: 6b 01 ld ($01,SP),A
0x8232: a6 01 ld A, #$01
0x8234: 96 ldw X, SP
0x8235: cd 9b 91 call $9b91
0x8238: 27 0b jreq $8245 (offset=11)
0x823a: 5f clrw X
0x823b: cf 00 94 ldw $94,X
0x823e: c6 00 a3 ld A, $a3
0x8241: 4c inc A
0x8242: c7 00 a3 ld $a3,A
0x8245: c6 00 a3 ld A, $a3
0x8248: a1 0b cp A, #$0b
0x824a: 24 03 jrnc $824f (offset=3)
0x824c: cc 88 d4 jp $88d4
0x824f: cc 86 52 jp $8652
0x8252: a6 03 ld A, #$03
0x8254: 90 ae 9b b7 ldw Y, #$9bb7
0x8258: 96 ldw X, SP
0x8259: cd 8a 18 call $8a18
0x825c: a6 03 ld A, #$03
0x825e: 96 ldw X, SP
0x825f: cd 9b 91 call $9b91
0x8262: 26 03 jrne $8267 (offset=3)
0x8264: cc 88 d4 jp $88d4
0x8267: 35 03 00 12 mov $12, #$03
0x826b: cc 88 d4 jp $88d4
0x826e: a6 04 ld A, #$04
0x8270: 90 ae 9b b3 ldw Y, #$9bb3
0x8274: 96 ldw X, SP
0x8275: cd 8a 18 call $8a18
0x8278: a6 04 ld A, #$04
0x827a: 96 ldw X, SP
0x827b: cd 9b 91 call $9b91
0x827e: 26 03 jrne $8283 (offset=3)
0x8280: cc 88 d4 jp $88d4
0x8283: 35 04 00 12 mov $12, #$04
0x8287: cc 88 d4 jp $88d4
0x828a: a6 06 ld A, #$06
0x828c: 90 ae 9b 98 ldw Y, #$9b98
0x8290: 96 ldw X, SP
0x8291: cd 8a 18 call $8a18
0x8294: a6 06 ld A, #$06
0x8296: 96 ldw X, SP
0x8297: cd 9b 91 call $9b91
0x829a: 26 03 jrne $829f (offset=3)
0x829c: cc 88 d4 jp $88d4
0x829f: 35 05 00 12 mov $12, #$05
0x82a3: cc 88 d4 jp $88d4
0x82a6: cd 9b a9 call $9ba9
0x82a9: a6 0b ld A, #$0b
0x82ab: 90 ae 9b 05 ldw Y, #$9b05
0x82af: 96 ldw X, SP
0x82b0: cd 9b 8a call $9b8a
0x82b3: 96 ldw X, SP
0x82b4: cd 9b 91 call $9b91
0x82b7: 26 03 jrne $82bc (offset=3)
0x82b9: cc 88 d4 jp $88d4
0x82bc: 35 06 00 12 mov $12, #$06
0x82c0: cc 88 d4 jp $88d4
0x82c3: a6 0b ld A, #$0b
0x82c5: 90 ae 9b 10 ldw Y, #$9b10
0x82c9: 96 ldw X, SP
0x82ca: cd 9b 8a call $9b8a
0x82cd: 96 ldw X, SP
0x82ce: cd 9b 91 call $9b91
0x82d1: 26 03 jrne $82d6 (offset=3)
0x82d3: cc 88 d4 jp $88d4
0x82d6: 35 07 00 12 mov $12, #$07
0x82da: cc 88 d4 jp $88d4
0x82dd: a6 0b ld A, #$0b
0x82df: 90 ae 9b 1b ldw Y, #$9b1b
0x82e3: 96 ldw X, SP
0x82e4: cd 9b 8a call $9b8a
0x82e7: 96 ldw X, SP
0x82e8: cd 9b 91 call $9b91
0x82eb: 26 03 jrne $82f0 (offset=3)
0x82ed: cc 88 d4 jp $88d4
0x82f0: 35 08 00 12 mov $12, #$08
0x82f4: cc 88 d4 jp $88d4
0x82f7: a6 07 ld A, #$07
0x82f9: 90 ae 9b 83 ldw Y, #$9b83
0x82fd: 96 ldw X, SP
0x82fe: cd 8a 18 call $8a18
0x8301: a6 07 ld A, #$07
0x8303: 96 ldw X, SP
0x8304: cd 9b 91 call $9b91
0x8307: 26 03 jrne $830c (offset=3)
0x8309: cc 88 d4 jp $88d4
0x830c: 35 09 00 12 mov $12, #$09
0x8310: cc 86 17 jp $8617
0x8313: cd 89 f9 call $89f9
0x8316: 24 03 jrnc $831b (offset=3)
0x8318: cc 88 d4 jp $88d4
0x831b: 35 0a 00 12 mov $12, #$0a
0x831f: cc 88 d4 jp $88d4
0x8322: cd 9b a9 call $9ba9
0x8325: a6 0b ld A, #$0b
0x8327: 90 ae 9a e4 ldw Y, #$9ae4
0x832b: 96 ldw X, SP
0x832c: cd 9b 8a call $9b8a
0x832f: 96 ldw X, SP
0x8330: cd 9b 91 call $9b91
0x8333: 26 03 jrne $8338 (offset=3)
0x8335: cc 88 d4 jp $88d4
0x8338: 35 0b 00 12 mov $12, #$0b
0x833c: cc 88 d4 jp $88d4
0x833f: a6 0b ld A, #$0b
0x8341: 90 ae 9a ef ldw Y, #$9aef
0x8345: 96 ldw X, SP
0x8346: cd 9b 8a call $9b8a
0x8349: 96 ldw X, SP
0x834a: cd 9b 91 call $9b91
0x834d: 26 03 jrne $8352 (offset=3)
0x834f: cc 88 d4 jp $88d4
0x8352: 35 0c 00 12 mov $12, #$0c
0x8356: cc 88 d4 jp $88d4
0x8359: a6 0b ld A, #$0b
0x835b: 90 ae 9a fa ldw Y, #$9afa
0x835f: 96 ldw X, SP
0x8360: cd 9b 8a call $9b8a
0x8363: 96 ldw X, SP
0x8364: cd 9b 91 call $9b91
0x8367: 26 03 jrne $836c (offset=3)
0x8369: cc 88 d4 jp $88d4
0x836c: 35 0d 00 12 mov $12, #$0d
0x8370: cc 88 d4 jp $88d4
0x8373: a6 07 ld A, #$07
0x8375: 90 ae 9b 7c ldw Y, #$9b7c
0x8379: 96 ldw X, SP
0x837a: cd 8a 18 call $8a18
0x837d: a6 07 ld A, #$07
0x837f: 96 ldw X, SP
0x8380: cd 9b 91 call $9b91
0x8383: 26 03 jrne $8388 (offset=3)
0x8385: cc 88 d4 jp $88d4
0x8388: 35 0e 00 12 mov $12, #$0e
0x838c: cc 86 17 jp $8617
0x838f: cd 89 f9 call $89f9
0x8392: 24 03 jrnc $8397 (offset=3)
0x8394: cc 88 d4 jp $88d4
0x8397: 35 0f 00 12 mov $12, #$0f
0x839b: cc 88 d4 jp $88d4
0x839e: cd 9b a9 call $9ba9
0x83a1: a6 0b ld A, #$0b
0x83a3: 90 ae 9a c3 ldw Y, #$9ac3
0x83a7: 96 ldw X, SP
0x83a8: cd 9b 8a call $9b8a
0x83ab: 96 ldw X, SP
0x83ac: cd 9b 91 call $9b91
0x83af: 26 03 jrne $83b4 (offset=3)
0x83b1: cc 88 d4 jp $88d4
0x83b4: 35 10 00 12 mov $12, #$10
0x83b8: cc 88 d4 jp $88d4
0x83bb: a6 0b ld A, #$0b
0x83bd: 90 ae 9a ce ldw Y, #$9ace
0x83c1: 96 ldw X, SP
0x83c2: cd 9b 8a call $9b8a
0x83c5: 96 ldw X, SP
0x83c6: cd 9b 91 call $9b91
0x83c9: 26 03 jrne $83ce (offset=3)
0x83cb: cc 88 d4 jp $88d4
0x83ce: 35 11 00 12 mov $12, #$11
0x83d2: cc 88 d4 jp $88d4
0x83d5: ae 9a d9 ldw X, #$9ad9
0x83d8: 90 96 ldw Y, SP
0x83da: cd 8a 11 call $8a11
0x83dd: cd 9a 3c call $9a3c
0x83e0: 26 fb jrne $83dd (offset=-5)
0x83e2: a6 0b ld A, #$0b
0x83e4: 96 ldw X, SP
0x83e5: cd 9b 91 call $9b91
0x83e8: 26 03 jrne $83ed (offset=3)
0x83ea: cc 88 d4 jp $88d4
0x83ed: 35 12 00 12 mov $12, #$12
0x83f1: cc 88 d4 jp $88d4
0x83f4: ae 9b 75 ldw X, #$9b75
0x83f7: 90 96 ldw Y, SP
0x83f9: cd 8a 0a call $8a0a
0x83fc: cd 9a 3c call $9a3c
0x83ff: 26 fb jrne $83fc (offset=-5)
0x8401: a6 07 ld A, #$07
0x8403: 96 ldw X, SP
0x8404: cd 9b 91 call $9b91
0x8407: 26 03 jrne $840c (offset=3)
0x8409: cc 88 d4 jp $88d4
0x840c: 35 13 00 12 mov $12, #$13
0x8410: cc 86 17 jp $8617
0x8413: cd 89 f9 call $89f9
0x8416: 24 03 jrnc $841b (offset=3)
0x8418: cc 88 d4 jp $88d4
0x841b: 35 14 00 12 mov $12, #$14
0x841f: cc 88 d4 jp $88d4
0x8422: cd 9b a9 call $9ba9
0x8425: ae 99 c9 ldw X, #$99c9
0x8428: 90 96 ldw Y, SP
0x842a: cd 8a 03 call $8a03
0x842d: cd 9a 3c call $9a3c
0x8430: 26 fb jrne $842d (offset=-5)
0x8432: a6 13 ld A, #$13
0x8434: 96 ldw X, SP
0x8435: cd 9b 91 call $9b91
0x8438: 26 03 jrne $843d (offset=3)
0x843a: cc 88 d4 jp $88d4
0x843d: 35 15 00 12 mov $12, #$15
0x8441: cc 88 d4 jp $88d4
0x8444: ae 9a a2 ldw X, #$9aa2
0x8447: 90 96 ldw Y, SP
0x8449: cd 8a 11 call $8a11
0x844c: cd 9a 3c call $9a3c
0x844f: 26 fb jrne $844c (offset=-5)
0x8451: a6 0b ld A, #$0b
0x8453: 96 ldw X, SP
0x8454: cd 9b 91 call $9b91
0x8457: 26 03 jrne $845c (offset=3)
0x8459: cc 88 d4 jp $88d4
0x845c: 35 16 00 12 mov $12, #$16
0x8460: cc 88 d4 jp $88d4
0x8463: ae 9a ad ldw X, #$9aad
0x8466: 90 96 ldw Y, SP
0x8468: cd 8a 11 call $8a11
0x846b: cd 9a 3c call $9a3c
0x846e: 26 fb jrne $846b (offset=-5)
0x8470: a6 0b ld A, #$0b
0x8472: 96 ldw X, SP
0x8473: cd 9b 91 call $9b91
0x8476: 26 03 jrne $847b (offset=3)
0x8478: cc 88 d4 jp $88d4
0x847b: 35 17 00 12 mov $12, #$17
0x847f: cc 88 d4 jp $88d4
0x8482: ae 9a b8 ldw X, #$9ab8
0x8485: 90 96 ldw Y, SP
0x8487: cd 8a 11 call $8a11
0x848a: cd 9a 3c call $9a3c
0x848d: 26 fb jrne $848a (offset=-5)
0x848f: a6 0b ld A, #$0b
0x8491: 96 ldw X, SP
0x8492: cd 9b 91 call $9b91
0x8495: 26 03 jrne $849a (offset=3)
0x8497: cc 88 d4 jp $88d4
0x849a: 35 18 00 12 mov $12, #$18
0x849e: cc 88 d4 jp $88d4
0x84a1: ae 9b 6e ldw X, #$9b6e
0x84a4: 90 96 ldw Y, SP
0x84a6: cd 8a 0a call $8a0a
0x84a9: cd 9a 3c call $9a3c
0x84ac: 26 fb jrne $84a9 (offset=-5)
0x84ae: a6 07 ld A, #$07
0x84b0: 96 ldw X, SP
0x84b1: cd 9b 91 call $9b91
0x84b4: 26 03 jrne $84b9 (offset=3)
0x84b6: cc 88 d4 jp $88d4
0x84b9: 35 19 00 12 mov $12, #$19
0x84bd: cc 86 17 jp $8617
0x84c0: cd 89 f9 call $89f9
0x84c3: 24 03 jrnc $84c8 (offset=3)
0x84c5: cc 88 d4 jp $88d4
0x84c8: 35 1a 00 12 mov $12, #$1a
0x84cc: cc 88 d4 jp $88d4
0x84cf: cd 9b a9 call $9ba9
0x84d2: ae 99 b6 ldw X, #$99b6
0x84d5: 90 96 ldw Y, SP
0x84d7: cd 8a 03 call $8a03
0x84da: cd 9a 3c call $9a3c
0x84dd: 26 fb jrne $84da (offset=-5)
0x84df: a6 13 ld A, #$13
0x84e1: 96 ldw X, SP
0x84e2: cd 9b 91 call $9b91
0x84e5: 26 03 jrne $84ea (offset=3)
0x84e7: cc 88 d4 jp $88d4
0x84ea: 35 1b 00 12 mov $12, #$1b
0x84ee: cc 88 d4 jp $88d4
0x84f1: ae 9a 81 ldw X, #$9a81
0x84f4: 90 96 ldw Y, SP
0x84f6: cd 8a 11 call $8a11
0x84f9: cd 9a 3c call $9a3c
0x84fc: 26 fb jrne $84f9 (offset=-5)
0x84fe: a6 0b ld A, #$0b
0x8500: 96 ldw X, SP
0x8501: cd 9b 91 call $9b91
0x8504: 26 03 jrne $8509 (offset=3)
0x8506: cc 88 d4 jp $88d4
0x8509: 35 1c 00 12 mov $12, #$1c
0x850d: cc 88 d4 jp $88d4
0x8510: ae 9a 8c ldw X, #$9a8c
0x8513: 90 96 ldw Y, SP
0x8515: cd 8a 11 call $8a11
0x8518: cd 9a 3c call $9a3c
0x851b: 26 fb jrne $8518 (offset=-5)
0x851d: a6 0b ld A, #$0b
0x851f: 96 ldw X, SP
0x8520: cd 9b 91 call $9b91
0x8523: 26 03 jrne $8528 (offset=3)
0x8525: cc 88 d4 jp $88d4
0x8528: 35 1d 00 12 mov $12, #$1d
0x852c: cc 88 d4 jp $88d4
0x852f: ae 9a 97 ldw X, #$9a97
0x8532: 90 96 ldw Y, SP
0x8534: cd 8a 11 call $8a11
0x8537: cd 9a 3c call $9a3c
0x853a: 26 fb jrne $8537 (offset=-5)
0x853c: a6 0b ld A, #$0b
0x853e: 96 ldw X, SP
0x853f: cd 9b 91 call $9b91
0x8542: 26 03 jrne $8547 (offset=3)
0x8544: cc 88 d4 jp $88d4
0x8547: 35 1e 00 12 mov $12, #$1e
0x854b: cc 88 d4 jp $88d4
0x854e: ae 9b 67 ldw X, #$9b67
0x8551: 90 96 ldw Y, SP
0x8553: cd 8a 0a call $8a0a
0x8556: cd 9a 3c call $9a3c
0x8559: 26 fb jrne $8556 (offset=-5)
0x855b: a6 07 ld A, #$07
0x855d: 96 ldw X, SP
0x855e: cd 9b 91 call $9b91
0x8561: 26 03 jrne $8566 (offset=3)
0x8563: cc 88 d4 jp $88d4
0x8566: 35 1f 00 12 mov $12, #$1f
0x856a: cc 86 17 jp $8617
0x856d: cd 89 f9 call $89f9
0x8570: 24 03 jrnc $8575 (offset=3)
0x8572: cc 88 d4 jp $88d4
0x8575: 35 20 00 12 mov $12, #$20
0x8579: cc 88 d4 jp $88d4
0x857c: cd 9b a9 call $9ba9
0x857f: ae 99 a3 ldw X, #$99a3
0x8582: 90 96 ldw Y, SP
0x8584: cd 8a 03 call $8a03
0x8587: cd 9a 3c call $9a3c
0x858a: 26 fb jrne $8587 (offset=-5)
0x858c: a6 13 ld A, #$13
0x858e: 96 ldw X, SP
0x858f: cd 9b 91 call $9b91
0x8592: 26 03 jrne $8597 (offset=3)
0x8594: cc 88 d4 jp $88d4
0x8597: 35 21 00 12 mov $12, #$21
0x859b: cc 88 d4 jp $88d4
0x859e: ae 9a 60 ldw X, #$9a60
0x85a1: 90 96 ldw Y, SP
0x85a3: cd 8a 11 call $8a11
0x85a6: cd 9a 3c call $9a3c
0x85a9: 26 fb jrne $85a6 (offset=-5)
0x85ab: a6 0b ld A, #$0b
0x85ad: 96 ldw X, SP
0x85ae: cd 9b 91 call $9b91
0x85b1: 26 03 jrne $85b6 (offset=3)
0x85b3: cc 88 d4 jp $88d4
0x85b6: 35 22 00 12 mov $12, #$22
0x85ba: cc 88 d4 jp $88d4
0x85bd: ae 9a 6b ldw X, #$9a6b
0x85c0: 90 96 ldw Y, SP
0x85c2: cd 8a 11 call $8a11
0x85c5: cd 9a 3c call $9a3c
0x85c8: 26 fb jrne $85c5 (offset=-5)
0x85ca: a6 0b ld A, #$0b
0x85cc: 96 ldw X, SP
0x85cd: cd 9b 91 call $9b91
0x85d0: 26 03 jrne $85d5 (offset=3)
0x85d2: cc 88 d4 jp $88d4
0x85d5: 35 23 00 12 mov $12, #$23
0x85d9: cc 88 d4 jp $88d4
0x85dc: ae 9a 76 ldw X, #$9a76
0x85df: 90 96 ldw Y, SP
0x85e1: cd 8a 11 call $8a11
0x85e4: cd 9a 3c call $9a3c
0x85e7: 26 fb jrne $85e4 (offset=-5)
0x85e9: a6 0b ld A, #$0b
0x85eb: 96 ldw X, SP
0x85ec: cd 9b 91 call $9b91
0x85ef: 26 03 jrne $85f4 (offset=3)
0x85f1: cc 88 d4 jp $88d4
0x85f4: 35 24 00 12 mov $12, #$24
0x85f8: cc 88 d4 jp $88d4
0x85fb: ae 9b 60 ldw X, #$9b60
0x85fe: 90 96 ldw Y, SP
0x8600: cd 8a 0a call $8a0a
0x8603: cd 9a 3c call $9a3c
0x8606: 26 fb jrne $8603 (offset=-5)
0x8608: a6 07 ld A, #$07
0x860a: 96 ldw X, SP
0x860b: cd 9b 91 call $9b91
0x860e: 26 03 jrne $8613 (offset=3)
0x8610: cc 88 d4 jp $88d4
0x8613: 35 25 00 12 mov $12, #$25
0x8617: 72 5f 00 a2 clr $a2
0x861b: cc 88 d4 jp $88d4
0x861e: cd 89 f9 call $89f9
0x8621: 24 03 jrnc $8626 (offset=3)
0x8623: cc 88 d4 jp $88d4
0x8626: 35 26 00 12 mov $12, #$26
0x862a: cc 88 d4 jp $88d4
0x862d: cd 9b a4 call $9ba4
0x8630: a6 04 ld A, #$04
0x8632: 6b 01 ld ($01,SP),A
0x8634: a6 01 ld A, #$01
0x8636: 96 ldw X, SP
0x8637: cd 9b 91 call $9b91
0x863a: 26 03 jrne $863f (offset=3)
0x863c: cc 88 d4 jp $88d4
0x863f: 35 27 00 12 mov $12, #$27
0x8643: 5f clrw X
0x8644: cf 00 94 ldw $94,X
0x8647: cc 88 d4 jp $88d4
0x864a: a3 00 51 cpw X, #$51
0x864d: 24 03 jrnc $8652 (offset=3)
0x864f: cc 88 d4 jp $88d4
0x8652: 35 01 00 11 mov $11, #$01
0x8656: cc 88 d4 jp $88d4
0x8659: cd 99 ef call $99ef
0x865c: a1 00 cp A, #$00
0x865e: 26 03 jrne $8663 (offset=3)
0x8660: cc 88 d4 jp $88d4
0x8663: cd 9b a9 call $9ba9
0x8666: 35 01 00 12 mov $12, #$01
0x866a: 35 06 00 11 mov $11, #$06
0x866e: cc 88 d4 jp $88d4
0x8671: cd 9a 01 call $9a01
0x8674: 35 05 00 11 mov $11, #$05
0x8678: cc 87 78 jp $8778
0x867b: cd 97 7c call $977c
0x867e: b7 00 ld $00,A
0x8680: c6 00 10 ld A, $10
0x8683: b1 00 cp A, $00
0x8685: 26 08 jrne $868f (offset=8)
0x8687: cd 89 f3 call $89f3
0x868a: 27 03 jreq $868f (offset=3)
0x868c: cc 88 d4 jp $88d4
0x868f: b6 00 ld A, $00
0x8691: c7 00 10 ld $10,A
0x8694: a6 c2 ld A, #$c2
0x8696: 6b 01 ld ($01,SP),A
0x8698: b6 00 ld A, $00
0x869a: 6b 02 ld ($02,SP),A
0x869c: a8 3d xor A, #$3d
0x869e: 20 5f jra $86ff (offset=95)
0x86a0: cd 9a 01 call $9a01
0x86a3: 35 07 00 11 mov $11, #$07
0x86a7: cc 87 78 jp $8778
0x86aa: a6 01 ld A, #$01
0x86ac: cd 90 a4 call $90a4
0x86af: b7 00 ld $00,A
0x86b1: c6 00 a1 ld A, $a1
0x86b4: b1 00 cp A, $00
0x86b6: 26 08 jrne $86c0 (offset=8)
0x86b8: cd 89 f3 call $89f3
0x86bb: 27 03 jreq $86c0 (offset=3)
0x86bd: cc 88 d4 jp $88d4
0x86c0: b6 00 ld A, $00
0x86c2: c7 00 a1 ld $a1,A
0x86c5: a6 c0 ld A, #$c0
0x86c7: 6b 01 ld ($01,SP),A
0x86c9: b6 00 ld A, $00
0x86cb: 6b 02 ld ($02,SP),A
0x86cd: a8 3f xor A, #$3f
0x86cf: 20 2e jra $86ff (offset=46)
0x86d1: cd 97 b8 call $97b8
0x86d4: 35 09 00 11 mov $11, #$09
0x86d8: cc 87 78 jp $8778
0x86db: cd 92 d9 call $92d9
0x86de: 41 exg A, XL
0x86df: b7 00 ld $00,A
0x86e1: c6 00 a0 ld A, $a0
0x86e4: b1 00 cp A, $00
0x86e6: 26 08 jrne $86f0 (offset=8)
0x86e8: cd 89 f3 call $89f3
0x86eb: 27 03 jreq $86f0 (offset=3)
0x86ed: cc 88 d4 jp $88d4
0x86f0: b6 00 ld A, $00
0x86f2: c7 00 a0 ld $a0,A
0x86f5: a6 c1 ld A, #$c1
0x86f7: 6b 01 ld ($01,SP),A
0x86f9: b6 00 ld A, $00
0x86fb: 6b 02 ld ($02,SP),A
0x86fd: a8 3e xor A, #$3e
0x86ff: 6b 03 ld ($03,SP),A
0x8701: a6 03 ld A, #$03
0x8703: 20 60 jra $8765 (offset=96)
0x8705: cd 9a 01 call $9a01
0x8708: 35 0b 00 11 mov $11, #$0b
0x870c: 20 6a jra $8778 (offset=106)
0x870e: 90 96 ldw Y, SP
0x8710: 72 a9 00 2a addw Y, #$2a
0x8714: 96 ldw X, SP
0x8715: 1c 00 2c addw X, #$2c
0x8718: a6 01 ld A, #$01
0x871a: cd 94 0c call $940c
0x871d: 1e 2c ldw X, ($2c,SP)
0x871f: c3 00 88 cpw X, $88
0x8722: 26 0f jrne $8733 (offset=15)
0x8724: 1e 2a ldw X, ($2a,SP)
0x8726: c3 00 8a cpw X, $8a
0x8729: 26 08 jrne $8733 (offset=8)
0x872b: cd 89 f3 call $89f3
0x872e: 27 03 jreq $8733 (offset=3)
0x8730: cc 88 d4 jp $88d4
0x8733: 1e 2c ldw X, ($2c,SP)
0x8735: cf 00 88 ldw $88,X
0x8738: 1e 2a ldw X, ($2a,SP)
0x873a: cf 00 8a ldw $8a,X
0x873d: a6 d3 ld A, #$d3
0x873f: 6b 01 ld ($01,SP),A
0x8741: 7b 2d ld A, ($2d,SP)
0x8743: 6b 02 ld ($02,SP),A
0x8745: 1e 2c ldw X, ($2c,SP)
0x8747: 4f clr A
0x8748: 01 rrwa X, A
0x8749: 9f ld A, XL
0x874a: 6b 03 ld ($03,SP),A
0x874c: 7b 2b ld A, ($2b,SP)
0x874e: 6b 04 ld ($04,SP),A
0x8750: 1e 2a ldw X, ($2a,SP)
0x8752: 4f clr A
0x8753: 01 rrwa X, A
0x8754: 9f ld A, XL
0x8755: 6b 05 ld ($05,SP),A
0x8757: 7b 03 ld A, ($03,SP)
0x8759: 18 02 xor A, ($02,SP)
0x875b: 18 04 xor A, ($04,SP)
0x875d: 18 05 xor A, ($05,SP)
0x875f: a8 2c xor A, #$2c
0x8761: 6b 06 ld ($06,SP),A
0x8763: a6 06 ld A, #$06
0x8765: 96 ldw X, SP
0x8766: cd 9b 91 call $9b91
0x8769: 27 03 jreq $876e (offset=3)
0x876b: cc 88 15 jp $8815
0x876e: cc 88 d4 jp $88d4
0x8771: cd 9a 01 call $9a01
0x8774: 35 0d 00 11 mov $11, #$0d
0x8778: 35 01 00 9e mov $9e, #$01
0x877c: cc 88 d4 jp $88d4
0x877f: 96 ldw X, SP
0x8780: 1c 00 2e addw X, #$2e
0x8783: bf 02 ldw $02,X
0x8785: 96 ldw X, SP
0x8786: 1c 00 24 addw X, #$24
0x8789: bf 00 ldw $00,X
0x878b: 90 96 ldw Y, SP
0x878d: 72 a9 00 26 addw Y, #$26
0x8791: 96 ldw X, SP
0x8792: 1c 00 28 addw X, #$28
0x8795: cd 8f bd call $8fbd
0x8798: 1e 28 ldw X, ($28,SP)
0x879a: c3 00 8c cpw X, $8c
0x879d: 26 16 jrne $87b5 (offset=22)
0x879f: 1e 26 ldw X, ($26,SP)
0x87a1: c3 00 8e cpw X, $8e
0x87a4: 26 0f jrne $87b5 (offset=15)
0x87a6: 1e 24 ldw X, ($24,SP)
0x87a8: c3 00 90 cpw X, $90
0x87ab: 26 08 jrne $87b5 (offset=8)
0x87ad: cd 89 f3 call $89f3
0x87b0: 27 03 jreq $87b5 (offset=3)
0x87b2: cc 88 d4 jp $88d4
0x87b5: 1e 28 ldw X, ($28,SP)
0x87b7: cf 00 8c ldw $8c,X
0x87ba: 1e 26 ldw X, ($26,SP)
0x87bc: cf 00 8e ldw $8e,X
0x87bf: 1e 24 ldw X, ($24,SP)
0x87c1: cf 00 90 ldw $90,X
0x87c4: a6 dc ld A, #$dc
0x87c6: 6b 01 ld ($01,SP),A
0x87c8: 7b 29 ld A, ($29,SP)
0x87ca: 6b 02 ld ($02,SP),A
0x87cc: 1e 28 ldw X, ($28,SP)
0x87ce: 4f clr A
0x87cf: 01 rrwa X, A
0x87d0: 9f ld A, XL
0x87d1: 6b 03 ld ($03,SP),A
0x87d3: 7b 27 ld A, ($27,SP)
0x87d5: 6b 04 ld ($04,SP),A
0x87d7: 1e 26 ldw X, ($26,SP)
0x87d9: 4f clr A
0x87da: 01 rrwa X, A
0x87db: 9f ld A, XL
0x87dc: 6b 05 ld ($05,SP),A
0x87de: 7b 25 ld A, ($25,SP)
0x87e0: 6b 06 ld ($06,SP),A
0x87e2: 1e 24 ldw X, ($24,SP)
0x87e4: 4f clr A
0x87e5: 01 rrwa X, A
0x87e6: 9f ld A, XL
0x87e7: 6b 07 ld ($07,SP),A
0x87e9: 7b 2f ld A, ($2f,SP)
0x87eb: 6b 08 ld ($08,SP),A
0x87ed: 1e 2e ldw X, ($2e,SP)
0x87ef: 4f clr A
0x87f0: 01 rrwa X, A
0x87f1: 9f ld A, XL
0x87f2: 6b 09 ld ($09,SP),A
0x87f4: 7b 03 ld A, ($03,SP)
0x87f6: 18 02 xor A, ($02,SP)
0x87f8: 18 04 xor A, ($04,SP)
0x87fa: 18 05 xor A, ($05,SP)
0x87fc: 18 06 xor A, ($06,SP)
0x87fe: 18 07 xor A, ($07,SP)
0x8800: 18 08 xor A, ($08,SP)
0x8802: 18 09 xor A, ($09,SP)
0x8804: a8 23 xor A, #$23
0x8806: 18 0a xor A, ($0a,SP)
0x8808: 6b 0a ld ($0a,SP),A
0x880a: a6 0a ld A, #$0a
0x880c: 96 ldw X, SP
0x880d: cd 9b 91 call $9b91
0x8810: 26 03 jrne $8815 (offset=3)
0x8812: cc 88 d4 jp $88d4
0x8815: 72 5f 00 9e clr $9e
0x8819: cc 88 d4 jp $88d4
0x881c: cd 9a 01 call $9a01
0x881f: a6 dd ld A, #$dd
0x8821: 6b 01 ld ($01,SP),A
0x8823: 4f clr A
0x8824: 6b 02 ld ($02,SP),A
0x8826: 6b 03 ld ($03,SP),A
0x8828: 6b 04 ld ($04,SP),A
0x882a: 6b 05 ld ($05,SP),A
0x882c: 6b 06 ld ($06,SP),A
0x882e: 6b 07 ld ($07,SP),A
0x8830: 6b 08 ld ($08,SP),A
0x8832: 6b 09 ld ($09,SP),A
0x8834: a6 22 ld A, #$22
0x8836: 6b 0a ld ($0a,SP),A
0x8838: a6 0a ld A, #$0a
0x883a: 96 ldw X, SP
0x883b: cd 9b 91 call $9b91
0x883e: 26 03 jrne $8843 (offset=3)
0x8840: cc 88 d4 jp $88d4
0x8843: 35 0f 00 11 mov $11, #$0f
0x8847: cc 88 d4 jp $88d4
0x884a: c6 00 9f ld A, $9f
0x884d: a1 01 cp A, #$01
0x884f: 27 03 jreq $8854 (offset=3)
0x8851: cc 88 d4 jp $88d4
0x8854: 96 ldw X, SP
0x8855: 1c 00 33 addw X, #$33
0x8858: cd 94 93 call $9493
0x885b: 96 ldw X, SP
0x885c: 1c 00 33 addw X, #$33
0x885f: cd 97 e9 call $97e9
0x8862: 96 ldw X, SP
0x8863: 1c 00 33 addw X, #$33
0x8866: cd 95 f4 call $95f4
0x8869: a1 00 cp A, #$00
0x886b: 27 67 jreq $88d4 (offset=103)
0x886d: a6 dd ld A, #$dd
0x886f: 6b 01 ld ($01,SP),A
0x8871: 1e 35 ldw X, ($35,SP)
0x8873: 9f ld A, XL
0x8874: 6b 02 ld ($02,SP),A
0x8876: cd 96 f4 call $96f4
0x8879: 33 cd cpl $cd
0x887b: 99 scf
0x887c: 8e halt
0x887d: 08 cd sll ($cd,SP)
0x887f: 97 ld XL, A
0x8880: 1c 33 1e addw X, #$331e
0x8883: 35 9f 6b 03 mov $6b03, #$9f
0x8887: cd 96 f4 call $96f4
0x888a: 37 b6 sra $b6
0x888c: 03 6b cpl ($6b,SP)
0x888e: 04 cd srl ($cd,SP)
0x8890: 99 scf
0x8891: 8e halt
0x8892: 08 cd sll ($cd,SP)
0x8894: 97 ld XL, A
0x8895: 1c 37 b6 addw X, #$37b6
0x8898: 03 6b cpl ($6b,SP)
0x889a: 05 ???
0x889b: cd 96 f4 call $96f4
0x889e: 3b b6 03 push $b603
0x88a1: 6b 06 ld ($06,SP),A
0x88a3: cd 99 8e call $998e
0x88a6: 08 cd sll ($cd,SP)
0x88a8: 97 ld XL, A
0x88a9: 1c 3b b6 addw X, #$3bb6
0x88ac: 03 6b cpl ($6b,SP)
0x88ae: 07 4f sra ($4f,SP)
0x88b0: 6b 08 ld ($08,SP),A
0x88b2: 6b 09 ld ($09,SP),A
0x88b4: 7b 03 ld A, ($03,SP)
0x88b6: 18 02 xor A, ($02,SP)
0x88b8: 18 04 xor A, ($04,SP)
0x88ba: 18 05 xor A, ($05,SP)
0x88bc: 18 06 xor A, ($06,SP)
0x88be: 18 07 xor A, ($07,SP)
0x88c0: a8 22 xor A, #$22
0x88c2: 6b 0a ld ($0a,SP),A
0x88c4: a6 0a ld A, #$0a
0x88c6: 96 ldw X, SP
0x88c7: cd 9b 91 call $9b91
0x88ca: 27 08 jreq $88d4 (offset=8)
0x88cc: 72 5f 00 9f clr $9f
0x88d0: 35 10 00 11 mov $11, #$10
0x88d4: 90 96 ldw Y, SP
0x88d6: 72 a9 00 30 addw Y, #$30
0x88da: 96 ldw X, SP
0x88db: 1c 00 3f addw X, #$3f
0x88de: cd 8e d0 call $8ed0
0x88e1: a1 00 cp A, #$00
0x88e3: 26 03 jrne $88e8 (offset=3)
0x88e5: cc 89 f0 jp $89f0
0x88e8: 7b 3f ld A, ($3f,SP)
0x88ea: a1 02 cp A, #$02
0x88ec: 26 0a jrne $88f8 (offset=10)
0x88ee: cd 9b a9 call $9ba9
0x88f1: 35 01 00 9e mov $9e, #$01
0x88f5: cc 89 f0 jp $89f0
0x88f8: c6 00 11 ld A, $11
0x88fb: a1 03 cp A, #$03
0x88fd: 27 1b jreq $891a (offset=27)
0x88ff: a1 05 cp A, #$05
0x8901: 27 43 jreq $8946 (offset=67)
0x8903: a1 07 cp A, #$07
0x8905: 27 3f jreq $8946 (offset=63)
0x8907: a1 09 cp A, #$09
0x8909: 27 3b jreq $8946 (offset=59)
0x890b: a1 0b cp A, #$0b
0x890d: 27 37 jreq $8946 (offset=55)
0x890f: a1 0d cp A, #$0d
0x8911: 27 33 jreq $8946 (offset=51)
0x8913: a1 0f cp A, #$0f
0x8915: 27 2f jreq $8946 (offset=47)
0x8917: cc 89 f0 jp $89f0
0x891a: c6 00 12 ld A, $12
0x891d: a1 01 cp A, #$01
0x891f: 26 0e jrne $892f (offset=14)
0x8921: 0d 3f tnz ($3f,SP)
0x8923: 27 03 jreq $8928 (offset=3)
0x8925: cc 89 f0 jp $89f0
0x8928: 35 02 00 12 mov $12, #$02
0x892c: cc 89 f0 jp $89f0
0x892f: a1 27 cp A, #$27
0x8931: 27 03 jreq $8936 (offset=3)
0x8933: cc 89 f0 jp $89f0
0x8936: 7b 3f ld A, ($3f,SP)
0x8938: a1 04 cp A, #$04
0x893a: 27 03 jreq $893f (offset=3)
0x893c: cc 89 f0 jp $89f0
0x893f: 35 28 00 12 mov $12, #$28
0x8943: cc 89 f0 jp $89f0
0x8946: 7b 3f ld A, ($3f,SP)
0x8948: a1 43 cp A, #$43
0x894a: 26 3f jrne $898b (offset=63)
0x894c: 7b 40 ld A, ($40,SP)
0x894e: 26 07 jrne $8957 (offset=7)