forked from p4plus2/DKC2-disassembly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bank_B6.asm
13587 lines (12718 loc) · 323 KB
/
bank_B6.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
CODE_B68000: ; |
JSL CODE_BBBB99 ;$B68000 |
JML [$05A9] ;$B68004 /
STA $32,x ;$B68007 |
TXA ;$B68009 |
STA $34,x ;$B6800A |
RTL ;$B6800C /
CODE_B6800D:
JSL CODE_BCFED8 ;$B6800D \
BCS CODE_B68022 ;$B68011 |
JSL CODE_BCFEC0 ;$B68013 |
JSL CODE_B3A334 ;$B68017 |
LDY #$0034 ;$B6801B |
JSL CODE_BB842C ;$B6801E |
CODE_B68022: ; |
LDX $64 ;$B68022 |
RTS ;$B68024 /
CODE_B68025:
TAX ;$B68025 \
PHK ;$B68026 |
PLB ;$B68027 |
JMP (DATA_B6802B,x) ;$B68028 /
DATA_B6802B:
dw CODE_B68053
dw CODE_B682DF
dw CODE_B69397
dw CODE_B699EB
dw CODE_B69A5A
dw CODE_B69EEA
dw CODE_B6A3D6
dw CODE_B6A3D6
dw CODE_B6A3D6
dw CODE_B6A3DD
dw CODE_B6A43B
dw CODE_B6A485
dw CODE_B6A725
dw CODE_B6A82A
dw CODE_B6A82A
dw CODE_B6A877
dw CODE_B6D02E
dw CODE_B6D06E
dw CODE_B68D70
dw CODE_B6A877
CODE_B68053:
PHB ;$B68053 \
PHK ;$B68054 |
PLB ;$B68055 |
LDX $64 ;$B68056 |
LDA $42,x ;$B68058 |
BNE CODE_B68094 ;$B6805A |
JSL CODE_B4AEAF ;$B6805C |
STZ $073D ;$B68060 |
STZ $32,x ;$B68063 |
STZ $06A1 ;$B68065 |
STZ $06A3 ;$B68068 |
STZ $06A5 ;$B6806B |
LDA #DATA_B684D4 ;$B6806E |
STA $00065A ;$B68071 |
LDA #$0006 ;$B68075 |
STA $000652 ;$B68078 |
LDY #$015E ;$B6807C |
JSL CODE_BB8443 ;$B6807F |
LDY $68 ;$B68083 |
LDX $64 ;$B68085 |
STX $0654 ;$B68087 |
STY $0656 ;$B6808A |
STY $42,x ;$B6808D |
STZ $44,x ;$B6808F |
JSR CODE_B6D008 ;$B68091 |
CODE_B68094: ; |
LDX $64 ;$B68094 |
LDA $2E,x ;$B68096 |
BIT #$0001 ;$B68098 |
BNE CODE_B680A8 ;$B6809B |
LDA $0A36 ;$B6809D |
BIT #$0004 ;$B680A0 |
BEQ CODE_B680A8 ;$B680A3 |
BRL CODE_B68182 ;$B680A5 /
CODE_B680A8:
LDA $0AB8 ;$B680A8 \
AND #$BFFF ;$B680AB |
ORA #$8000 ;$B680AE |
STA $0AB8 ;$B680B1 |
LDX $64 ;$B680B4 |
LDY $0593 ;$B680B6 |
LDA $0006,y ;$B680B9 |
CMP $06,x ;$B680BC |
BCC CODE_B680C5 ;$B680BE |
LDA #$C800 ;$B680C0 |
BRA CODE_B680C8 ;$B680C3 /
CODE_B680C5:
LDA #$3800 ;$B680C5 \
CODE_B680C8: ; |
STA $0AEC ;$B680C8 |
CODE_B680CB: ; |
LDA.l $000652 ;$B680CB |
BNE CODE_B680D4 ;$B680CF |
BRL CODE_B684BA ;$B680D1 /
CODE_B680D4:
LDX $64 ;$B680D4 \
LDA $2E,x ;$B680D6 |
BIT #$0100 ;$B680D8 |
BEQ CODE_B680ED ;$B680DB |
LDA $32,x ;$B680DD |
BIT #$0008 ;$B680DF |
BEQ CODE_B680ED ;$B680E2 |
JSR CODE_B689F8 ;$B680E4 |
LDA.l $000652 ;$B680E7 |
BEQ CODE_B680CB ;$B680EB |
CODE_B680ED: ; |
LDA.l $00073D ;$B680ED |
BEQ CODE_B680F9 ;$B680F1 |
DEC $073D ;$B680F3 |
BRL CODE_B68147 ;$B680F6 /
CODE_B680F9:
LDX $64 ;$B680F9 \
LDA $2E,x ;$B680FB |
BIT #$0200 ;$B680FD |
BEQ CODE_B6812C ;$B68100 |
JSL CODE_BCFB58 ;$B68102 |
LDA #$0C7B ;$B68106 |
JSL CODE_B6CF65 ;$B68109 |
BCC CODE_B68147 ;$B6810D |
LDA #$001E ;$B6810F |
LDY #$FE00 ;$B68112 |
JSL CODE_B3A600 ;$B68115 |
LDX $0654 ;$B68119 |
LDA $2E,x ;$B6811C |
ORA #$0200 ;$B6811E |
STA $2E,x ;$B68121 |
LDA #$0014 ;$B68123 |
STA $00073D ;$B68126 |
BRA CODE_B68147 ;$B6812A /
CODE_B6812C:
JSL CODE_BCFB58 ;$B6812C \
LDA #$0000 ;$B68130 |
JSL CODE_B6CF65 ;$B68133 |
BCC CODE_B68147 ;$B68137 |
LDX $64 ;$B68139 |
LDA #$0014 ;$B6813B |
STA $00073D ;$B6813E |
LDX $0D7A ;$B68142 |
BEQ CODE_B68147 ;$B68145 |
CODE_B68147: ; |
LDX $64 ;$B68147 |
LDA $44,x ;$B68149 |
BNE CODE_B68152 ;$B6814B |
JSR CODE_B6D008 ;$B6814D |
BRA CODE_B6815E ;$B68150 /
CODE_B68152:
JSR ($0044,x) ;$B68152 \
LDX $64 ;$B68155 |
LDA $44,x ;$B68157 |
BNE CODE_B6815E ;$B68159 |
JSR CODE_B6D008 ;$B6815B |
CODE_B6815E: ; |
JSR CODE_B68186 ;$B6815E |
JSR CODE_B6819C ;$B68161 |
JSL CODE_B9D100 ;$B68164 |
JSR CODE_B6820D ;$B68168 |
CODE_B6816B: ; |
LDX $64 ;$B6816B |
LDA #$0120 ;$B6816D |
CMP $06,x ;$B68170 |
BCC CODE_B68176 ;$B68172 |
STA $06,x ;$B68174 |
CODE_B68176: ; |
LDA #$0260 ;$B68176 |
CMP $06,x ;$B68179 |
BCS CODE_B6817F ;$B6817B |
STA $06,x ;$B6817D |
CODE_B6817F: ; |
JSR CODE_B68D5D ;$B6817F |
CODE_B68182: ; |
PLB ;$B68182 |
JML [$05A9] ;$B68183 /
CODE_B68186:
LDY $074F ;$B68186 \
BEQ CODE_B6819B ;$B68189 |
LDA $0000,y ;$B6818B |
CMP #$01B8 ;$B6818E |
BEQ CODE_B6819B ;$B68191 |
CMP #$017C ;$B68193 |
BEQ CODE_B6819B ;$B68196 |
STZ $074F ;$B68198 |
CODE_B6819B: ; |
RTS ;$B6819B /
CODE_B6819C:
LDA.l $00074D ;$B6819C \
BEQ CODE_B681FE ;$B681A0 |
PHB ;$B681A2 |
LDA #$00FF ;$B681A3 |
SEP #$20 ;$B681A6 |
CLC ;$B681A8 |
ROR A ;$B681A9 |
INC A ;$B681AA |
PHA ;$B681AB |
PLB ;$B681AC |
REP #$20 ;$B681AD |
CLC ;$B681AF |
ADC #$0004 ;$B681B0 |
XBA ;$B681B3 |
TAX ;$B681B4 |
LDY $0038,x ;$B681B5 |
CPY #$00AF ;$B681B8 |
BEQ CODE_B681C7 ;$B681BB |
STZ $0656 ;$B681BD |
LDX $0654 ;$B681C0 |
DEC $44,x ;$B681C3 |
DEC $44,x ;$B681C5 |
CODE_B681C7: ; |
PLB ;$B681C7 |
DEC $074D ;$B681C8 |
LDY $0593 ;$B681CB |
LDA $002E,y ;$B681CE |
CMP #$0063 ;$B681D1 |
BEQ CODE_B681FE ;$B681D4 |
LDA $0030,y ;$B681D6 |
BIT #$0080 ;$B681D9 |
BNE CODE_B681FE ;$B681DC |
LDA $001E,y ;$B681DE |
BIT #$0001 ;$B681E1 |
BEQ CODE_B681FE ;$B681E4 |
STZ $074D ;$B681E6 |
LDA #$000B ;$B681E9 |
JSL CODE_B8D8BA ;$B681EC |
BCS CODE_B681FE ;$B681F0 |
LDA.l $000652 ;$B681F2 |
ASL A ;$B681F6 |
TAY ;$B681F7 |
LDA DATA_B681FF,y ;$B681F8 |
STA $0A86 ;$B681FB |
CODE_B681FE: ; |
RTS ;$B681FE /
DATA_B681FF:
db $00, $00, $16, $00, $15, $00, $18, $00
db $1A, $00, $1C, $00, $20, $00
CODE_B6820D:
LDX $64 ;$B6820D \
LDA $2E,x ;$B6820F |
BIT #$2000 ;$B68211 |
BNE CODE_B68267 ;$B68214 |
BIT #$0100 ;$B68216 |
BEQ CODE_B68225 ;$B68219 |
LDA $44,x ;$B6821B |
CMP #$BAD8 ;$B6821D |
BEQ CODE_B68268 ;$B68220 |
BRL CODE_B68267 ;$B68222 /
CODE_B68225:
JSR CODE_B6828C ;$B68225 \
LDA #$0200 ;$B68228 |
LDY #$0000 ;$B6822B |
JSL CODE_BCFE0A ;$B6822E |
BCC CODE_B68267 ;$B68232 |
LDY $6A ;$B68234 |
LDA $0000,y ;$B68236 |
CMP #$01B8 ;$B68239 |
BNE CODE_B68267 ;$B6823C |
LDA $0020,y ;$B6823E |
BNE CODE_B6824A ;$B68241 |
LDA $6A ;$B68243 |
CMP $0D7A ;$B68245 |
BNE CODE_B68267 ;$B68248 |
CODE_B6824A: ; |
LDA #$0296 ;$B6824A |
JSL CODE_B9D0C6 ;$B6824D |
LDA.l $000656 ;$B68251 |
STA $68 ;$B68255 |
LDA #$0297 ;$B68257 |
JSL CODE_B9D09B ;$B6825A |
LDX $64 ;$B6825E |
LDA $2E,x ;$B68260 |
ORA #$2000 ;$B68262 |
STA $2E,x ;$B68265 |
CODE_B68267: ; |
RTS ;$B68267 /
CODE_B68268:
JSR CODE_B6828C ;$B68268 \
LDA #$0200 ;$B6826B |
JSL CODE_BCFE0A ;$B6826E |
BCC CODE_B68267 ;$B68272 |
LDY $6A ;$B68274 |
LDA $0000,y ;$B68276 |
CMP #$01B8 ;$B68279 |
BNE CODE_B68267 ;$B6827C |
LDA $0020,y ;$B6827E |
BNE CODE_B68267 ;$B68281 |
LDA $6A ;$B68283 |
CMP $0D7A ;$B68285 |
BEQ CODE_B6824A ;$B68288 |
BRA CODE_B68267 ;$B6828A /
CODE_B6828C:
LDA $12,x ;$B6828C \
BIT #$4000 ;$B6828E |
BEQ CODE_B682B3 ;$B68291 |
LDA #$FFFF ;$B68293 |
CLC ;$B68296 |
ADC $06,x ;$B68297 |
STA $09D7 ;$B68299 |
STA $09E7 ;$B6829C |
STA $000650 ;$B6829F |
LDA #$FFAC ;$B682A3 |
CLC ;$B682A6 |
ADC $000650 ;$B682A7 |
STA $09D3 ;$B682AB |
STA $09E3 ;$B682AE |
BRA CODE_B682C9 ;$B682B1 /
CODE_B682B3:
LDA $06,x ;$B682B3 \
CLC ;$B682B5 |
ADC #$0001 ;$B682B6 |
STA $09D3 ;$B682B9 |
STA $09E3 ;$B682BC |
CLC ;$B682BF |
ADC #$0054 ;$B682C0 |
STA $09D7 ;$B682C3 |
STA $09E7 ;$B682C6 |
CODE_B682C9: ; |
LDA $0A,x ;$B682C9 |
CLC ;$B682CB |
ADC #$FFC3 ;$B682CC |
STA $09D5 ;$B682CF |
STA $09E5 ;$B682D2 |
ADC #$0039 ;$B682D5 |
STA $09D9 ;$B682D8 |
STA $09E9 ;$B682DB |
RTS ;$B682DE /
CODE_B682DF:
LDX $0654 ;$B682DF \
LDA $2E,x ;$B682E2 |
BIT #$0001 ;$B682E4 |
BNE CODE_B682F4 ;$B682E7 |
LDA $0A36 ;$B682E9 |
BIT #$0004 ;$B682EC |
BEQ CODE_B682F4 ;$B682EF |
BRL CODE_B684B7 ;$B682F1 /
CODE_B682F4:
PHB ;$B682F4 \
PHK ;$B682F5 |
PLB ;$B682F6 |
LDA.l $000652 ;$B682F7 |
BNE CODE_B68300 ;$B682FB |
BRL CODE_B684B6 ;$B682FD /
CODE_B68300:
JSL CODE_B9D100 ;$B68300 \
LDX $0654 ;$B68304 |
LDA $2E,x ;$B68307 |
BIT #$0100 ;$B68309 |
BEQ CODE_B6831D ;$B6830C |
LDX $64 ;$B6830E |
LDA $32,x ;$B68310 |
BIT #$0008 ;$B68312 |
BEQ CODE_B6831D ;$B68315 |
JSR CODE_B689F8 ;$B68317 |
BRL CODE_B684B6 ;$B6831A /
CODE_B6831D:
LDX $0654 ;$B6831D \
LDA $2E,x ;$B68320 |
BIT #$2000 ;$B68322 |
BNE CODE_B6832A ;$B68325 |
BRL CODE_B683F7 ;$B68327 /
CODE_B6832A:
JSL CODE_BCFB58 ;$B6832A \
LDA #$0200 ;$B6832E |
LDY #$0000 ;$B68331 |
JSL CODE_BEBD8E ;$B68334 |
BCC CODE_B6836B ;$B68338 |
LDA $6A ;$B6833A |
STA $64 ;$B6833C |
JSL CODE_BB82B8 ;$B6833E |
LDY #$004A ;$B68342 |
JSL CODE_BB842C ;$B68345 |
LDY #$0060 ;$B68349 |
JSL CODE_BB8412 ;$B6834C |
LDY #$0062 ;$B68350 |
JSL CODE_BB8412 ;$B68353 |
LDX $0656 ;$B68357 |
STX $64 ;$B6835A |
LDA.l $00074F ;$B6835C |
STZ $074F ;$B68360 |
CMP $0D7A ;$B68363 |
BNE CODE_B6836B ;$B68366 |
STZ $0D7A ;$B68368 |
CODE_B6836B: ; |
LDX $0656 ;$B6836B |
LDA $30,x ;$B6836E |
AND #$FFDF ;$B68370 |
STA $30,x ;$B68373 |
LDX $0654 ;$B68375 |
STA $30,x ;$B68378 |
LDA.l $00073D ;$B6837A |
BEQ CODE_B68383 ;$B6837E |
BRL CODE_B684B6 ;$B68380 /
CODE_B68383:
JSL CODE_BCFB58 ;$B68383 \
LDA #$0C7B ;$B68387 |
JSL CODE_B6CF65 ;$B6838A |
BCC CODE_B683F7 ;$B6838E |
LDX $0654 ;$B68390 |
LDY $0593 ;$B68393 |
LDA $06,x ;$B68396 |
CMP $0006,y ;$B68398 |
BCC CODE_B683A2 ;$B6839B |
LDA #$FD00 ;$B6839D |
BRA CODE_B683A5 ;$B683A0 /
CODE_B683A2:
LDA #$0300 ;$B683A2 \
CODE_B683A5: ; |
STA $000650 ;$B683A5 |
LDA $0012,y ;$B683A9 |
BIT #$4000 ;$B683AC |
BEQ CODE_B683BC ;$B683AF |
LDA.l $000650 ;$B683B1 |
EOR #$FFFF ;$B683B5 |
STA $000650 ;$B683B8 |
CODE_B683BC: ; |
LDY $0650 ;$B683BC |
LDA #$001E ;$B683BF |
JSL CODE_B3A600 ;$B683C2 |
LDX $0654 ;$B683C6 |
LDA #$0014 ;$B683C9 |
STA $00073D ;$B683CC |
LDA $0D7A ;$B683D0 |
BEQ CODE_B683F4 ;$B683D3 |
CMP $00074F ;$B683D5 |
BNE CODE_B683F4 ;$B683D9 |
LDA.l $00074F ;$B683DB |
STA $64 ;$B683DF |
JSL CODE_B3975C ;$B683E1 |
JSL CODE_BB82B8 ;$B683E5 |
LDX $0656 ;$B683E9 |
STX $64 ;$B683EC |
STZ $0D7A ;$B683EE |
STZ $074F ;$B683F1 |
CODE_B683F4: ; |
BRL CODE_B684B6 ;$B683F4 /
CODE_B683F7:
LDX $0654 ;$B683F7 \
LDA.l $00073D ;$B683FA |
BEQ CODE_B68403 ;$B683FE |
BRL CODE_B684B6 ;$B68400 /
CODE_B68403:
LDA $2E,x ;$B68403 \
BIT #$0001 ;$B68405 |
BEQ CODE_B6841D ;$B68408 |
JSL CODE_BCFB58 ;$B6840A |
LDA #$0010 ;$B6840E |
PHK ;$B68411 |
%return(CODE_B68418) ;$B68412 |
JML [$09F9] ;$B68415 /
CODE_B68418:
BCS CODE_B6843A ;$B68418 \
BRL CODE_B684B6 ;$B6841A /
CODE_B6841D:
LDX $0654 ;$B6841D \
LDA $2E,x ;$B68420 |
BIT #$2000 ;$B68422 |
BEQ CODE_B6842A ;$B68425 |
BRL CODE_B684B6 ;$B68427 /
CODE_B6842A:
JSL CODE_BCFB58 ;$B6842A \
LDA #$0000 ;$B6842E |
JSL CODE_B6CF65 ;$B68431 |
BCS CODE_B6843A ;$B68435 |
BRL CODE_B684B6 ;$B68437 /
CODE_B6843A:
LDA #$0014 ;$B6843A \
STA $00073D ;$B6843D |
LDX $0D7A ;$B68441 |
BEQ CODE_B68446 ;$B68444 |
CODE_B68446: ; |
LDX $0654 ;$B68446 |
LDA $2E,x ;$B68449 |
BIT #$0001 ;$B6844B |
BEQ CODE_B68488 ;$B6844E |
LDY $0593 ;$B68450 |
LDA $0030,y ;$B68453 |
BIT #$0080 ;$B68456 |
BNE CODE_B68488 ;$B68459 |
JSR CODE_B6800D ;$B6845B |
LDA #$0026 ;$B6845E |
JSL CODE_B8D8BA ;$B68461 |
BCS CODE_B68488 ;$B68465 |
LDX $0654 ;$B68467 |
LDA $12,x ;$B6846A |
BIT #$4000 ;$B6846C |
BNE CODE_B6847C ;$B6846F |
LDA #$0600 ;$B68471 |
STA $0A86 ;$B68474 |
LDA #$0700 ;$B68477 |
BRA CODE_B68485 ;$B6847A /
CODE_B6847C:
LDA #$FA00 ;$B6847C \
STA $0A86 ;$B6847F |
LDA #$F900 ;$B68482 |
CODE_B68485: ; |
STA $0A88 ;$B68485 |
CODE_B68488: ; |
BRA CODE_B684B6 ;$B68488 /
LDX $0654 ;$B6848A |
LDA.l $00073D ;$B6848D |
BNE CODE_B684B6 ;$B68491 |
LDX $64 ;$B68493 |
JSL CODE_BCFB58 ;$B68495 |
LDA #$0C7B ;$B68499 |
JSL CODE_B6CF65 ;$B6849C |
BCC CODE_B684B6 ;$B684A0 |
LDA #$001E ;$B684A2 |
LDY #$FE00 ;$B684A5 |
JSL CODE_B3A600 ;$B684A8 |
LDX $0654 ;$B684AC |
LDA #$0014 ;$B684AF |
STA $00073D ;$B684B2 |
CODE_B684B6: ; |
PLB ;$B684B6 |
CODE_B684B7: ; |
JML [$05A9] ;$B684B7 /
CODE_B684BA:
LDX $64 ;$B684BA \
JSR ($0044,x) ;$B684BC |
JSL CODE_B9D100 ;$B684BF |
BRL CODE_B6816B ;$B684C3 /
DATA_B684C6:
dw !null_pointer
dw DATA_B68924
dw DATA_B6887E
dw DATA_B687DC
dw DATA_B68668
dw DATA_B685AE
dw DATA_B68502
DATA_B684D4:
db $28, $00, $3C, $00, $3A, $00, $D0, $01
db $32, $00, $00, $04, $00, $09, $06, $00
db $0B, $00, $50, $02, $00, $10, $28, $00
db $1E, $00, $3C, $00, $28, $00, $14, $00
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $1E, $00
DATA_B68502:
db $3A, $00, $00, $00, $32, $00, $00, $04
db $80, $06, $06, $00, $3F, $00, $0B, $00
db $50, $02, $00, $10, $3E, $00, $07, $00
db $28, $00, $14, $00, $3B, $00, $50, $01
db $00, $F8, $00, $FC, $03, $00, $28, $00
db $23, $00, $3A, $00, $00, $00, $32, $00
db $00, $04, $80, $06, $06, $00, $0B, $00
db $50, $02, $00, $10, $3E, $00, $07, $00
db $28, $00, $14, $00, $3B, $00, $50, $01
db $00, $F8, $00, $FC, $03, $00, $28, $00
db $23, $00, $3A, $00, $00, $00, $32, $00
db $00, $04, $80, $06, $06, $00, $0B, $00
db $50, $02, $00, $10, $3E, $00, $07, $00
db $28, $00, $2D, $00, $3C, $00, $0D, $00
db $7A, $85, $02, $00, $CA, $89, $CA, $89
db $28, $00, $01, $00, $3A, $00, $C0, $01
db $95, $00, $00, $04, $80, $06, $06, $00
db $0B, $00, $00, $00, $00, $04, $42, $00
db $41, $00, $1E, $00, $2C, $01, $43, $00
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $23, $00, $02, $00
db $02, $85, $02, $85
DATA_B685AE:
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $0F, $00, $3A, $00
db $00, $00, $23, $00, $00, $04, $80, $07
db $06, $00, $3F, $00, $0B, $00, $50, $02
db $00, $10, $3E, $00, $07, $00, $28, $00
db $14, $00, $3B, $00, $50, $01, $00, $F8
db $00, $FC, $03, $00, $28, $00, $0F, $00
db $3A, $00, $00, $00, $23, $00, $00, $04
db $80, $07, $06, $00, $0B, $00, $50, $02
db $00, $10, $3E, $00, $07, $00, $28, $00
db $14, $00, $3B, $00, $50, $01, $00, $F8
db $00, $FC, $03, $00, $28, $00, $0F, $00
db $3A, $00, $00, $00, $23, $00, $00, $04
db $80, $07, $06, $00, $0B, $00, $50, $02
db $00, $10, $3E, $00, $07, $00, $28, $00
db $19, $00, $3C, $00, $0D, $00, $34, $86
db $02, $00, $CA, $89, $CA, $89, $28, $00
db $01, $00, $3A, $00, $C0, $01, $59, $00
db $00, $04, $80, $07, $06, $00, $0B, $00
db $00, $00, $00, $04, $42, $00, $41, $00
db $14, $00, $B4, $00, $43, $00, $3B, $00
db $50, $01, $00, $F8, $00, $FC, $03, $00
db $28, $00, $0F, $00, $02, $00, $BC, $85
db $BC, $85
DATA_B68668:
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $02, $00, $3A, $00
db $00, $00, $14, $00, $00, $04, $80, $08
db $06, $00, $3F, $00, $0B, $00, $50, $02
db $00, $10, $3E, $00, $07, $00, $28, $00
db $14, $00, $3B, $00, $50, $01, $00, $F8
db $00, $FC, $03, $00, $28, $00, $02, $00
db $3A, $00, $00, $00, $14, $00, $00, $04
db $80, $08, $06, $00, $0B, $00, $50, $02
db $00, $10, $3E, $00, $07, $00, $28, $00
db $14, $00, $3B, $00, $50, $01, $00, $F8
db $00, $FC, $03, $00, $28, $00, $02, $00
db $3A, $00, $00, $00, $14, $00, $00, $04
db $80, $08, $06, $00, $0B, $00, $50, $02
db $00, $10, $3E, $00, $07, $00, $28, $00
db $0A, $00, $3C, $00, $0D, $00, $EE, $86
db $02, $00, $CA, $89, $CA, $89, $28, $00
db $01, $00, $3A, $00, $C0, $01, $31, $00
db $00, $04, $80, $08, $06, $00, $0B, $00
db $00, $00, $00, $04, $42, $00, $41, $00
db $14, $00, $78, $00, $43, $00, $3B, $00
db $50, $01, $00, $F8, $00, $FC, $03, $00
db $28, $00, $02, $00, $02, $00, $76, $86
db $76, $86, $3B, $00, $50, $01, $00, $F8
db $00, $FC, $03, $00, $28, $00, $02, $00
db $3A, $00, $00, $00, $14, $00, $00, $04
db $80, $08, $06, $00, $3F, $00, $0B, $00
db $50, $02, $00, $10, $3E, $00, $07, $00
db $28, $00, $14, $00, $3B, $00, $50, $01
db $00, $F8, $00, $FC, $03, $00, $28, $00
db $02, $00, $3A, $00, $00, $00, $14, $00
db $00, $04, $80, $08, $06, $00, $0B, $00
db $50, $02, $00, $10, $3E, $00, $07, $00
db $28, $00, $14, $00, $3B, $00, $50, $01
db $00, $F8, $00, $FC, $03, $00, $28, $00
db $02, $00, $3A, $00, $00, $00, $14, $00
db $00, $04, $80, $08, $06, $00, $0B, $00
db $50, $02, $00, $10, $3E, $00, $07, $00
db $28, $00, $0A, $00, $3C, $00, $0D, $00
db $A8, $87, $02, $00, $CA, $89, $CA, $89
db $28, $00, $01, $00, $3A, $00, $C0, $01
db $2C, $00, $00, $04, $80, $08, $06, $00
db $0B, $00, $00, $00, $00, $04, $42, $00
db $41, $00, $14, $00, $78, $00, $43, $00
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $02, $00, $02, $00
db $30, $87, $30, $87
DATA_B687DC:
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $12, $00, $3A, $00
db $00, $00, $14, $00, $00, $04, $00, $09
db $06, $00, $28, $00, $14, $00, $44, $00
db $80, $01, $00, $F9, $00, $08, $02, $00
db $3F, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $12, $00
db $44, $00, $80, $01, $00, $F9, $00, $08
db $02, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $12, $00
db $44, $00, $80, $01, $00, $F9, $00, $08
db $02, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $0D, $00, $4A, $88
db $02, $00, $CA, $89, $CA, $89, $28, $00
db $01, $00, $3A, $00, $C0, $01, $3B, $00
db $00, $06, $00, $09, $06, $00, $0B, $00
db $50, $02, $00, $10, $42, $00, $41, $00
db $14, $00, $96, $00, $43, $00, $3B, $00
db $50, $01, $00, $F8, $00, $FC, $03, $00
db $28, $00, $12, $00, $02, $00, $EA, $87
db $EA, $87
DATA_B6887E:
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $0A, $00, $3A, $00
db $00, $00, $14, $00, $00, $04, $00, $09
db $06, $00, $28, $00, $14, $00, $44, $00
db $A0, $01, $80, $F7, $00, $0C, $02, $00
db $3F, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $0A, $00
db $44, $00, $A0, $01, $80, $F7, $00, $0C
db $02, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $0A, $00
db $44, $00, $A0, $01, $80, $F7, $00, $0C
db $02, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $0A, $00
db $0D, $00, $F0, $88, $02, $00, $CA, $89
db $CA, $89, $28, $00, $01, $00, $3A, $00
db $C0, $01, $2C, $00, $00, $04, $00, $09
db $06, $00, $0B, $00, $50, $02, $00, $10
db $42, $00, $41, $00, $14, $00, $78, $00
db $43, $00, $3B, $00, $50, $01, $00, $F8
db $00, $FC, $03, $00, $28, $00, $0A, $00
db $02, $00, $8C, $88, $8C, $88
DATA_B68924:
db $3B, $00, $50, $01, $00, $F8, $00, $FC
db $03, $00, $28, $00, $0A, $00, $3A, $00
db $00, $00, $14, $00, $00, $04, $00, $09
db $06, $00, $28, $00, $14, $00, $44, $00
db $C0, $01, $00, $F6, $00, $11, $02, $00
db $3F, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $0A, $00
db $44, $00, $C0, $01, $00, $F6, $00, $11
db $02, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $0A, $00
db $44, $00, $C0, $01, $00, $F6, $00, $11
db $02, $00, $0B, $00, $50, $02, $00, $10
db $3E, $00, $0F, $00, $28, $00, $0A, $00
db $0D, $00, $96, $89, $02, $00, $CA, $89
db $CA, $89, $28, $00, $01, $00, $3A, $00
db $C0, $01, $1D, $00, $00, $04, $00, $09
db $06, $00, $0B, $00, $50, $02, $00, $10
db $42, $00, $41, $00, $14, $00, $5A, $00
db $43, $00, $3B, $00, $50, $01, $00, $F8
db $00, $FC, $03, $00, $28, $00, $0A, $00
db $02, $00, $32, $89, $32, $89, $40, $00
db $00, $F9, $00, $08, $05, $00, $0B, $00
db $00, $00, $00, $04, $2E, $00, $8E, $1D
db $C0, $01, $80, $01, $37, $8D, $00, $00
db $EA, $FF, $28, $00, $14, $00, $3B, $00
db $50, $01, $00, $F8, $00, $FC, $03, $00
db $02, $00, $00, $00
CODE_B689F8:
LDA.l $000652 ;$B689F8 \
CMP #$0001 ;$B689FC |
BEQ CODE_B68A61 ;$B689FF |
LDX $0654 ;$B68A01 |
LDY $0593 ;$B68A04 |
LDA $06,x ;$B68A07 |
CMP $0006,y ;$B68A09 |
BCC CODE_B68A13 ;$B68A0C |
LDY #$0460 ;$B68A0E |
BRA CODE_B68A16 ;$B68A11 /
CODE_B68A13:
LDY #$FBA0 ;$B68A13 \
CODE_B68A16: ; |
STY $20,x ;$B68A16 |
LDA $2E,x ;$B68A18 |
ORA #$0200 ;$B68A1A |
AND #$FEFF ;$B68A1D |
STA $2E,x ;$B68A20 |
LDA #$0014 ;$B68A22 |
STA $00073D ;$B68A25 |
LDA #CODE_B68C82 ;$B68A29 |
STA $44,x ;$B68A2C |
LDA #$FC00 ;$B68A2E |
STA $24,x ;$B68A31 |
LDA #$0600 ;$B68A33 |
STA $2A,x ;$B68A36 |
STZ $26,x ;$B68A38 |
LDA $32,x ;$B68A3A |
LDX $0654 ;$B68A3C |
STZ $32,x ;$B68A3F |
LDX $0656 ;$B68A41 |
STZ $32,x ;$B68A44 |
LDA.l $000654 ;$B68A46 |
STA $68 ;$B68A4A |
LDA #$0298 ;$B68A4C |
JSL CODE_B9D09B ;$B68A4F |
LDA.l $000656 ;$B68A53 |
STA $68 ;$B68A57 |
LDA #$0299 ;$B68A59 |
JSL CODE_B9D09B ;$B68A5C |
CODE_B68A60: ; |
RTS ;$B68A60 /
CODE_B68A61:
LDA #$0559 ;$B68A61 \
JSL CODE_B58003 ;$B68A64 |
STZ $0652 ;$B68A68 |
LDX $0654 ;$B68A6B |
LDA #$F780 ;$B68A6E |
STA $24,x ;$B68A71 |
LDA #$FC80 ;$B68A73 |
STA $2A,x ;$B68A76 |
STZ $20,x ;$B68A78 |
STZ $26,x ;$B68A7A |
LDA #CODE_B68BBB ;$B68A7C |
STA $44,x ;$B68A7F |
LDA #$0001 ;$B68A81 |
STA $000751 ;$B68A84 |
LDA #DATA_B68B07 ;$B68A88 |
STA $000753 ;$B68A8B |
LDA.l $000654 ;$B68A8F |
STA $68 ;$B68A93 |
LDA #$0298 ;$B68A95 |
JSL CODE_B9D09B ;$B68A98 |
LDA.l $000656 ;$B68A9C |
STA $68 ;$B68AA0 |
LDA #$0299 ;$B68AA2 |
JSL CODE_B9D09B ;$B68AA5 |
BRA CODE_B68A60 ;$B68AA9 /
CODE_B68AAB:
DEC $0751 ;$B68AAB \
BNE CODE_B68AFA ;$B68AAE |
LDX $0753 ;$B68AB0 |
LDY $000A,x ;$B68AB3 |
JSL CODE_BB842C ;$B68AB6 |
LDY $68 ;$B68ABA |
LDA $D3 ;$B68ABC |
CMP #$006B ;$B68ABE |
BNE CODE_B68ACF ;$B68AC1 |
LDA $0012,y ;$B68AC3 |
AND #$CFFF ;$B68AC6 |
ORA #$2000 ;$B68AC9 |
STA $0012,y ;$B68ACC |
CODE_B68ACF: ; |
LDX $0753 ;$B68ACF |
LDA $0000,x ;$B68AD2 |
STA $0020,y ;$B68AD5 |
LDA $0002,x ;$B68AD8 |
STA $0026,y ;$B68ADB |
LDA $0004,x ;$B68ADE |
STA $0024,y ;$B68AE1 |
LDA $0006,x ;$B68AE4 |
STA $002A,y ;$B68AE7 |
LDA $0008,x ;$B68AEA |
STA $000751 ;$B68AED |
TXA ;$B68AF1 |
CLC ;$B68AF2 |
ADC #$000C ;$B68AF3 |
STA $000753 ;$B68AF6 |
CODE_B68AFA: ; |
RTS ;$B68AFA /
DATA_B68AFB:
db $A0, $FF, $00, $00, $E0, $FF, $00, $FF
db $05, $00, $74, $01
DATA_B68B07:
db $00, $00, $00, $00, $00, $00, $00, $FF
db $05, $00, $76, $01
DATA_B68B13:
db $60, $00, $00, $00, $00, $00, $40, $FF
db $04, $00, $72, $01
DATA_B68B1F:
db $E0, $FF, $E0, $FF, $00, $00, $00, $FF
db $20, $4E, $78, $01
DATA_B68B2B:
db $40, $00, $00, $00, $C0, $FF, $80, $00
db $03, $00, $70, $01
DATA_B68B37:
db $C0, $FF, $00, $00, $00, $00, $80, $00
db $04, $00, $70, $01
DATA_B68B43:
db $E0, $FF, $00, $00, $00, $00, $80, $00
db $02, $00, $70, $01
DATA_B68B4F:
db $20, $00, $00, $00, $00, $00, $80, $00
db $03, $00, $70, $01
DATA_B68B5B:
db $00, $00, $00, $00, $80, $00, $80, $00
db $02, $00, $70, $01
DATA_B68B67:
db $C0, $FF, $E0, $FF, $80, $00, $80, $00
db $03, $00, $70, $01
DATA_B68B73:
db $C0, $FF, $00, $00, $C0, $FF, $80, $00
db $03, $00, $70, $01
DATA_B68B7F:
db $40, $00, $00, $00, $00, $00, $80, $00
db $04, $00, $70, $01
DATA_B68B8B:
db $20, $00, $00, $00, $00, $00, $80, $00
db $03, $00, $70, $01
DATA_B68B97:
db $E0, $FF, $00, $00, $00, $00, $80, $00
db $04, $00, $70, $01
DATA_B68BA3:
db $00, $00, $00, $00, $80, $00, $80, $00
db $03, $00, $70, $01
DATA_B68BAF:
db $40, $00, $20, $00, $80, $00, $80, $00
db $10, $27, $70, $01
CODE_B68BBB:
LDA #$0004 ;$B68BBB \
JSL CODE_B8CFD4 ;$B68BBE |
JSL CODE_B8CF7F ;$B68BC2 |
JSR CODE_B68AAB ;$B68BC6 |
LDX $64 ;$B68BC9 |
LDA $0A,x ;$B68BCB |
CMP #$0030 ;$B68BCD |
BCS CODE_B68C23 ;$B68BD0 |
LDX $64 ;$B68BD2 |
LDA #$0021 ;$B68BD4 |
STA $000751 ;$B68BD7 |
LDA #DATA_B68B2B ;$B68BDB |
STA $000753 ;$B68BDE |
LDA #$0120 ;$B68BE2 |
STA $0A,x ;$B68BE5 |
LDA #CODE_B68C27 ;$B68BE7 |
STA $44,x ;$B68BEA |
LDA #$029C ;$B68BEC |
JSL CODE_B9D0C6 ;$B68BEF |
LDA.l $000656 ;$B68BF3 |
STA $68 ;$B68BF7 |
LDA #$029D ;$B68BF9 |
JSL CODE_B9D09B ;$B68BFC |
LDA #$077A ;$B68C00 |
JSL CODE_B58003 ;$B68C03 |
LDX $64 ;$B68C07 |
LDY $0656 ;$B68C09 |
LDA #$0380 ;$B68C0C |
STA $24,x ;$B68C0F |
STA $2A,x ;$B68C11 |
LDA $12,x ;$B68C13 |
EOR #$3000 ;$B68C15 |
STA $12,x ;$B68C18 |
LDA $0012,y ;$B68C1A |
EOR #$3000 ;$B68C1D |
STA $0012,y ;$B68C20 |
CODE_B68C23: ; |
JSR CODE_B68D5D ;$B68C23 |
RTS ;$B68C26 /
CODE_B68C27:
JSL CODE_B8CF7F ;$B68C27 \
JSR CODE_B68AAB ;$B68C2B |
LDX $64 ;$B68C2E |
LDA $0A,x ;$B68C30 |
CMP #$0270 ;$B68C32 |
BCC CODE_B68C67 ;$B68C35 |
LDA #CODE_B68C6B ;$B68C37 |
STA $44,x ;$B68C3A |
LDA #$005A ;$B68C3C |
STA $000747 ;$B68C3F |
LDY #$017A ;$B68C43 |
JSL CODE_BB842C ;$B68C46 |
LDA #$055B ;$B68C4A |
JSL CODE_B58003 ;$B68C4D |
LDA #$065C ;$B68C51 |
JSL CODE_B58003 ;$B68C54 |
LDX $64 ;$B68C58 |
LDY $68 ;$B68C5A |
LDA $06,x ;$B68C5C |
STA $0006,y ;$B68C5E |
LDA #$01F3 ;$B68C61 |
STA $000A,y ;$B68C64 |
CODE_B68C67: ; |
JSR CODE_B68D5D ;$B68C67 |
RTS ;$B68C6A /
CODE_B68C6B:
LDA.l $000747 ;$B68C6B \
BEQ CODE_B68C81 ;$B68C6F |
DEC $0747 ;$B68C71 |
BNE CODE_B68C81 ;$B68C74 |
JSL CODE_BB8158 ;$B68C76 |
LDA #$0027 ;$B68C7A |
JSL CODE_B8D8BA ;$B68C7D |
CODE_B68C81: ; |
RTS ;$B68C81 /
CODE_B68C82:
LDA #$0006 ;$B68C82 \