-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmusic.asm
2145 lines (1947 loc) · 28.1 KB
/
music.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
INCLUDE "music_macros.asm"
SECTION "Music", ROMX[$6F98], BANK[3]
Song_6F98::
db $00
dw $6F5B
dw Channel1_72F3
dw Channel2_72F7
dw Channel3_72F9
dw Channel4_72FB
Song_6FA3::
db $00
dw $6F7B
dw Channel1_72A7
dw Channel2_72AB
dw Channel3_72AF
dw Channel4_72B1
Song_6FAE::
db $00
dw $6F66
dw Channel1_71ED
dw Channel2_71F9
dw Channel3_7205
dw Channel4_7219
Song_6FB9::
db $00
dw $6F7B
dw Channel1_7186
dw Channel2_718C
dw $0000
dw Channel4_7192
Song_6FC4::
db $00
dw $6F5B
dw Channel1_733E
dw Channel2_734A
dw Channel3_7356
dw Channel4_7362
Song_6FCF::
db $00
dw $6F66
dw Channel1_74D7
dw Channel2_74E3
dw Channel3_74EF
dw Channel4_7507
Song_6FDA::
db $00
dw $6F66
dw Channel1_76ED
dw Channel2_76F7
dw Channel3_7701
dw Channel4_770D
Song_6FE5::
db $00
dw $6F7B
dw Channel1_6FF0
dw Channel2_6FFC
dw Channel3_7008
dw Channel4_7014
Channel1_6FF0::
dw Segment_701C, Segment_7044, Segment_7044, Segment_7061, $FFFF, $6FF2
Channel2_6FFC::
dw Segment_7024, Segment_7094, Segment_7094, Segment_70B1, $FFFF, $6FFE
Channel3_7008::
dw Segment_7034, Segment_70E6, Segment_70E6, Segment_7117, $FFFF, $700A
Channel4_7014::
dw Segment_7169, Segment_7178, $FFFF, $7016
Segment_701C::
db $9D, $66, $00, $80
db $A5
db $01, $01
db $00
Segment_7024::
db $9D, $76, $00, $81
db $A4
db $42, $3E, $3A
db $A9
db $36, $36, $36, $36, $36, $36
db $00
Segment_7034::
db $9D, $3B, $6F, $A0
db $A4
db $52, $4E, $4C
db $A9
db $48, $48, $48, $48, $48, $48
db $00
Segment_7044::
db $A4
db $01
db $A9
db $3A, $01
db $A3
db $3E
db $A2
db $4C
db $A7
db $01
db $A9
db $34, $4C, $01, $48
db $A3
db $44, $3E
db $A9
db $44, $01
db $A4
db $3E
db $A9
db $01
db $A5
db $01
db $00
Segment_7061::
db $A4
db $01
db $A9
db $3E, $01, $3E, $01, $01, $3E, $01, $01, $01, $01, $01, $3A
db $A3
db $36, $34
db $A9
db $30, $01, $34, $01, $01, $42
db $A4
db $01
db $A5
db $01
db $A4
db $01
db $A9
db $3E, $01, $3E, $01, $01, $3E, $01, $01, $01, $01, $01, $3A
db $A3
db $36, $34
db $A5
db $01, $01
db $00
Segment_7094::
db $A4
db $01
db $A9
db $4C, $01
db $A3
db $4E
db $A2
db $52
db $A7
db $01
db $A9
db $44, $52, $01, $4E
db $A3
db $4C, $48
db $A9
db $4C, $01
db $A4
db $44
db $A9
db $01
db $A5
db $01
db $00
Segment_70B1::
db $A4
db $01
db $A9
db $4E, $01, $4E, $01, $01, $4E, $01, $01, $01, $01, $01, $4C
db $A3
db $48, $44
db $A9
db $42, $01, $44, $01, $01, $48
db $A4
db $01
db $A5
db $01
db $A4
db $01
db $A9
db $4E, $01, $4E, $01, $01, $4E, $01, $01, $01, $01, $01, $4C
db $A3
db $48, $44
db $A4
db $42, $3E, $3A, $36
db $00
Segment_70E6::
db $A3
db $44
db $A9
db $44, $01, $3A
db $A3
db $44
db $A9
db $44, $01, $3A
db $A3
db $44
db $A9
db $44, $01, $3A
db $A3
db $44
db $A9
db $44, $01, $3A
db $A3
db $36
db $A9
db $36, $01, $44
db $A3
db $36
db $A9
db $36, $01, $44
db $A3
db $36
db $A9
db $36, $01, $44
db $A3
db $36
db $A9
db $36, $01, $44
db $00
Segment_7117::
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $3A
db $A9
db $3A, $01, $48
db $A3
db $3A
db $A9
db $3A, $01, $48
db $A3
db $3A
db $A9
db $3A, $01, $48
db $A3
db $3A
db $A9
db $3A, $01, $48
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $48
db $A9
db $48, $01, $3E
db $A3
db $52, $52, $4E, $4E, $4C, $4C, $48, $48
db $00
Segment_7169::
db $A3
Noise 1, 1, 1, 1, 2, 2
db $A9
Noise 2, 2, 2, 2, 2, 2
db $00
Segment_7178::
db $A9
Noise 1, 0, 0, 3, 0, 1, 0, 1, 0, 3, 0, 1
db $00
Channel1_7186::
dw Segment_7198, $FFFF, $7186
Channel2_718C::
dw Segment_71B9, $FFFF, $718C
Channel4_7192::
dw Segment_71D5, $FFFF, $7192
Segment_7198::
db $9D, $73, $00, $80
db $A9
db $01
db $A2
db $1A, $01, $22, $10, $14, $18, $1A, $01, $28, $22, $01, $01, $1A, $01, $22, $10, $14, $18, $1A, $01
db $A3
db $01
db $A9
db $01, $01
db $00
Segment_71B9::
db $9D, $93, $00, $80
db $A2
db $1A, $01, $22, $10, $14, $18, $1A, $01, $28, $22, $01, $01, $1A, $01, $22, $10, $14, $18, $1A, $01
db $A4
db $01
db $00
Segment_71D5::
db $A2
Noise 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0
db $A4
Noise 0
db $00
Channel1_71ED::
dw Segment_7224, Segment_722B, Segment_722B, Segment_725E, $FFFF, $71EF
Channel2_71F9::
dw Segment_721F, Segment_722B, Segment_722B, Segment_725E, $FFFF, $71FB
Channel3_7205::
dw Segment_7272, Segment_7277, Segment_7277, Segment_7277, Segment_7277, Segment_7289, Segment_7289, Segment_7277, $FFFF, $7207
Channel4_7219::
dw Segment_7292, $FFFF, $7219
Segment_721F::
db $9D, $80, $00, $81
db $00
Segment_7224::
db $9D, $30, $00, $80
db $A7
db $01
db $00
Segment_722B::
db $A4
db $40
db $A3
db $3E
db $A9
db $38, $3E, $38
db $AB
db $01
db $A8
db $36
db $A3
db $28, $2A
db $A2
db $2A, $2E
db $A3
db $2A, $2E
db $A5
db $28
db $A4
db $40
db $A3
db $3E
db $A9
db $38, $3E, $38
db $AB
db $01
db $A8
db $36
db $A3
db $28, $2A
db $A2
db $2A, $2E
db $A3
db $32
db $A1
db $2E, $32, $2E, $2A
db $A5
db $28
db $00
Segment_725E::
db $A5
db $2A
db $A4
db $01, $32
db $A5
db $3C
db $A4
db $38
db $A3
db $38
db $A2
db $3C, $38
db $A5
db $36, $01, $01, $01
db $00
Segment_7272::
db $9D, $3B, $6F, $A0
db $00
Segment_7277::
db $A3
db $40, $42, $40, $42, $40, $42, $40, $4E, $40, $42, $40, $42, $40, $42, $40, $3C
db $00
Segment_7289::
db $42, $50, $42, $50, $42, $50, $42, $50
db $00
Segment_7292::
db $A3
Noise 1
db $A2
Noise 1, 1
db $A3
Noise 1
db $A2
Noise 1, 1
db $A3
Noise 1
db $A2
Noise 1, 1
db $A3
Noise 2
db $A2
Noise 1, 1
db $00
Channel1_72A7::
dw Segment_72C5, $0000
Channel2_72AB::
dw Segment_72B3, $0000
Channel3_72AF::
dw Segment_72D6
Channel4_72B1::
dw Segment_72E8
Segment_72B3::
db $9D, $71, $00, $80
db $A0
db $01
db $A1
db $58, $54, $52, $4E, $4A
db $A6
db $01
db $A2
db $40, $01, $32
Segment_72C5::
db $9D, $B1, $00, $80
db $A1
db $58, $54, $52, $4E, $4A
db $A6
db $01
db $A2
db $4E, $01, $52
db $00
Segment_72D6::
db $9D, $3B, $6F, $20
db $A1
db $58, $54, $52, $4E, $4A
db $A6
db $01
db $A2
db $60, $01, $62, $01, $01
Segment_72E8::
db $A1
Noise 1, 1, 1, 1, 1
db $A6
Noise 0
db $A3
Noise 1, 1
Channel1_72F3::
dw Segment_72FD, $0000
Channel2_72F7::
dw Segment_730F
Channel3_72F9::
dw Segment_7321
Channel4_72FB::
dw Segment_7333
Segment_72FD::
db $9D, $60, $00, $80
db $A8
db $52
db $A2
db $52, $01, $52, $01, $52, $01
db $A8
db $56, $58, $5A
db $00
Segment_730F::
db $9D, $83, $00, $80
db $A8
db $4A
db $A2
db $4A, $01, $4A, $01, $4A, $01
db $A8
db $4E, $50, $52
db $00
Segment_7321::
db $9D, $1B, $6F, $21
db $A8
db $70
db $A2
db $70, $01, $70, $01, $70, $01
db $A8
db $74, $76, $78
db $00
Segment_7333::
db $A8
Noise 1
db $A3
Noise 1, 1, 1
db $A8
Noise 1, 1, 1, 1
Channel1_733E::
dw Segment_737A, Segment_73AC, Segment_73AC, Segment_7433, $FFFF, $7340
Channel2_734A::
dw Segment_736A, Segment_73D4, Segment_73D4, Segment_7463, $FFFF, $734C
Channel3_7356::
dw Segment_738A, Segment_740A, Segment_740A, Segment_7493, $FFFF, $7358
Channel4_7362::
dw Segment_73A0, Segment_74BE, $FFFF, $7364
Segment_736A::
db $9D, $A2, $00, $80
db $A2
db $40, $44, $01, $48, $01, $44, $01, $40
db $A5
db $3C
db $00
Segment_737A::
db $9D, $82, $00, $80
db $A2
db $4A, $4A, $01, $4A, $01, $4A, $01, $4A
db $A5
db $44
db $00
Segment_738A::
db $9D, $3B, $6F, $20
db $A2
db $52, $54, $01, $58, $01, $54, $01, $52, $40, $36, $01, $30, $28, $01, $01, $01
db $00
Segment_73A0::
db $A2
Noise 1, 1, 0, 1, 0, 1, 0, 1
db $A5
Noise 1
db $00
Segment_73AC::
db $A2
db $3A, $01, $01
db $A7
db $40
db $A3
db $3A
db $A4
db $01, $32
db $AA
db $36, $44, $44, $44, $48, $4A
db $A5
db $01
db $A2
db $3A, $3A, $01
db $A7
db $40
db $A3
db $3A
db $A5
db $01
db $AA
db $48, $01, $01, $36, $3A, $3C
db $A5
db $3A
db $00
Segment_73D4::
db $A2
db $4A, $01, $01
db $A7
db $52
db $A3
db $4A
db $A2
db $44, $4E, $01, $54
db $A4
db $44
db $AA
db $48, $54, $54, $54, $58, $5C
db $A2
db $58, $52, $01, $4A
db $A4
db $40
db $A2
db $4A, $4A, $01
db $A7
db $52
db $A3
db $4A
db $A2
db $44, $4E, $01, $54
db $A4
db $44
db $AA
db $48, $01, $01, $48, $4A, $4E
db $A5
db $4A
db $00
Segment_740A::
db $A7
db $32, $3A
db $A3
db $40
db $A7
db $3C, $44
db $A3
db $4A
db $A7
db $40, $48
db $A3
db $36
db $A7
db $32, $3A
db $A3
db $40
db $A7
db $32, $3A
db $A3
db $40
db $A7
db $3C, $44
db $A3
db $4A
db $A7
db $40, $48
db $A3
db $36
db $A7
db $32, $3A
db $A3
db $40
db $00
Segment_7433::
db $AA
db $44, $44, $44, $44, $40, $3C
db $A7
db $40, $32
db $A3
db $01
db $A2
db $36, $01, $01, $36, $36, $3A, $01, $3C
db $A5
db $40
db $AA
db $44, $01, $44, $44, $48, $4A
db $A7
db $48, $40
db $A3
db $01
db $A7
db $44, $40
db $A3
db $3C
db $A2
db $01, $3C, $01, $01
db $A4
db $40
db $00
Segment_7463::
db $AA
db $54, $54, $54, $54, $52, $4E
db $A7
db $52, $4A
db $A3
db $01
db $A2
db $48, $01, $01, $48, $48, $4A, $01, $4E
db $A5
db $52
db $AA
db $54, $01, $54, $54, $58, $5C
db $A7
db $58, $52
db $A3
db $01
db $A7
db $54, $52
db $A3
db $4E
db $A2
db $01, $44, $01, $01
db $A4
db $48
db $00
Segment_7493::
db $A7
db $3C, $44
db $A3
db $4A
db $A7
db $32, $3A
db $A3
db $40
db $A7
db $40, $48
db $A3
db $36
db $A7
db $32, $3A
db $A3
db $40
db $A7
db $3C, $44
db $A3
db $4A
db $A7
db $3A, $40
db $A3
db $48
db $A7
db $3C, $44
db $A3
db $4A
db $A2
db $01, $40, $01, $01
db $A4
db $40
db $00
Segment_74BE::
db $A3
Noise 1
db $A9
Noise 1, 0, 1
db $A3
Noise 2
db $A9
Noise 1, 0, 1
db $A3
Noise 1
db $A9
Noise 1, 0, 1
db $A3
Noise 2
db $A9
Noise 1, 0, 1
db $00
Channel1_74D7::
dw Segment_7523, Segment_7543, Segment_7543, Segment_7612, $FFFF, $74D9
Channel2_74E3::
dw Segment_750F, Segment_7592, Segment_7592, Segment_7650, $FFFF, $74E5
Channel3_74EF::
dw Segment_7537, Segment_75D0, Segment_75D0, Segment_75D0, Segment_75F1, Segment_75D0, Segment_75D0, Segment_75D0, Segment_75F1, Segment_768E, $FFFF, $74F1
Channel4_7507::
dw Segment_753F, Segment_76D8, $FFFF, $7509
Segment_750F::
db $9D, $84, $00, $00
db $A2
db $70, $70, $70, $01, $6A, $01, $6A, $01, $66, $01, $66, $01
db $A4
db $6A
db $00
Segment_7523::
db $9D, $74, $00, $00
db $A2
db $66, $66, $66, $01, $60, $01, $60, $01, $5C, $01, $5C, $01
db $A4
db $60
db $00
Segment_7537::
db $9D, $3B, $6F, $20
db $A5
db $01, $01
db $00
Segment_753F::
db $A5
Noise 0, 0
db $00
Segment_7543::
db $9D, $82, $00, $00
db $A8
db $44
db $A3
db $48
db $A4
db $4E, $48
db $A4
db $44
db $A3
db $48, $44
db $A4
db $40
db $A3
db $3A, $36
db $A8
db $44
db $A3
db $48
db $A4
db $4E
db $A3
db $48, $44
db $A2
db $58, $5C
db $A3
db $58
db $A2
db $52, $58
db $A3
db $52
db $A2
db $4E, $52
db $A3
db $4E
db $A2
db $48, $44
db $A3
db $40
db $A8
db $44
db $A3
db $48
db $A4
db $4E, $48
db $A4
db $44
db $A3
db $48, $44
db $A4
db $40
db $A3
db $3A, $36
db $A8
db $3A
db $A3
db $3E, $3A, $36, $30, $2C
db $A5
db $30, $01
db $00
Segment_7592::
db $9D, $70, $00, $81
db $A8
db $4E
db $A3
db $52
db $A4
db $58, $52
db $A4
db $4E
db $A3
db $52, $4E
db $A4
db $48
db $A3
db $44, $40
db $A8
db $4E
db $A3
db $52
db $A4
db $58
db $A3
db $52, $4E
db $A5
db $52, $01
db $A8
db $4E
db $A3
db $52
db $A4
db $58, $52
db $A4
db $4E
db $A3
db $52, $4E
db $A4
db $48
db $A3
db $44, $40
db $A8
db $44
db $A3
db $48, $44, $40, $3A, $36
db $A5
db $3A, $01
db $00
Segment_75D0::
db $A3
db $28
db $A2
db $40, $36
db $A3
db $28, $40
db $A3
db $28
db $A2
db $40, $36
db $A3
db $28, $40
db $A3
db $1A
db $A2
db $32, $28
db $A3
db $1A, $32
db $A3
db $1A
db $A2
db $32, $28
db $A3
db $1A, $32
db $00
Segment_75F1::
db $A3
db $1E
db $A2
db $36, $2C
db $A3
db $1E, $36
db $A3
db $1E
db $A2
db $36, $2C
db $A3
db $1E, $36
db $A3
db $22
db $A2
db $3A, $30
db $A3
db $22, $3A
db $A3
db $22
db $A2
db $3A, $30
db $A3
db $22, $3A
db $00
Segment_7612::
db $A8
db $5C
db $A3
db $60
db $A4
db $66
db $A3
db $66
db $A2
db $6A, $66