-
Notifications
You must be signed in to change notification settings - Fork 0
/
bank1.asm
6508 lines (6227 loc) · 248 KB
/
bank1.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
;-------------------------------------------------------------------------------
; Bank 1
;-------------------------------------------------------------------------------
.logical $8000
BankHeader
PRG01_Bank = LastBank
;-------------------------------------------------------------------------------
; Cross bank jump labels
;-------------------------------------------------------------------------------
PRG01_Goto_81d4:
jmp PRG01_81d4 ; $8004: 4c d4 81
;-------------------------------------------------------------------------------
jmp PRG01_8802 ; $8007: 4c 02 88
;-------------------------------------------------------------------------------
PRG01_Goto_b8e4:
jmp PRG01_b8e4 ; $800a: 4c e4 b8
;-------------------------------------------------------------------------------
jmp PRG01_8132 ; $800d: 4c 32 81
;-------------------------------------------------------------------------------
PRG01_Goto_801f:
jmp PRG01_801f ; $8010: 4c 1f 80
;-------------------------------------------------------------------------------
jmp PRG01_8385 ; $8013: 4c 85 83
;-------------------------------------------------------------------------------
jmp PRG01_831c ; $8016: 4c 1c 83
;-------------------------------------------------------------------------------
PRG01_Goto_ba31:
jmp PRG01_ba31 ; $8019: 4c 31 ba
;-------------------------------------------------------------------------------
PRG01_Goto_8524:
jmp PRG01_8524 ; $801c: 4c 24 85
;-------------------------------------------------------------------------------
; The bank code
;-------------------------------------------------------------------------------
PRG01_801f:
lda #$00 ; $801f: a9 00
sta $a7 ; $8021: 85 a7
lda #$18 ; $8023: a9 18
PRG01_8025:
ldx $a7 ; $8025: a6 a7
pha ; $8027: 48
lda $0580,x ; $8028: bd 80 05
and #$40 ; $802b: 29 40
bne PRG01_8049 ; $802d: d0 1a
lda $0400,x ; $802f: bd 00 04
beq PRG01_8049 ; $8032: f0 15
lda $0418,x ; $8034: bd 18 04
and #$01 ; $8037: 29 01
beq PRG01_804c ; $8039: f0 11
jsr PRG01_8717 ; $803b: 20 17 87
jsr PRG01_870e ; $803e: 20 0e 87
lda $0418,x ; $8041: bd 18 04
and #$fe ; $8044: 29 fe
sta $0418,x ; $8046: 9d 18 04
PRG01_8049:
jmp PRG01_8123 ; $8049: 4c 23 81
;-------------------------------------------------------------------------------
PRG01_804c:
lda $04a8,x ; $804c: bd a8 04
ora $0490,x ; $804f: 1d 90 04
beq PRG01_80bd ; $8052: f0 69
lda $0418,x ; $8054: bd 18 04
and #$02 ; $8057: 29 02
bne PRG01_8070 ; $8059: d0 15
lda $0490,x ; $805b: bd 90 04
bmi PRG01_8068 ; $805e: 30 08
lda $0418,x ; $8060: bd 18 04
and #$fb ; $8063: 29 fb
jmp PRG01_806d ; $8065: 4c 6d 80
;-------------------------------------------------------------------------------
PRG01_8068:
lda $0418,x ; $8068: bd 18 04
ora #$04 ; $806b: 09 04
PRG01_806d:
sta $0418,x ; $806d: 9d 18 04
PRG01_8070:
clc ; $8070: 18
lda $0448,x ; $8071: bd 48 04
adc $04a8,x ; $8074: 7d a8 04
sta $0448,x ; $8077: 9d 48 04
lda $0430,x ; $807a: bd 30 04
adc $0490,x ; $807d: 7d 90 04
sta $0430,x ; $8080: 9d 30 04
php ; $8083: 08
lda $012b ; $8084: ad 2b 01
bne PRG01_80ab ; $8087: d0 22
plp ; $8089: 28
lda $0418,x ; $808a: bd 18 04
and #$40 ; $808d: 29 40
beq PRG01_809e ; $808f: f0 0d
lda $0430,x ; $8091: bd 30 04
cmp #$74 ; $8094: c9 74
bcc PRG01_80b8 ; $8096: 90 20
cmp #$f0 ; $8098: c9 f0
bcc PRG01_80bd ; $809a: 90 21
bcs PRG01_80b8 ; $809c: b0 1a
PRG01_809e:
lda $0430,x ; $809e: bd 30 04
cmp #$30 ; $80a1: c9 30
bcc PRG01_80b8 ; $80a3: 90 13
cmp #$f0 ; $80a5: c9 f0
bcc PRG01_80bd ; $80a7: 90 14
bcs PRG01_80b8 ; $80a9: b0 0d
PRG01_80ab:
lda $0490,x ; $80ab: bd 90 04
bpl PRG01_80b5 ; $80ae: 10 05
plp ; $80b0: 28
bcc PRG01_80b8 ; $80b1: 90 05
bcs PRG01_80bd ; $80b3: b0 08
PRG01_80b5:
plp ; $80b5: 28
bcc PRG01_80bd ; $80b6: 90 05
PRG01_80b8:
lda #$00 ; $80b8: a9 00
sta $0400,x ; $80ba: 9d 00 04
PRG01_80bd:
lda $04c0,x ; $80bd: bd c0 04
ora $04d8,x ; $80c0: 1d d8 04
beq PRG01_8123 ; $80c3: f0 5e
lda $0418,x ; $80c5: bd 18 04
and #$08 ; $80c8: 29 08
bne PRG01_80e1 ; $80ca: d0 15
lda $04c0,x ; $80cc: bd c0 04
bmi PRG01_80d9 ; $80cf: 30 08
lda $0418,x ; $80d1: bd 18 04
ora #$10 ; $80d4: 09 10
jmp PRG01_80de ; $80d6: 4c de 80
;-------------------------------------------------------------------------------
PRG01_80d9:
lda $0418,x ; $80d9: bd 18 04
and #$ef ; $80dc: 29 ef
PRG01_80de:
sta $0418,x ; $80de: 9d 18 04
PRG01_80e1:
lda $04c0,x ; $80e1: bd c0 04
bmi PRG01_80ef ; $80e4: 30 09
lda $0550,x ; $80e6: bd 50 05
and #$08 ; $80e9: 29 08
beq PRG01_80f8 ; $80eb: f0 0b
bne PRG01_8123 ; $80ed: d0 34
PRG01_80ef:
lda $0550,x ; $80ef: bd 50 05
and #$01 ; $80f2: 29 01
beq PRG01_80f8 ; $80f4: f0 02
bne PRG01_8123 ; $80f6: d0 2b
PRG01_80f8:
clc ; $80f8: 18
lda $0478,x ; $80f9: bd 78 04
adc $04d8,x ; $80fc: 7d d8 04
sta $0478,x ; $80ff: 9d 78 04
lda $0460,x ; $8102: bd 60 04
adc $04c0,x ; $8105: 7d c0 04
sta $0460,x ; $8108: 9d 60 04
php ; $810b: 08
lda $04c0,x ; $810c: bd c0 04
bpl PRG01_8116 ; $810f: 10 05
plp ; $8111: 28
bcc PRG01_811b ; $8112: 90 07
bcs PRG01_8123 ; $8114: b0 0d
PRG01_8116:
plp ; $8116: 28
bcs PRG01_811b ; $8117: b0 02
bcc PRG01_8123 ; $8119: 90 08
PRG01_811b:
lda #$00 ; $811b: a9 00
sta $0400,x ; $811d: 9d 00 04
jmp PRG01_8123 ; $8120: 4c 23 81
;-------------------------------------------------------------------------------
PRG01_8123:
jsr PRG01_8802 ; $8123: 20 02 88
inc $a7 ; $8126: e6 a7
pla ; $8128: 68
tax ; $8129: aa
dex ; $812a: ca
txa ; $812b: 8a
beq PRG01_8131 ; $812c: f0 03
jmp PRG01_8025 ; $812e: 4c 25 80
;-------------------------------------------------------------------------------
PRG01_8131:
rts ; $8131: 60
;-------------------------------------------------------------------------------
PRG01_8132:
lda $0520,x ; $8132: bd 20 05
and #$0f ; $8135: 29 0f
beq PRG01_8141 ; $8137: f0 08
dec $0520,x ; $8139: de 20 05
clc ; $813c: 18
php ; $813d: 08
jmp PRG01_8176 ; $813e: 4c 76 81
;-------------------------------------------------------------------------------
PRG01_8141:
sec ; $8141: 38
php ; $8142: 08
lda $0520,x ; $8143: bd 20 05
lsr ; $8146: 4a
lsr ; $8147: 4a
lsr ; $8148: 4a
lsr ; $8149: 4a
ora $0520,x ; $814a: 1d 20 05
sta $0520,x ; $814d: 9d 20 05
lda $0418,x ; $8150: bd 18 04
and #$08 ; $8153: 29 08
beq PRG01_815c ; $8155: f0 05
lda $04c0,x ; $8157: bd c0 04
bmi PRG01_817e ; $815a: 30 22
PRG01_815c:
inc $0508,x ; $815c: fe 08 05
lda $0508,x ; $815f: bd 08 05
tay ; $8162: a8
and #$0f ; $8163: 29 0f
sta $a1 ; $8165: 85 a1
tya ; $8167: 98
lsr ; $8168: 4a
lsr ; $8169: 4a
lsr ; $816a: 4a
lsr ; $816b: 4a
cmp $a1 ; $816c: c5 a1
bcs PRG01_8176 ; $816e: b0 06
tya ; $8170: 98
and #$f0 ; $8171: 29 f0
sta $0508,x ; $8173: 9d 08 05
PRG01_8176:
lda $0508,x ; $8176: bd 08 05
and #$0f ; $8179: 29 0f
tay ; $817b: a8
plp ; $817c: 28
rts ; $817d: 60
;-------------------------------------------------------------------------------
PRG01_817e:
lda $0508,x ; $817e: bd 08 05
and #$0f ; $8181: 29 0f
beq PRG01_818b ; $8183: f0 06
dec $0508,x ; $8185: de 08 05
jmp PRG01_8176 ; $8188: 4c 76 81
;-------------------------------------------------------------------------------
PRG01_818b:
lda $0508,x ; $818b: bd 08 05
lsr ; $818e: 4a
lsr ; $818f: 4a
lsr ; $8190: 4a
lsr ; $8191: 4a
ora $0508,x ; $8192: 1d 08 05
sta $0508,x ; $8195: 9d 08 05
jmp PRG01_8176 ; $8198: 4c 76 81
;-------------------------------------------------------------------------------
ldy #$00 ; $819b: a0 00
beq PRG01_81a9 ; $819d: f0 0a
PRG01_819f:
LoadAddress $5b0
txa ; $81a7: 8a
tay ; $81a8: a8
PRG01_81a9:
lda (LoadedAddress),y ; $81a9: b1 a5
and #$0f ; $81ab: 29 0f
beq PRG01_81bd ; $81ad: f0 0e
lda (LoadedAddress),y ; $81af: b1 a5
sta $a0 ; $81b1: 85 a0
dec $a0 ; $81b3: c6 a0
lda $a0 ; $81b5: a5 a0
sta (LoadedAddress),y ; $81b7: 91 a5
clc ; $81b9: 18
php ; $81ba: 08
bcc PRG01_81c9 ; $81bb: 90 0c
PRG01_81bd:
sec ; $81bd: 38
php ; $81be: 08
lda (LoadedAddress),y ; $81bf: b1 a5
lsr ; $81c1: 4a
lsr ; $81c2: 4a
lsr ; $81c3: 4a
lsr ; $81c4: 4a
ora (LoadedAddress),y ; $81c5: 11 a5
sta (LoadedAddress),y ; $81c7: 91 a5
PRG01_81c9:
lda (LoadedAddress),y ; $81c9: b1 a5
and #$0f ; $81cb: 29 0f
tay ; $81cd: a8
plp ; $81ce: 28
rts ; $81cf: 60
;-------------------------------------------------------------------------------
jsr $10c0 ; $81d0: 20 c0 10
.byte $f0 ; $81d3: f0 Suspected data
PRG01_81d4:
lda #$00 ; $81d4: a9 00
sta $a7 ; $81d6: 85 a7
PRG01_81d8:
ldx $a7 ; $81d8: a6 a7
ldy $0400,x ; $81da: bc 00 04
beq PRG01_81e6 ; $81dd: f0 07
lda $0580,x ; $81df: bd 80 05
and #$40 ; $81e2: 29 40
bne PRG01_81f5 ; $81e4: d0 0f
PRG01_81e6:
lda #$81 ; $81e6: a9 81
pha ; $81e8: 48
lda #$f4 ; $81e9: a9 f4
pha ; $81eb: 48
lda PRG01_82b4,y ; $81ec: b9 b4 82
pha ; $81ef: 48
lda PRG01_8254,y ; $81f0: b9 54 82
pha ; $81f3: 48
rts ; $81f4: 60
;-------------------------------------------------------------------------------
PRG01_81f5:
inc $a7 ; $81f5: e6 a7
lda $a7 ; $81f7: a5 a7
cmp #$18 ; $81f9: c9 18
bne PRG01_81d8 ; $81fb: d0 db
rts ; $81fd: 60
;-------------------------------------------------------------------------------
lda $0418,x ; $81fe: bd 18 04
and #$80 ; $8201: 29 80
bne PRG01_8206 ; $8203: d0 01
rts ; $8205: 60
;-------------------------------------------------------------------------------
PRG01_8206:
lda #$00
.for ram := $0400, ram <= $0640, ram += $18
sta ram,x
.endfor
rts ; $8253: 60
;-------------------------------------------------------------------------------
; Object routine table
;-------------------------------------------------------------------------------
; TODO: add labels
; character obj ids - PiecesObjects
TableStart 1
TableInsert $81fe
ObjID_Godzilla: TableInsert Obj_Godzilla_Jump
ObjID_Mothra: TableInsert Obj_Mothra_Jump
ObjID_Rodan: TableInsert Obj_Rodan_Jump
ObjID_Anguirus: TableInsert Obj_Anguirus_Jump
TableInsert $b234
TableInsert $b239
TableInsert $b23e
TableInsert $b243
TableInsert $b248
TableInsert $b24d
TableInsert $b252
TableInsert $b257
TableInsert $b25c
TableInsert $b261
TableInsert $b266
TableInsert $896b
TableInsert $8915
TableInsert $8a42
TableInsert $8a8e
TableInsert $b26b
TableInsert $b2df
TableInsert $b322
TableInsert $b42c
TableInsert $b469
TableInsert $b542
TableInsert $8940
TableInsert $b58e
TableInsert $b5ae
TableInsert $b5dc
TableInsert $b648
TableInsert $b6a0
TableInsert $8aef
TableInsert $a7a9
TableInsert $a82f
TableInsert $8ba1
TableInsert $8c38
TableInsert $9d11
TableInsert $8f9f
TableInsert $8d1a
TableInsert $8d7c
TableInsert $8dc7
TableInsert $8de3
TableInsert $8e20
TableInsert $8ea1
TableInsert $8eed
TableInsert $9d64
TableInsert $9f14
TableInsert $97ac
TableInsert $9803
TableInsert $9c43
TableInsert $9c16
TableInsert $9867
TableInsert $98e8
TableInsert $9945
TableInsert $99b2
TableInsert $9a0f
TableInsert $9acc
TableInsert $9b8d
TableInsert $9728
TableInsert $9757
TableInsert $9728
TableInsert $9e7a
TableInsert $9cad
TableInsert $a743
TableInsert $a201
TableInsert $9f8d
TableInsert $a006
TableInsert $a0e1
TableInsert $a448
TableInsert $a144
TableInsert $a290
TableInsert $a356
TableInsert $a4ac
TableInsert $a6a4
TableInsert $a6f3
TableInsert $a4a7
TableInsert $a89d
TableInsert $a996
TableInsert $aa45
TableInsert $aa82
TableInsert $ac05
TableInsert $ab1c
TableInsert $abab
TableInsert $aca0
TableInsert $ad90
TableInsert $af2e
TableInsert $b205
TableInsert $b205
TableInsert $b205
TableInsert $b205
TableInsert $b205
TableInsert $b205
TableInsert $b205
TableInsert $b205
TableInsert $b205
PRG01_8254: .byte <(CurrentTable-1)
PRG01_82b4: .byte >(CurrentTable-1)
;-------------------------------------------------------------------------------
PRG01_8314:
ldy #$00 ; $8314: a0 00
jsr PRG01_831c ; $8316: 20 1c 83
jmp PRG01_8385 ; $8319: 4c 85 83
;-------------------------------------------------------------------------------
PRG01_831c:
lda #$00 ; $831c: a9 00
sta $12 ; $831e: 85 12
lda $0430,y ; $8320: b9 30 04
sec ; $8323: 38
sbc $0430,x ; $8324: fd 30 04
sta $13 ; $8327: 85 13
bcs PRG01_8339 ; $8329: b0 0e
lda $12 ; $832b: a5 12
ora #$04 ; $832d: 09 04
sta $12 ; $832f: 85 12
lda $13 ; $8331: a5 13
eor #$ff ; $8333: 49 ff
adc #$01 ; $8335: 69 01
sta $13 ; $8337: 85 13
PRG01_8339:
bne PRG01_833d ; $8339: d0 02
inc $13 ; $833b: e6 13
PRG01_833d:
lda $0460,y ; $833d: b9 60 04
sec ; $8340: 38
sbc $0460,x ; $8341: fd 60 04
sta $14 ; $8344: 85 14
bcs PRG01_8356 ; $8346: b0 0e
lda $12 ; $8348: a5 12
ora #$08 ; $834a: 09 08
sta $12 ; $834c: 85 12
lda $14 ; $834e: a5 14
eor #$ff ; $8350: 49 ff
adc #$01 ; $8352: 69 01
sta $14 ; $8354: 85 14
PRG01_8356:
bne PRG01_835a ; $8356: d0 02
inc $14 ; $8358: e6 14
PRG01_835a:
lda $14 ; $835a: a5 14
cmp $13 ; $835c: c5 13
bcc PRG01_836c ; $835e: 90 0c
ldy $13 ; $8360: a4 13
sty $14 ; $8362: 84 14
sta $13 ; $8364: 85 13
lda $12 ; $8366: a5 12
ora #$10 ; $8368: 09 10
sta $12 ; $836a: 85 12
PRG01_836c:
ldy $14 ; $836c: a4 14
lda $13 ; $836e: a5 13
jsr PRG01_8472 ; $8370: 20 72 84
ldy #$03 ; $8373: a0 03
PRG01_8375:
cmp PRG01_840a,y ; $8375: d9 0a 84
bcc PRG01_837d ; $8378: 90 03
dey ; $837a: 88
bne PRG01_8375 ; $837b: d0 f8
PRG01_837d:
tya ; $837d: 98
ora $12 ; $837e: 05 12
tay ; $8380: a8
lda PRG01_840e,y ; $8381: b9 0e 84
rts ; $8384: 60
;-------------------------------------------------------------------------------
PRG01_8385:
and #$1f ; $8385: 29 1f
asl ; $8387: 0a
asl ; $8388: 0a
tay ; $8389: a8
lda PRG01_842e,y ; $838a: b9 2e 84
sta $13 ; $838d: 85 13
lda PRG01_842f,y ; $838f: b9 2f 84
sta $10 ; $8392: 85 10
lda PRG01_8430,y ; $8394: b9 30 84
sta $14 ; $8397: 85 14
lda PRG01_8431,y ; $8399: b9 31 84
sta $11 ; $839c: 85 11
lda $0538,x ; $839e: bd 38 05
bpl PRG01_83bb ; $83a1: 10 18
asl $13 ; $83a3: 06 13
rol $10 ; $83a5: 26 10
asl $13 ; $83a7: 06 13
rol $10 ; $83a9: 26 10
asl $13 ; $83ab: 06 13
rol $10 ; $83ad: 26 10
asl $14 ; $83af: 06 14
rol $11 ; $83b1: 26 11
asl $14 ; $83b3: 06 14
rol $11 ; $83b5: 26 11
asl $14 ; $83b7: 06 14
rol $11 ; $83b9: 26 11
PRG01_83bb:
and #$40 ; $83bb: 29 40
beq PRG01_83cf ; $83bd: f0 10
asl $13 ; $83bf: 06 13
rol $10 ; $83c1: 26 10
asl $13 ; $83c3: 06 13
rol $10 ; $83c5: 26 10
asl $14 ; $83c7: 06 14
rol $11 ; $83c9: 26 11
asl $14 ; $83cb: 06 14
rol $11 ; $83cd: 26 11
PRG01_83cf:
lda #$00 ; $83cf: a9 00
sta $0490,x ; $83d1: 9d 90 04
sta $04a8,x ; $83d4: 9d a8 04
sta $04c0,x ; $83d7: 9d c0 04
sta $04d8,x ; $83da: 9d d8 04
lda $0538,x ; $83dd: bd 38 05
and #$3f ; $83e0: 29 3f
beq PRG01_840a ; $83e2: f0 26
tay ; $83e4: a8
PRG01_83e5:
lda $13 ; $83e5: a5 13
clc ; $83e7: 18
adc $04a8,x ; $83e8: 7d a8 04
sta $04a8,x ; $83eb: 9d a8 04
lda $10 ; $83ee: a5 10
adc $0490,x ; $83f0: 7d 90 04
sta $0490,x ; $83f3: 9d 90 04
lda $14 ; $83f6: a5 14
clc ; $83f8: 18
adc $04d8,x ; $83f9: 7d d8 04
sta $04d8,x ; $83fc: 9d d8 04
lda $11 ; $83ff: a5 11
adc $04c0,x ; $8401: 7d c0 04
sta $04c0,x ; $8404: 9d c0 04
dey ; $8407: 88
bne PRG01_83e5 ; $8408: d0 db
PRG01_840a:
rts ; $840a: 60
;-------------------------------------------------------------------------------
.byte $ab, $6a, $32 ; $840b: ab 6a 32 Data
PRG01_840e:
.byte $02, $03, $03, $04 ; $840e: 02 03 03 04 Data
.byte $0e, $0d, $0d, $0c ; $8412: 0e 0d 0d 0c Data
.byte $06, $05, $05, $04 ; $8416: 06 05 05 04 Data
.byte $0a, $0b, $0b, $0c ; $841a: 0a 0b 0b 0c Data
.byte $02, $01, $01, $00 ; $841e: 02 01 01 00 Data
.byte $0e, $0f, $0f, $00 ; $8422: 0e 0f 0f 00 Data
.byte $06, $07, $07, $08 ; $8426: 06 07 07 08 Data
.byte $0a, $09, $09, $08 ; $842a: 0a 09 09 08 Data
PRG01_842e: .byte $00 ; $842e: 00 Data
PRG01_842f: .byte $00 ; $842f: 00 Data
PRG01_8430: .byte $40 ; $8430: 40 Data
PRG01_8431: .byte $00, $18, $00, $3b ; $8431: 00 18 00 3b Data
.byte $00, $2d, $00, $2d ; $8435: 00 2d 00 2d Data
.byte $00, $3b, $00, $18 ; $8439: 00 3b 00 18 Data
.byte $00, $40, $00, $00 ; $843d: 00 40 00 00 Data
.byte $00, $3b, $00, $e8 ; $8441: 00 3b 00 e8 Data
.byte $ff, $2d, $00, $d3 ; $8445: ff 2d 00 d3 Data
.byte $ff, $18, $00, $c5 ; $8449: ff 18 00 c5 Data
.byte $ff, $00, $00, $c0 ; $844d: ff 00 00 c0 Data
.byte $ff, $e8, $ff, $c5 ; $8451: ff e8 ff c5 Data
.byte $ff, $d3, $ff, $d3 ; $8455: ff d3 ff d3 Data
.byte $ff, $c5, $ff, $e8 ; $8459: ff c5 ff e8 Data
.byte $ff, $c0, $ff, $00 ; $845d: ff c0 ff 00 Data
.byte $00, $c5, $ff, $18 ; $8461: 00 c5 ff 18 Data
.byte $00, $d3, $ff, $2d ; $8465: 00 d3 ff 2d Data
.byte $00, $e8, $ff, $3b ; $8469: 00 e8 ff 3b Data
.byte $00, $00, $00, $00 ; $846d: 00 00 00 00 Data
.byte $00 ; $8471: 00 Data
;-------------------------------------------------------------------------------
PRG01_8472:
sta $10 ; $8472: 85 10
lda #$00 ; $8474: a9 00
sta $11 ; $8476: 85 11
tya ; $8478: 98
ldy #$08 ; $8479: a0 08
PRG01_847b:
asl $11 ; $847b: 06 11
rol ; $847d: 2a
cmp $10 ; $847e: c5 10
bcc PRG01_8486 ; $8480: 90 04
sbc $10 ; $8482: e5 10
inc $11 ; $8484: e6 11
PRG01_8486:
dey ; $8486: 88
bne PRG01_847b ; $8487: d0 f2
tay ; $8489: a8
lda $11 ; $848a: a5 11
rts ; $848c: 60
;-------------------------------------------------------------------------------
tay ; $848d: a8
lda $0538,x ; $848e: bd 38 05
beq PRG01_84ad ; $8491: f0 1a
lda $0460,x ; $8493: bd 60 04
and #$fe ; $8496: 29 fe
sta $0460,x ; $8498: 9d 60 04
lda $22 ; $849b: a5 22
and #$fe ; $849d: 29 fe
sta $22 ; $849f: 85 22
lda $d9 ; $84a1: a5 d9
and #$fe ; $84a3: 29 fe
sta $d9 ; $84a5: 85 d9
lda #$00 ; $84a7: a9 00
sta $04a8,x ; $84a9: 9d a8 04
iny ; $84ac: c8
PRG01_84ad:
lda PRG01_84c6,y ; $84ad: b9 c6 84
sta $04a8,x ; $84b0: 9d a8 04
lda PRG01_84d7,y ; $84b3: b9 d7 84
sta $0490,x ; $84b6: 9d 90 04
lda PRG01_84e8,y ; $84b9: b9 e8 84
sta $04d8,x ; $84bc: 9d d8 04
lda PRG01_84f9,y ; $84bf: b9 f9 84
sta $04c0,x ; $84c2: 9d c0 04
rts ; $84c5: 60
;-------------------------------------------------------------------------------
PRG01_84c6:
.byte $00, $00, $00, $00 ; $84c6: 00 00 00 00 Data
.byte $00, $00, $00, $00 ; $84ca: 00 00 00 00 Data
.byte $00, $00, $00, $00 ; $84ce: 00 00 00 00 Data
.byte $00, $00, $00, $00 ; $84d2: 00 00 00 00 Data
.byte $00 ; $84d6: 00 Data
PRG01_84d7:
.byte $00, $00, $02, $02 ; $84d7: 00 00 02 02 Data
.byte $02, $02, $02, $02 ; $84db: 02 02 02 02 Data
.byte $00, $00, $fe, $fe ; $84df: 00 00 fe fe Data
.byte $fe, $fe, $fe, $fe ; $84e3: fe fe fe fe Data
.byte $00 ; $84e7: 00 Data
PRG01_84e8:
.byte $00, $00, $00, $00 ; $84e8: 00 00 00 00 Data
.byte $00, $00, $00, $00 ; $84ec: 00 00 00 00 Data
.byte $00, $00, $00, $00 ; $84f0: 00 00 00 00 Data
.byte $00, $00, $00, $00 ; $84f4: 00 00 00 00 Data
.byte $00 ; $84f8: 00 Data
PRG01_84f9:
.byte $02, $02, $02, $02 ; $84f9: 02 02 02 02 Data
.byte $00, $00, $fe, $fe ; $84fd: 00 00 fe fe Data
.byte $fe, $fe, $fe, $fe ; $8501: fe fe fe fe Data
.byte $00, $00, $02, $02 ; $8505: 00 00 02 02 Data
.byte $00, $06, $08, $0a ; $8509: 00 06 08 0a Data
.byte $04, $10, $0c, $02 ; $850d: 04 10 0c 02 Data
.byte $00, $0e, $bd, $90 ; $8511: 00 0e bd 90 Data
.byte $04, $d0, $01, $60 ; $8515: 04 d0 01 60 Data
.byte $a9, $01, $9d, $90 ; $8519: a9 01 9d 90 Data
.byte $04, $a9, $00, $9d ; $851d: 04 a9 00 9d Data
.byte $a8, $04, $60 ; $8521: a8 04 60 Data
;-------------------------------------------------------------------------------
PRG01_8524:
ldy #$03 ; $8524: a0 03
clc ; $8526: 18
PRG01_8527:
lda $0418,y ; $8527: b9 18 04
ora $0400,y ; $852a: 19 00 04
bne PRG01_8531 ; $852d: d0 02
sec ; $852f: 38
rts ; $8530: 60
;-------------------------------------------------------------------------------
PRG01_8531:
iny ; $8531: c8
cpy #$10 ; $8532: c0 10
bne PRG01_8527 ; $8534: d0 f1
clc ; $8536: 18
rts ; $8537: 60
;-------------------------------------------------------------------------------
PRG01_8538:
sta $10 ; $8538: 85 10
lda $0430,x ; $853a: bd 30 04
cmp $05c8,x ; $853d: dd c8 05
bcs PRG01_8551 ; $8540: b0 0f
lda $04a8,x ; $8542: bd a8 04
adc $10 ; $8545: 65 10
sta $04a8,x ; $8547: 9d a8 04
bcc PRG01_854f ; $854a: 90 03
inc $0490,x ; $854c: fe 90 04
PRG01_854f:
sec ; $854f: 38
rts ; $8550: 60
;-------------------------------------------------------------------------------
PRG01_8551:
lda $04a8,x ; $8551: bd a8 04
sbc $10 ; $8554: e5 10
sta $04a8,x ; $8556: 9d a8 04
bcs PRG01_855e ; $8559: b0 03
dec $0490,x ; $855b: de 90 04
PRG01_855e:
clc ; $855e: 18
rts ; $855f: 60
;-------------------------------------------------------------------------------
PRG01_8560:
sta $10 ; $8560: 85 10
lda $0460,x ; $8562: bd 60 04
cmp $05e0,x ; $8565: dd e0 05
bcs PRG01_8579 ; $8568: b0 0f
lda $04d8,x ; $856a: bd d8 04
adc $10 ; $856d: 65 10
sta $04d8,x ; $856f: 9d d8 04
bcc PRG01_8577 ; $8572: 90 03
inc $04c0,x ; $8574: fe c0 04
PRG01_8577:
sec ; $8577: 38
rts ; $8578: 60
;-------------------------------------------------------------------------------
PRG01_8579:
lda $04d8,x ; $8579: bd d8 04
sbc $10 ; $857c: e5 10
sta $04d8,x ; $857e: 9d d8 04
bcs PRG01_8586 ; $8581: b0 03
dec $04c0,x ; $8583: de c0 04
PRG01_8586:
clc ; $8586: 18
rts ; $8587: 60
;-------------------------------------------------------------------------------
PRG01_8588:
sta $0400,y ; $8588: 99 00 04
lda $0430,x ; $858b: bd 30 04
sta $0430,y ; $858e: 99 30 04
lda $0460,x ; $8591: bd 60 04
sta $0460,y ; $8594: 99 60 04
rts ; $8597: 60
;-------------------------------------------------------------------------------
sta $10 ; $8598: 85 10
lda $0430,x ; $859a: bd 30 04
pha ; $859d: 48
lda $0460,x ; $859e: bd 60 04
pha ; $85a1: 48
lda $10 ; $85a2: a5 10
jsr PRG01_8659 ; $85a4: 20 59 86
pla ; $85a7: 68
sta $0460,x ; $85a8: 9d 60 04
pla ; $85ab: 68
sta $0430,x ; $85ac: 9d 30 04
rts ; $85af: 60
;-------------------------------------------------------------------------------
PRG01_85b0:
lda #$00 ; $85b0: a9 00
sec ; $85b2: 38
sbc $04a8,x ; $85b3: fd a8 04
sta $04a8,x ; $85b6: 9d a8 04
lda #$00 ; $85b9: a9 00
sbc $0490,x ; $85bb: fd 90 04
sta $0490,x ; $85be: 9d 90 04
rts ; $85c1: 60
;-------------------------------------------------------------------------------
PRG01_85c2:
lda #$00 ; $85c2: a9 00
sec ; $85c4: 38
sbc $04d8,x ; $85c5: fd d8 04
sta $04d8,x ; $85c8: 9d d8 04
lda #$00 ; $85cb: a9 00
sbc $04c0,x ; $85cd: fd c0 04
sta $04c0,x ; $85d0: 9d c0 04
rts ; $85d3: 60
;-------------------------------------------------------------------------------
lda $0550,x ; $85d4: bd 50 05
and #$02 ; $85d7: 29 02
beq PRG01_85e6 ; $85d9: f0 0b
lda $0490,x ; $85db: bd 90 04
bpl PRG01_85e6 ; $85de: 10 06
jsr PRG01_85b0 ; $85e0: 20 b0 85
jmp PRG01_85f5 ; $85e3: 4c f5 85
;-------------------------------------------------------------------------------
PRG01_85e6:
lda $0550,x ; $85e6: bd 50 05
and #$04 ; $85e9: 29 04
beq PRG01_85f5 ; $85eb: f0 08
lda $0490,x ; $85ed: bd 90 04
bmi PRG01_85f5 ; $85f0: 30 03
jsr PRG01_85b0 ; $85f2: 20 b0 85
PRG01_85f5:
lda $0550,x ; $85f5: bd 50 05
and #$01 ; $85f8: 29 01
bne PRG01_8603 ; $85fa: d0 07
lda $0460,x ; $85fc: bd 60 04
cmp #$18 ; $85ff: c9 18
bcs PRG01_8614 ; $8601: b0 11
PRG01_8603:
lda $04c0,x ; $8603: bd c0 04
bpl PRG01_8614 ; $8606: 10 0c
lda $0550,x ; $8608: bd 50 05
ora #$01 ; $860b: 09 01
sta $0550,x ; $860d: 9d 50 05
jsr PRG01_85c2 ; $8610: 20 c2 85
rts ; $8613: 60
;-------------------------------------------------------------------------------
PRG01_8614:
lda $0550,x ; $8614: bd 50 05
and #$08 ; $8617: 29 08
bne PRG01_8622 ; $8619: d0 07
lda $0460,x ; $861b: bd 60 04
cmp #$e8 ; $861e: c9 e8
bcc PRG01_8632 ; $8620: 90 10
PRG01_8622:
lda $04c0,x ; $8622: bd c0 04
bmi PRG01_8632 ; $8625: 30 0b
lda $0550,x ; $8627: bd 50 05
ora #$08 ; $862a: 09 08
sta $0550,x ; $862c: 9d 50 05
jmp PRG01_85c2 ; $862f: 4c c2 85
;-------------------------------------------------------------------------------
PRG01_8632:
rts ; $8632: 60
;-------------------------------------------------------------------------------
lda #$10 ; $8633: a9 10
pha ; $8635: 48
lda $0550,x ; $8636: bd 50 05
and #$04 ; $8639: 29 04
bne PRG01_8655 ; $863b: d0 18
pla ; $863d: 68
jsr PRG01_8538 ; $863e: 20 38 85
lda $0490,x ; $8641: bd 90 04
bmi PRG01_8654 ; $8644: 30 0e
cmp #$08 ; $8646: c9 08
bcc PRG01_8654 ; $8648: 90 0a
lda #$ff ; $864a: a9 ff
sta $04a8,x ; $864c: 9d a8 04
lda #$07 ; $864f: a9 07
sta $0490,x ; $8651: 9d 90 04
PRG01_8654:
rts ; $8654: 60
;-------------------------------------------------------------------------------
PRG01_8655:
pla ; $8655: 68
jmp PRG01_870e ; $8656: 4c 0e 87
;-------------------------------------------------------------------------------
PRG01_8659:
sta LoadAddress_Low ; $8659: 85 a5
sty LoadAddress_High ; $865b: 84 a6
ldy #$00 ; $865d: a0 00
lda $0400,x ; $865f: bd 00 04
lda (LoadedAddress),y ; $8662: b1 a5
iny ; $8664: c8
sta $0508,x ; $8665: 9d 08 05
lda (LoadedAddress),y ; $8668: b1 a5
iny ; $866a: c8
sta $0520,x ; $866b: 9d 20 05
sta $05b0,x ; $866e: 9d b0 05
lda (LoadedAddress),y ; $8671: b1 a5
iny ; $8673: c8
sta $0538,x ; $8674: 9d 38 05
lda (LoadedAddress),y ; $8677: b1 a5
iny ; $8679: c8
sta $0430,x ; $867a: 9d 30 04
lda (LoadedAddress),y ; $867d: b1 a5
beq PRG01_8684 ; $867f: f0 03
sta $0460,x ; $8681: 9d 60 04
PRG01_8684:
iny ; $8684: c8
lda (LoadedAddress),y ; $8685: b1 a5
iny ; $8687: c8
sta $04f0,x ; $8688: 9d f0 04
lda (LoadedAddress),y ; $868b: b1 a5
sta $0598,x ; $868d: 9d 98 05
lda $0418,x ; $8690: bd 18 04
ora #$92 ; $8693: 09 92
sta $0418,x ; $8695: 9d 18 04
lda #$00 ; $8698: a9 00
sta $0568,x ; $869a: 9d 68 05
rts ; $869d: 60
;-------------------------------------------------------------------------------
lda #$00 ; $869e: a9 00
sta $0400,x ; $86a0: 9d 00 04
rts ; $86a3: 60
;-------------------------------------------------------------------------------
PRG01_86a4:
clc ; $86a4: 18
lda $d9 ; $86a5: a5 d9
adc $0460,x ; $86a7: 7d 60 04
pha ; $86aa: 48
lda $da ; $86ab: a5 da
adc #$00 ; $86ad: 69 00
and #$01 ; $86af: 29 01
beq PRG01_86bb ; $86b1: f0 08
inc LoadAddress_High ; $86b3: e6 a6
inc LoadAddress_High ; $86b5: e6 a6
inc LoadAddress_High ; $86b7: e6 a6
inc LoadAddress_High ; $86b9: e6 a6
PRG01_86bb:
pla ; $86bb: 68
lsr ; $86bc: 4a
lsr ; $86bd: 4a
lsr ; $86be: 4a
clc ; $86bf: 18
adc LoadAddress_Low ; $86c0: 65 a5
sta $05f8,x ; $86c2: 9d f8 05
lda #$00 ; $86c5: a9 00
adc LoadAddress_High ; $86c7: 65 a6
sta $0610,x ; $86c9: 9d 10 06
rts ; $86cc: 60
;-------------------------------------------------------------------------------
lda $37 ; $86cd: a5 37
bmi PRG01_86da ; $86cf: 30 09
dec $37 ; $86d1: c6 37
bpl PRG01_86dc ; $86d3: 10 07
lda #$7f ; $86d5: a9 7f
sta $37 ; $86d7: 85 37
rts ; $86d9: 60
;-------------------------------------------------------------------------------
PRG01_86da:
inc $37 ; $86da: e6 37
PRG01_86dc:
rts ; $86dc: 60
;-------------------------------------------------------------------------------
PRG01_86dd:
txa ; $86dd: 8a
pha ; $86de: 48
tya ; $86df: 98
and #$01 ; $86e0: 29 01
tax ; $86e2: aa
lda $37,x ; $86e3: b5 37
bpl PRG01_86f1 ; $86e5: 10 0a
dec $37,x ; $86e7: d6 37
bmi PRG01_86f3 ; $86e9: 30 08
lda #$80 ; $86eb: a9 80
sta $37,x ; $86ed: 95 37
bne PRG01_86f3 ; $86ef: d0 02
PRG01_86f1:
dec $37,x ; $86f1: d6 37
PRG01_86f3: