forked from p4plus2/DKC2-disassembly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bank_B5.asm
13720 lines (13016 loc) · 334 KB
/
bank_B5.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
upload_spc_engine_entry:
JMP upload_spc_engine_wrapper ;$B58000 |
CODE_B58003:
JMP CODE_B58030 ;$B58003 |
CODE_B58006:
JMP CODE_B580D5 ;$B58006 |
CODE_B58009:
JMP CODE_B580EE ;$B58009 |
CODE_B5800C:
JMP CODE_B58106 ;$B5800C |
CODE_B5800F:
JMP CODE_B58132 ;$B5800F |
CODE_B58012:
JMP CODE_B581CE ;$B58012 |
CODE_B58015:
JMP CODE_B581DA ;$B58015 |
CODE_B58018:
JMP CODE_B581DB ;$B58018 |
CODE_B5801B:
JMP CODE_B581C2 ;$B5801B |
CODE_B5801E:
JMP CODE_B58053 ;$B5801E |
CODE_B58021:
JMP CODE_B580A9 ;$B58021 |
CODE_B58024:
PHB ;$B58024 \
PHK ;$B58025 |
PLB ;$B58026 |
ORA #$0500 ;$B58027 |
TAX ;$B5802A |
JSR write_spc_command ;$B5802B |
PLB ;$B5802E |
RTL ;$B5802F /
CODE_B58030:
PHB ;$B58030 \
PHY ;$B58031 |
PHK ;$B58032 |
PLB ;$B58033 |
LDX $0634 ;$B58034 |
CMP $0622,x ;$B58037 |
BEQ CODE_B58050 ;$B5803A |
TAY ;$B5803C |
INX ;$B5803D |
INX ;$B5803E |
TXA ;$B5803F |
AND #$000E ;$B58040 |
TAX ;$B58043 |
LDA $0622,x ;$B58044 |
BNE CODE_B58050 ;$B58047 |
TYA ;$B58049 |
STA $0622,x ;$B5804A |
STX $0634 ;$B5804D |
CODE_B58050: ; |
PLY ;$B58050 |
PLB ;$B58051 |
RTL ;$B58052 /
CODE_B58053:
PHB ;$B58053 \
PHK ;$B58054 |
PLB ;$B58055 |
LDA $2A ;$B58056 |
CMP $0636 ;$B58058 |
BEQ CODE_B58086 ;$B5805B |
LDX $0632 ;$B5805D |
LDA $0622,x ;$B58060 |
BEQ CODE_B58086 ;$B58063 |
STZ $0622,x ;$B58065 |
BMI CODE_B5806F ;$B58068 |
JSR CODE_B58088 ;$B5806A |
BRA CODE_B58076 ;$B5806D /
CODE_B5806F:
AND #$7FFF ;$B5806F \
JSL CODE_B580A9 ;$B58072 |
CODE_B58076: ; |
LDA $0632 ;$B58076 |
INC A ;$B58079 |
INC A ;$B5807A |
AND #$000E ;$B5807B |
STA $0632 ;$B5807E |
LDA $2A ;$B58081 |
STA $0636 ;$B58083 |
CODE_B58086: ; |
PLB ;$B58086 |
RTL ;$B58087 /
CODE_B58088:
SEP #$30 ;$B58088 \
XBA ;$B5808A |
TAX ;$B5808B |
LDA $0621 ;$B5808C |
BIT DATA_B580CD,x ;$B5808F |
BNE CODE_B5809F ;$B58092 |
CODE_B58094: ; |
TXA ;$B58094 |
XBA ;$B58095 |
STA $0619,x ;$B58096 |
REP #$30 ;$B58099 |
TAX ;$B5809B |
JMP write_spc_command ;$B5809C /
CODE_B5809F:
LDX #$04 ;$B5809F \
BIT DATA_B580CD,x ;$B580A1 |
BEQ CODE_B58094 ;$B580A4 |
REP #$30 ;$B580A6 |
RTS ;$B580A8 /
CODE_B580A9:
SEP #$30 ;$B580A9 \
XBA ;$B580AB |
AND #$0F ;$B580AC |
TAX ;$B580AE |
XBA ;$B580AF |
STA $0619,x ;$B580B0 |
BEQ CODE_B580BD ;$B580B3 |
LDA DATA_B580CD,x ;$B580B5 |
TSB $0621 ;$B580B8 |
BRA CODE_B580C3 ;$B580BB /
CODE_B580BD:
LDA DATA_B580CD,x ;$B580BD \
TRB $0621 ;$B580C0 |
CODE_B580C3: ; |
LDA $0619,x ;$B580C3 |
REP #$30 ;$B580C6 |
TAX ;$B580C8 |
JSR write_spc_command ;$B580C9 |
RTL ;$B580CC /
DATA_B580CD:
db $01, $02, $04, $08, $10, $20, $40, $80
CODE_B580D5:
PHB ;$B580D5 \
PHK ;$B580D6 |
PLB ;$B580D7 |
STA $1C ;$B580D8 |
LDX #$00FF ;$B580DA |
JSR write_spc_command ;$B580DD |
JSR CODE_B58469 ;$B580E0 |
JSR CODE_B5825C ;$B580E3 |
JSR CODE_B58277 ;$B580E6 |
JSR execute_spc_sound_engine ;$B580E9 |
PLB ;$B580EC |
RTL ;$B580ED /
CODE_B580EE:
PHB ;$B580EE \
PHK ;$B580EF |
PLB ;$B580F0 |
JSR CODE_B5816D ;$B580F1 |
LDX #$00FE ;$B580F4 |
JSR write_spc_command ;$B580F7 |
LDA $1E ;$B580FA |
XBA ;$B580FC |
ORA #$00FA ;$B580FD |
TAX ;$B58100 |
JSR write_spc_command ;$B58101 |
PLB ;$B58104 |
RTL ;$B58105 /
CODE_B58106:
PHB ;$B58106 \
PHK ;$B58107 |
PLB ;$B58108 |
STA $1C ;$B58109 |
LDX #$00FF ;$B5810B |
JSR write_spc_command ;$B5810E |
JSR CODE_B58469 ;$B58111 |
JSR CODE_B5825C ;$B58114 |
JSR CODE_B58277 ;$B58117 |
JSR CODE_B5816D ;$B5811A |
JSR execute_spc_sound_engine ;$B5811D |
LDX #$00FE ;$B58120 |
JSR write_spc_command ;$B58123 |
LDA $1E ;$B58126 |
XBA ;$B58128 |
ORA #$00FA ;$B58129 |
TAX ;$B5812C |
JSR write_spc_command ;$B5812D |
PLB ;$B58130 |
RTL ;$B58131 /
CODE_B58132:
PHB ;$B58132 \
PHK ;$B58133 |
PLB ;$B58134 |
PHA ;$B58135 |
AND #$00FF ;$B58136 |
STA $1C ;$B58139 |
LDX #$00FF ;$B5813B |
JSR write_spc_command ;$B5813E |
JSR CODE_B58469 ;$B58141 |
JSR CODE_B5825C ;$B58144 |
JSR CODE_B58277 ;$B58147 |
JSR CODE_B5816D ;$B5814A |
JSR execute_spc_sound_engine ;$B5814D |
PLA ;$B58150 |
AND #$FF00 ;$B58151 |
ORA #$00FB ;$B58154 |
TAX ;$B58157 |
JSR write_spc_command ;$B58158 |
LDX #$00FE ;$B5815B |
JSR write_spc_command ;$B5815E |
LDA $1E ;$B58161 |
XBA ;$B58163 |
ORA #$00FA ;$B58164 |
TAX ;$B58167 |
JSR write_spc_command ;$B58168 |
PLB ;$B5816B |
RTL ;$B5816C /
CODE_B5816D:
LDX #$0007 ;$B5816D \
CODE_B58170: ; |
STZ $0621,x ;$B58170 |
STZ $0629,x ;$B58173 |
STZ $0619,x ;$B58176 |
DEX ;$B58179 |
DEX ;$B5817A |
BPL CODE_B58170 ;$B5817B |
STZ $0634 ;$B5817D |
STZ $0636 ;$B58180 |
LDA #$0002 ;$B58183 |
STA $0632 ;$B58186 |
STZ $19B0 ;$B58189 |
RTS ;$B5818C /
upload_spc_engine_wrapper:
JSR upload_spc_engine ;$B5818D \
RTL ;$B58190 /
upload_spc_engine:
JSR upload_spc_base_engine ;$B58191 \ Upload the core of the SPC engine
JSR upload_spc_sound_engine ;$B58194 | Upload the sound processor of the SPC engine
JSR upload_global_samples ;$B58197 |
LDA #sound_effect_data ;$B5819A |\ Load pointer to sound effect data
STA $32 ;$B5819D | |
LDA.w #sound_effect_data>>16 ;$B5819F | |
STA $34 ;$B581A2 |/
JSR upload_inline_spc_block ;$B581A4 | Upload the sound effect data
JSR execute_spc_sound_engine ;$B581A7 | Jump to the sound engine entry
RTS ;$B581AA /
CODE_B581AB:
RTS ;$B581AB /
execute_spc_sound_engine: ; \
LDA #$0672 ;$B581AC |\ Load the sound engine entry point
STA $35 ;$B581AF |/
STZ $37 ;$B581B1 | Zero size transfer means execute jump
JSR upload_spc_block ;$B581B3 | Call the upload routine
RTS ;$B581B6 /
CODE_B581B7:
LDA #$06E3 ;$B581B7 \ Dead code, would crash SPC engine.
STA $35 ;$B581BA |
STZ $37 ;$B581BC |
JSR upload_spc_block ;$B581BE |
RTS ;$B581C1 /
CODE_B581C2:
AND #$00FF ;$B581C2 \
XBA ;$B581C5 |
ORA #$00FC ;$B581C6 |
TAX ;$B581C9 |
JSR write_spc_command ;$B581CA |
RTL ;$B581CD /
CODE_B581CE:
AND #$00FF ;$B581CE \
XBA ;$B581D1 |
ORA #$00FD ;$B581D2 |
TAX ;$B581D5 |
JSR write_spc_command ;$B581D6 |
RTL ;$B581D9 /
CODE_B581DA:
RTL ;$B581DA /
CODE_B581DB:
PHB ;$B581DB \
PHK ;$B581DC |
PLB ;$B581DD |
AND #$00FF ;$B581DE |
XBA ;$B581E1 |
ORA #$00FB ;$B581E2 |
TAX ;$B581E5 |
JSR write_spc_command ;$B581E6 |
LDX #$00FE ;$B581E9 |
JSR write_spc_command ;$B581EC |
LDA $1E ;$B581EF |
XBA ;$B581F1 |
ORA #$00FA ;$B581F2 |
TAX ;$B581F5 |
JSR write_spc_command ;$B581F6 |
PLB ;$B581F9 |
RTL ;$B581FA /
write_spc_command:
TXA ;$B581FB \ Move the command into A
REP #$20 ;$B581FC |\ Use index as 8 bit, with 16 bit accumulator
SEP #$10 ;$B581FE |/
LDX $00 ;$B58200 | Load the previous SPC transaction id
- ; |
CPX $2140 ;$B58202 |\ Wait for the SPC engine to echo the previous transaction id
BNE - ;$B58205 |/
STA $2141 ;$B58207 | Write the command to the SPC engine
INX ;$B5820A |\ Increment and send the SPC transaction id
STX $2140 ;$B5820B |/
STX $00 ;$B5820E | Store the SPC transaction id
REP #$30 ;$B58210 |
RTS ;$B58212 / Command upload finished
upload_spc_base_engine: ; \
REP #$20 ;$B58213 |\ Use index as 8 bit, with 16 bit accumulator
SEP #$10 ;$B58215 |/
LDA #$BBAA ;$B58217 | The IPL uses BBAA to indicate ready state
- ; |\ Wait for the SPC 700 to be ready
CMP $2140 ;$B5821A | |
BNE - ;$B5821D |/
LDA #$04D8 ;$B5821F |\ Set ARAM address for data transfer
STA $2142 ;$B58222 |/
LDA #$01CC ;$B58225 |\ Acknowledge the SPC-700 IPL and initiate a data transfer
STA $2140 ;$B58228 |/
TAX ;$B5822B | SPC echo is only a single byte, so use index registers
- ; |\ Wait for the SPC-700 to acknowledge the SNES CPU
CPX $2140 ;$B5822C | |
BNE - ;$B5822F |/
LDX #$00 ;$B58231 | Initialize the transfer counter
.next_byte ; |\
LDA.l spc_base_engine,x ;$B58233 | |\ Load and store the current engine byte
TAY ;$B58237 | | |
STY $2141 ;$B58238 | |/
STX $2140 ;$B5823B | | Store the transaction counter
- ; | |\ Wait for the SPC to echo the counter
CPX $2140 ;$B5823E | | |
BNE - ;$B58241 | |/
INX ;$B58243 | | Increment the counter
CPX #$88 ;$B58244 | | Compare against the engine size
BNE .next_byte ;$B58246 |/ If we haven't hit the engine size, load the next byte
INX ;$B58248 |\ Increment counter by two to end transfer
TXA ;$B58249 | | Use A to write the counter for 16 bit (high byte = 00)
STA $2140 ;$B5824A |/ Since the high byte is 00, It will execute the uploaded code
- ; |\ Wait for the SPC echo
CPX $2140 ;$B5824D | |
BNE - ;$B58250 |/
STZ $00 ;$B58252 | Reset the SPC transaction id
LDA #$0001 ;$B58254 |\ Default to mono audio
STA $1E ;$B58257 |/
REP #$30 ;$B58259 |
RTS ;$B5825B / All done, new SPC base engine set up.
CODE_B5825C:
LDA $1C ;$B5825C \
CLC ;$B5825E |
ROL A ;$B5825F |
STA $32 ;$B58260 |
ROL A ;$B58262 |
CLC ;$B58263 |
ADC $32 ;$B58264 |
TAX ;$B58266 |
LDA.l DATA_EE1086,x ;$B58267 |
STA $32 ;$B5826B |
LDA.l DATA_EE1088,x ;$B5826D |
STA $34 ;$B58271 |
JSR upload_inline_spc_block ;$B58273 |
RTS ;$B58276 /
CODE_B58277:
LDA $1C ;$B58277 \
CLC ;$B58279 |
ADC $1C ;$B5827A |
ADC $1C ;$B5827C |
TAX ;$B5827E |
LDA.l DATA_EE117B,x ;$B5827F |
STA $32 ;$B58283 |
LDA.l DATA_EE117D,x ;$B58285 |
STA $34 ;$B58289 |
JSR upload_inline_spc_block ;$B5828B |
RTS ;$B5828E /
upload_spc_sound_engine:
REP #$30 ;$B5828F \
LDA #spc_sound_engine ;$B58291 |\ Load a pointer to SPC sound engine
STA $32 ;$B58294 | |
LDA.w #spc_sound_engine>>16 ;$B58296 | |
STA $34 ;$B58299 |/
LDA #$0560 ;$B5829B |\ Set the ARAM destination
STA $35 ;$B5829E |/
LDA #$067F ;$B582A0 |\ Set the number of words to transfer
STA $37 ;$B582A3 |/
JSR upload_spc_block ;$B582A5 | Upload SPC block
RTS ;$B582A8 /
upload_global_samples: ; \
LDA #global_sample_map ;$B582A9 |\ Load the pointer to the global sample map
STA $0E ;$B582AC | |
LDA.w #global_sample_map>>16 ;$B582AE | |
STA $10 ;$B582B1 |/
LDA #$3100 ;$B582B3 |\ Source directory ARAM destination
STA $02 ;$B582B6 |/
STZ $0A ;$B582B8 |
LDA #$3400 ;$B582BA |\ Sample data ARAM destination
STA $06 ;$B582BD |/
STZ $0A ;$B582BF | Reset the sample counter
JSR sample_uploader ;$B582C1 |
LDA $02 ;$B582C4 |\
STA $04 ;$B582C6 |/
LDA $06 ;$B582C8 |\
STA $08 ;$B582CA |/
LDA $0A ;$B582CC |\
STA $0C ;$B582CE |/
RTS ;$B582D0 /
sample_uploader:
STZ $0A ;$B582D1 \ Reset the sample counter
LDX #$0000 ;$B582D3 |
LDA $0A ;$B582D6 |\
STA $3A ;$B582D8 |/
LDA $0E ;$B582DA |\ Copy sample map pointer
STA $3E ;$B582DC | |
LDA $10 ;$B582DE | |
STA $40 ;$B582E0 |/
LDA $02 ;$B582E2 |\ Copy source directory ARAM destination
STA $42 ;$B582E4 |/
LDA $06 ;$B582E6 |\ Copy sample data ARAM destination
STA $44 ;$B582E8 |/
.parse_next_sample ; |
LDA [$3E] ;$B582EA | Load sample number
INC $3E ;$B582EC |\ Increment the sample map pointer
INC $3E ;$B582EE |/
CMP #$FFFF ;$B582F0 |\ Sample number FFFF implies end of table, branch and upload
BEQ .upload_sample_directory ;$B582F3 |/
STA $3C ;$B582F5 |\ Triple sample number to index sample pointer table
CLC ;$B582F7 | |
ADC $3C ;$B582F8 | |
ADC $3C ;$B582FA |/
TXY ;$B582FC | Preserve ARAM buffer index
TAX ;$B582FD |\ Load pointer to the current sample
LDA.l sample_table,x ;$B582FE | |
STA $32 ;$B58302 | |
LDA.l sample_table+2,x ;$B58304 | |
STA $34 ;$B58308 |/
TYX ;$B5830A | Restore ARAM buffer index
LDA $06 ;$B5830B |\ Store sample data ARAM destination
STA $7E2200,x ;$B5830D |/
INX ;$B58311 |\ Increment ARAM buffer index
INX ;$B58312 |/
LDA [$32] ;$B58313 |\ Load size of unlooped sample data
CLC ;$B58315 | |
ADC $06 ;$B58316 | | Add unlooped sample data and ARAM destination
STA $7E2200,x ;$B58318 |/ Store destination of sample loop entry
INX ;$B5831C |\ Increment ARAM buffer index
INX ;$B5831D |/
INC $02 ;$B5831E |\ Increase source directory ARAM destination by 4 bytes
INC $02 ;$B58320 | |
INC $02 ;$B58322 | |
INC $02 ;$B58324 |/
INC $32 ;$B58326 |\ Increment pointer to current sample data
INC $32 ;$B58328 |/
LDA [$32] ;$B5832A |\ Load size of looped sample data
CLC ;$B5832C | |
ADC $06 ;$B5832D | | Add looped sample data and ARAM destination
STA $06 ;$B5832F |/ Store next potential ARAM sample destination
BRA .parse_next_sample ;$B58331 / Parse the next sample
.upload_sample_directory ; \
LDA #$2200 ;$B58333 |\ Set upload source to $7E2200
STA $32 ;$B58336 | |
LDA #$007E ;$B58338 | |
STA $34 ;$B5833B |/
LDA $42 ;$B5833D |\ Set ARAM destination
STA $35 ;$B5833F |/
LDA #$3400 ;$B58341 |\ Calculate and set upload size
SEC ;$B58344 | |
SBC $42 ;$B58345 | | word count = ($3400 - ARAM dest + 1) / 2
CLC ;$B58347 | |
INC A ;$B58348 | |
LSR A ;$B58349 | |
STA $37 ;$B5834A |/
JSR upload_spc_block ;$B5834C | Upload sample directory
LDA #global_sample_map ;$B5834F |\ Load global sample map pointer
STA $3E ;$B58352 | |
LDA.w #global_sample_map>>16 ;$B58354 | |
STA $40 ;$B58357 |/
LDA $0E ;$B58359 |\ If the sample map pointer is not the global samples
CMP $3E ;$B5835B | |
BNE .map_global_sample ;$B5835D |/ Branch and include global samples in the mapping
LDA $10 ;$B5835F |\ If the pointer does match the global samples
CMP $40 ;$B58361 | |
BEQ .upload_samples ;$B58363 |/ Branch ahead and don't double map global samples
.map_global_sample ; |
LDA [$3E] ;$B58365 | Load the sample number
CMP #$FFFF ;$B58367 |\ Sample number FFFF implies end of table, in that case
BEQ .map_set_specific_samples ;$B5836A |/ Branch and map set specific samples
INC $3E ;$B5836C |\ Increment sample map pointer
INC $3E ;$B5836E |/
TAX ;$B58370 | Use sample number as an index
LDA $0A ;$B58371 |\ Store the sample id at the sample number index
SEP #$20 ;$B58373 | |
STA $7E2200,x ;$B58375 | |
REP #$20 ;$B58379 |/
INC $0A ;$B5837B | Increment the sample number count
BRA .map_global_sample ;$B5837D / Parse next sample map entry
.map_set_specific_samples ; \
LDA $0E ;$B5837F |\ Load target sample map pointer
STA $3E ;$B58381 | |
LDA $10 ;$B58383 | |
STA $40 ;$B58385 |/
.map_sample ; |
LDA [$3E] ;$B58387 | Load the sample number
CMP #$FFFF ;$B58389 |\ Sample number FFFF implies end of table, branch and upload
BEQ .upload_source_number_map ;$B5838C |/
INC $3E ;$B5838E |\ Increment sample map pointer
INC $3E ;$B58390 |/
TAX ;$B58392 | Use sample number as an index
LDA $0A ;$B58393 |\ Store the sample id at the sample number index
SEP #$20 ;$B58395 | |
STA $7E2200,x ;$B58397 | |
REP #$20 ;$B5839B |/
INC $0A ;$B5839D | Increment the sample number count
BRA .map_sample ;$B5839F / Parse next sample map entry
.upload_source_number_map ; \
LDA #$2200 ;$B583A1 |\ Set upload source to $7E2200
STA $32 ;$B583A4 | |
LDA #$007E ;$B583A6 | |
STA $34 ;$B583A9 |/
LDA #$0560 ;$B583AB |\ Set ARAM Destination to $0560
STA $35 ;$B583AE |/
LDA #$0080 ;$B583B0 |\ Set transfer size to 128 words
STA $37 ;$B583B3 |/
JSR upload_spc_block ;$B583B5 | Upload the source number table
.upload_samples ; |
LDA $44 ;$B583B8 |\ Load and copy the sample destination pointer
STA $06 ;$B583BA |/
.upload_next_sample ; |
LDA [$0E] ;$B583BC | Load the sample number
CMP #$FFFF ;$B583BE |\ Sample number FFFF implies end of table, branch and return
BEQ .return ;$B583C1 |/
INC $0E ;$B583C3 |\ Increment sample map pointer
INC $0E ;$B583C5 |/
STA $3C ;$B583C7 |\ Triple sample number to index sample data pointer table
CLC ;$B583C9 | |
ADC $3C ;$B583CA | |
ADC $3C ;$B583CC | |
TAX ;$B583CE |/
LDA.l sample_table,x ;$B583CF |\ Load a the pointer to the sample.
STA $32 ;$B583D3 | |
LDA.l sample_table+2,x ;$B583D5 | |
STA $34 ;$B583D9 |/
INC $32 ;$B583DB |\ Skip unlooped intro size
INC $32 ;$B583DD |/
LDA $06 ;$B583DF |\ Load and copy the ARAM destination
STA $35 ;$B583E1 |/
LDA [$32] ;$B583E3 |\ Load and copy the size of the sample to upload
STA $37 ;$B583E5 |/
CLC ;$B583E7 |\ Add the ARAM destination and sample size
ADC $35 ;$B583E8 | |
STA $06 ;$B583EA |/ Store this as the next ARAM destination
CLC ;$B583EC |\ Convert bytes to upload to words to upload
INC $37 ;$B583ED | |
LSR $37 ;$B583EF |/
INC $32 ;$B583F1 |\ Increment pointer so the sample data start is the next byte
INC $32 ;$B583F3 |/
JSR upload_spc_block ;$B583F5 | Upload the sample data
BRA .upload_next_sample ;$B583F8 / Continue uploading samples
.return
RTS ;$B583FA > All done, no more samples.
upload_inline_spc_block: ; \
LDA [$32] ;$B583FB |\ Load the destination ARAM address from the block
STA $35 ;$B583FD |/
INC $32 ;$B583FF |\ Increment the pointer
INC $32 ;$B58401 |/
LDA [$32] ;$B58403 |\ Load the transfer length from the block
STA $37 ;$B58405 |/
INC $32 ;$B58407 |\ Increment the pointer
INC $32 ;$B58409 |/
BRA upload_spc_block ;$B5840B / Continue to the normal SPC block upload
upload_spc_block:
SEP #$10 ;$B5840D \ 16 bit A, with 8 bit index
LDX $00 ;$B5840F | Load the last SPC transaction id
- ; |\ Wait for the previous transaction id to be echoed
CPX $2140 ;$B58411 | | Which will signify the SPC engine is ready.
BNE - ;$B58414 |/
LDA $35 ;$B58416 |\ Write the ARAM target address
STA $2141 ;$B58418 |/
INX ;$B5841B |\ Increment and set the transaction id
STX $2140 ;$B5841C |/
LDA $37 ;$B5841F |\ Copy the byte count
STA $39 ;$B58421 |/
- ; |\ Wait for the transaction id to echo for completion
CPX $2140 ;$B58423 | |
BNE - ;$B58426 |/
STA $2141 ;$B58428 | Write the length of the transfer
INX ;$B5842B |\ Increment and set the transaction id
STX $2140 ;$B5842C |/
LDA $37 ;$B5842F |\ If there are no bytes to transfer simply exit
BEQ .return ;$B58431 |/ This means we were only executing a jump
LDY #$00 ;$B58433 |
.next_byte ; |
LDA [$32],y ;$B58435 | Load next byte
INY ;$B58437 |\ Advance the data index
INY ;$B58438 |/
BEQ .advance_pointer ;$B58439 | If the index has wrapped, advance the pointer
.wait_for_echo ; |\ Wait for the transaction id to echo for completion
CPX $2140 ;$B5843B | |
BNE .wait_for_echo ;$B5843E |/
INX ;$B58440 | Increment the transaction id
STA $2141 ;$B58441 | Write the data (two bytes)
STX $2140 ;$B58444 | Write the transaction id
DEC $37 ;$B58447 |\ Continue if there are more bytes to upload
BNE .next_byte ;$B58449 |/
.return ; |
STX $00 ;$B5844B | Store the final SPC transaction id
REP #$30 ;$B5844D | Return to full 16 bit
LDA $39 ;$B5844F |\ Store double the transfer count in A
ASL A ;$B58451 |/
RTS ;$B58452 / Finished with SPC block upload
.advance_pointer ; \
LDY $33 ;$B58453 |\ Increment the pointer high byte
INY ;$B58455 |/
BNE .skip_pointer_bank_cross ;$B58456 | If it doesn't roll over, skip incrementing the bank
STY $33 ;$B58458 | Set the new pointer mid byte
LDY $34 ;$B5845A |\ Increment the pointer bank
INY ;$B5845C | |
STY $34 ;$B5845D |/
LDY #$00 ;$B5845F | Reset the data index
BRA .wait_for_echo ;$B58461 /
.skip_pointer_bank_cross
STY $33 ;$B58463 \ Store the new pointer offset
LDY #$00 ;$B58465 | Reset the data index
BRA .wait_for_echo ;$B58467 /
CODE_B58469:
LDA $1C ;$B58469 \
CLC ;$B5846B |
ROL A ;$B5846C |
STA $32 ;$B5846D |
ROL A ;$B5846F |
CLC ;$B58470 |
ADC $32 ;$B58471 |
TAX ;$B58473 |
LDA.l DATA_EE1089,x ;$B58474 |
STA $0E ;$B58478 |
LDA.l DATA_EE108B,x ;$B5847A |
STA $10 ;$B5847E |
LDA $04 ;$B58480 |
STA $02 ;$B58482 |
LDA $08 ;$B58484 |
STA $06 ;$B58486 |
LDA $0C ;$B58488 |
STA $0A ;$B5848A |
JSR sample_uploader ;$B5848C |
RTS ;$B5848F /
DATA_B58490:
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00