-
Notifications
You must be signed in to change notification settings - Fork 0
/
sound_ovl.inc
3511 lines (3175 loc) · 65.4 KB
/
sound_ovl.inc
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
;-----------------------------------------------------------------------------
;NES Audio-player written for exclusive use by JEROEN TEL / JT & PROBE (C)1991
;-----------------------------------------------------------------------------
;GAME : OVERLORD
;MUSIC BY : JEROEN TEL
;Format : NINTENDO ENTERTAINMENT SYSTEM 8-BIT
;game by : MARK KELLEY & STEVE CROW FOR PROBE SOFTWARE LTD
;published by : VIRGIN GAMES U.S.A.
;date : 23/08/91
ssslo = $fe
ssshi = $ff
variable = $0700
voictest = variable+$00*$04
stpindex = variable+$01*$04
seqindex = variable+$02*$04
seqposit = variable+$03*$04
repstcnt = variable+$04*$04
stepnumb = variable+$05*$04
spdcount = variable+$06*$04
spdcheck = variable+$07*$04
realplay = variable+$08*$04
noteinit = variable+$09*$04
realsoun = variable+$0a*$04
noteleng = variable+$0b*$04
realleng = variable+$0c*$04
gateleng = variable+$0d*$04
realnote = variable+$0e*$04
lofrqwrd = variable+$0f*$04
hifrqwrd = variable+$10*$04
tranbyte = variable+$11*$04
sfxtrans = variable+$12*$04
arptrans = variable+$13*$04
arpindex = variable+$14*$04
arpnumbo = variable+$15*$04
arpspeed = variable+$16*$04
arponoto = variable+$17*$04
vibglbyt = variable+$18*$04
gldspeed = variable+$19*$04
glddirec = variable+$1a*$04
glddelay = variable+$1b*$04
destnote = variable+$1c*$04
vibdelay = variable+$1d*$04
vibindex = variable+$1e*$04
continos = variable+$1f*$04
amplitud = variable+$20*$04
ampindex = variable+$21*$04
fx01 = variable+$22*$04
fx02 = variable+$23*$04
fx03 = variable+$24*$04
pulindex = variable+$27*$04
pulsbyt1 = variable+$28*$04
spacespd = variable+$29*$04
spacecnt = variable+$2a*$04
;---------------------------------------------------------------------------------------------------------------------------------
4015wrd = $0f
spacedl = $0b
jmp AUDIOIN
jmp AUDIOPL
jmp MUSICIN
jmp MUSICPL
MUSICIN asl a
sta seqposit,x
lda #sex-s00-1
sta stpindex,x
jmp INITREALOS
MUSICPL
lda voictest,x
beq AUDIOEX
cpx #$00
beq VOICE01
cpx #$01
beq VOICE02
cpx #$02
beq VOICE03
cpx #$03
beq VOICE04
AUDIOEX rts
VOICE04 txa
asl a
asl a
tay
lda #$10 ;Set Amplitude <bit 04>
ora #$20 ;Continuous lenght enabled <bit 05>
ora amplitud,x ;Amplitude/Envelope Value <bit 03-00>
sta $4000,y
lda lofrqwrd,x
sta $4002,y
lda #$f8
sta $4003,y
jmp JMPVO04
VOICE03 txa
asl a
asl a
tay
lda #$80
jmp JMPVO03
VOICE02
VOICE01
setvoi1 txa
asl a
asl a
tay
lda pulsbyt1,x ;setpulse <bit 07-06>
ora #$10 ;Set amplitude <bit 04>
ora #$20 ;continuous lenght enabled <bit 05>
JMPVO03 ora amplitud,x ;Amplitude/Envelope Value <bit 03-00>
sta $4000,y
lda #$08 ;Hardware-glide down <bit 03>
sta $4001,y ;
lda lofrqwrd,x
sta $4002,y
lda hifrqwrd,x ;Check if hi-frq thesame as note before
cmp continos,x
beq NOHINO1
sta $4003,y ;HF set
sta continos,x
NOHINO1
JMPVO04
SPDHDL1 lda #$00 ;Speedroutine (two speed bytes)
sta realplay,x
dec spdcount,x
bpl SPDHDX1
lda spdcheck,x
eor #$ff
sta spdcheck,x
bpl SECONS1
ldy seqposit,x
lda seqtabes+$00,y
jmp SPDSET1
SECONS1 ldy seqposit,x
lda seqtabes+$01,y
SPDSET1 sta spdcount,x
lda #$ff
sta realplay,x
SPDHDX1
lda realplay,x ;check if new leng subtraction necessary
bpl NOSTPH1 ;
AUDIPL1 dec noteleng,x ;decrease speed, if zero then stephandle
beq STPHDL1
NOSTPH1 lda realnote,x ;check realnote on pause, no FX
cmp #$ff ;
beq NOFXPL1 ;
jsr FXPLAY1 ;
NOFXPL1 lda #$00 ;clear noteinit
sta noteinit,x ;
rts ;
STPHDL1 ldy stepnumb,x ;What step to take
lda stptablo,y ;
sta ssslo ;
lda stptabhi,y ;
sta ssshi ;
lda #$00 ;reset glide (if not reached dest. note)
sta gldspeed,x
ldy stpindex,x ;read step-index
lda (ssslo),y ;
cmp #$ff ;step check on end
beq SEQHDL1 ;yes, goto sequence-handle
jmp STPHD12 ;no, goto stephandle 02
SEQHDL1 dec repstcnt,x ;check if step repeats
beq REALSQ1 ;no, goto real sequence-handle
lda #$00 ;yes, reset index & do last step again
sta stpindex,x ;
tay ;
lda (ssslo),y ;
jmp STPHD12 ;
REALSQ1 ldy seqposit,x ;what sequence to take
lda seqtabel+$00,y ;
sta ssslo ;
lda seqtabel+$01,y ;
sta ssshi ;
jsr SEQZOOI
SEQHD19 sta stepnumb,x ;set step & clear stepindex
lda #$00
sta stpindex,x
inc repstcnt,x ;make sure step plays once
iny
tya
sta seqindex,x
jmp STPHDL1 ;back to step-handle
STPHD12 cmp #$fd ;glide check in step
bne STPHD14
iny
lda (ssslo),y
sta gldspeed,x
iny
lda (ssslo),y
clc
adc tranbyte,x
sta realnote,x
iny
lda (ssslo),y
clc
adc tranbyte,x
sta destnote,x
iny
jmp NONEWN1
STPHD14 cmp #$e0 ;pause check
bcc STPHD15
and #$1f
sta realleng,x
lda #$ff
sta realnote,x
lda #$00
sta amplitud,x
iny
tya
sta stpindex,x
jmp PAUSEX1
STPHD15 cmp #$c0 ;sound check
bcc STPHD16
clc
adc sfxtrans,x
and #$1f
asl a
asl a
sta realsoun,x
iny
lda (ssslo),y
cmp #$fd
beq STPHD12
cmp #$c0
bcs NONEWN1
STPHD16 cmp #$80 ;length check
bcc STPHD17
and #$7f
clc
adc noteleng,x
sta noteleng,x
sta realleng,x
iny
lda (ssslo),y
cmp #$fd
beq STPHD12
cmp #$c0
bcs NONEWN1
cmp #$80
bcs STPHD16
STPHD17 cmp #$60 ;arp check
bcc STPHD18
and #$1f
clc
adc arptrans,x
sta arpnumbo,x
iny
lda (ssslo),y
cmp #$60
bcs NONEWN1
STPHD18 clc ;set note + note transpose
adc tranbyte,x ;
sta realnote,x ;
iny ;
NONEWN1 tya ;
sta stpindex,x ;restore step-index
inc noteinit,x ;first init has been done
ldy realsoun,x ;
cpx #$00 ;check sound-init VOICE 01
beq INITV12 ;
cpx #$01 ;check sound-init VOICE 02
beq INITV12 ;
cpx #$02 ;check sound-init VOICE 03
beq INITV03 ;
cpx #$03 ;check sound-init VOICE 04
beq INITV04 ;
rts
INITV12 lda soundfix+$00,y ;check if new pulse to be set
and #$08 ;
bne NONEWPL ;
lda soundfix+$00,y ;yes, set new pulse
and #$c0 ;
sta pulsbyt1,x ;
INITV03
INITV04
NONEWPL lda soundfix+$01,y ;set vibrato-byte into fx01 & set effects (arp, etc)
sta fx01,x ;
lda soundfix+$02,y ;set vibdelay pultab-number into fx02
sta fx02,x ;
;lda soundfix+$01,y ;set gate-leng value
;and #$f0 ;
;lsr a ;
;lsr a ;
;lsr a ;
;lsr a ;
;sta gateleng,x ;
NONEWG1 lda soundfix+$03,y ;set effect-values into fx03
sta fx03,x ;
cpx #$03
beq NFORV04
ldy realnote,x ;Read realnote as index
lda frqtablo,y ;Low-frequency read <bit 07-00>
sta lofrqwrd,x ;
lda #$f8 ;hardware length endless <bit 07-03>
ora frqtabhi,y ;hi-frequency read <bit 02-00>
sta hifrqwrd,x ;HF set
jmp PAUSEX1
NFORV04 lda realnote,x
sta lofrqwrd,x
PAUSEX1 lda realleng,x
sta noteleng,x
rts
;INITV03 rts
FXPLAY1 lda noteinit,x
bne INTPLA1
jmp PLAYFXR
INTPLA1
jsr INTPLAYOS
FXPLA12 jsr CLEARZOOI
lda realleng,x
sec
sbc vibdelay,x
bcs REFIX01
lda #$00
sta fx01,x
beq EXITIN1
REFIX01 sta vibdelay,x
EXITIN1 jmp NOVIB01
PLAYFXR lda fx03,x ;amplitude routine
and #$7f ;maximum of $7f amplitude tabels
tay
lda amptabl,y
sta ssslo
lda amptabh,y
sta ssshi
jsr SHITAMP
GLIDE1 ldy gldspeed,x ;glide routine
beq NOGLD12
lda glddelay,x
cmp noteleng,x
bcc NOGLD12
ldy glddirec,x
bmi DOWNGL1
lda lofrqwrd,x
clc
adc gldspeed,x
sta lofrqwrd,x
ldy destnote,x
sec
sbc frqtablo,y
bcs FROTER1
jmp NOGLD01
DOWNGL1 lda lofrqwrd,x
sec
sbc gldspeed,x
sta lofrqwrd,x
ldy destnote,x
sec
sbc frqtablo,y
bcs NOGLD01
FROTER1 lda frqtablo,y
sta lofrqwrd,x
lda #$00
sta gldspeed,x
NOGLD01 jmp NOVIB01
NOGLD12
VIBRA01 lda fx01,x ;vibrato routine
and #$0f
beq NOVIB01
lda vibdelay,x
cmp noteleng,x
bcc NOVIB01
lda fx01,x
and #$0f
tay
lda vibtabl-1,y
sta ssslo
lda vibtabh-1,y
sta ssshi
jsr JSRVIB
HOGERVB
lda lofrqwrd,x
clc
adc (ssslo),y
bcc VIBNO01
clc
VIBNO01 sta lofrqwrd,x
iny
tya
sta vibindex,x
NOVIB01
PULSE1 cpx #$02
bcs NOPULS1
lda fx02,x ;PULSE ROUTINE
and #$0f
beq NOPULS1
tay
lda pultabl-1,y
sta ssslo
lda pultabh-1,y
sta ssshi
jsr JSRPUL
NOPULS1
SPACE01 lda fx01,x ;SPACE ROUTINE
and #$20
beq NOSPC01
lda noteleng,x
cmp #spacedl
bcs NOSPC01
lda #$00
sta spacespd,x
ldy realnote,x
lda spacecnt,x
and #$01
bne NORNOT1
lda spacecnt,x
lsr a
sta spacespd,x
NORNOT1 lda frqtablo,y
clc
adc spacespd,x
sta lofrqwrd,x
inc spacecnt,x
inc spacecnt,x
NOSPC01
ARPEG01 lda fx01,x ;ARP ROUTINE
and #$40
bne YESAR01
rts
YESAR01
ldy arpnumbo,x
lda arptablo,y
sta ssslo
lda arptabhi,y
sta ssshi
jmp ARPJSR
;---------------------------------------------------------------------------------------------------------------------------------
frqtablo db $ad,$4a,$ef,$9b,$4b,$fe,$b5,$73,$30,$f5,$bd,$87 ;1
db $56,$25,$f8,$cd,$a5,$7f,$5b,$3a,$19,$fb,$de,$c3 ;2
db $aa,$92,$7b,$66,$52,$3f,$2d,$1c,$0c,$fd,$ef,$e1 ;3
db $d4,$c9,$bd,$b3,$a9,$9f,$96,$8e,$86,$7e,$77,$70 ;4
db $6a,$64,$5e,$59,$54,$4f,$4a,$47,$42,$3e,$3b,$38 ;5
db $35,$31,$2e,$2c,$29,$27,$25,$23,$21,$1f,$1d,$1b ;6
db $1a,$19,$18,$16,$15,$14,$13,$12,$11,$10,$0f,$0e ;7
db $ff
frqtabhi db $06,$06,$05,$05,$05,$04,$04,$04,$04,$03,$03,$03 ;1
db $03,$03,$02,$02,$02,$02,$02,$02,$02,$01,$01,$01 ;2
db $01,$01,$01,$01,$01,$01,$01,$01,$01,$00,$00,$00 ;3
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 ;4
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 ;5
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 ;6
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 ;7
db $07
; lda ldx
seqtabel db <clearsfx,>clearsfx ; $00 $xx
db <medibad1,>medibad1 ; $01 $00
db <medibad2,>medibad2 ; $02 $01
db <medibad3,>medibad3 ; $03 $02
db <medibad4,>medibad4 ; $04 $03
db <notgood1,>notgood1 ; $05 $00
db <notgood2,>notgood2 ; $06 $01
db <notgood3,>notgood3 ; $07 $02
db <notgood4,>notgood4 ; $08 $03
db <betters1,>betters1 ; $09 $00
db <betters2,>betters2 ; $0a $01
db <betters3,>betters3 ; $0b $02
db <betters4,>betters4 ; $0c $03
db <bestbes1,>bestbes1 ; $0d $00
db <bestbes2,>bestbes2 ; $0e $01
db <bestbes3,>bestbes3 ; $0f $02
db <bestbes4,>bestbes4 ; $10 $03
db <victory1,>victory1 ; $11 $00
db <victory2,>victory2 ; $12 $01
db <victory3,>victory3 ; $13 $02
db <doomned1,>doomned1 ; $14 $00
db <doomned2,>doomned2 ; $15 $01
db <introdu1,>introdu1 ; $16 $00
db <introdu2,>introdu2 ; $17 $01
db <introdu3,>introdu3 ; $18 $02
db <introdu4,>introdu4 ; $19 $03
db <explosi1,>explosi1 ; $1a $02
db <explosi2,>explosi2 ; $1b $03
db <firewrxu,>firewrxu ; $1c $03
db <firewrxe,>firewrxe ; $1d $03
seqtabes db $00,$00 ; $00 $xx
db $02,$03 ; $01 $00
db $02,$03 ; $02 $01
db $02,$03 ; $03 $02
db $02,$03 ; $04 $03
db $02,$03 ; $05 $00
db $02,$03 ; $06 $01
db $02,$03 ; $07 $02
db $02,$03 ; $08 $03
db $02,$03 ; $09 $00
db $02,$03 ; $0a $01
db $02,$03 ; $0b $02
db $02,$03 ; $0c $03
db $02,$03 ; $0d $00
db $02,$03 ; $0e $01
db $02,$03 ; $0f $02
db $02,$03 ; $10 $03
db $03,$03 ; $11 $00
db $03,$03 ; $12 $01
db $03,$03 ; $13 $02
db $04,$04 ; $14 $00
db $04,$04 ; $15 $01
db $03,$03 ; $16 $00
db $03,$03 ; $17 $01
db $03,$03 ; $18 $02
db $03,$03 ; $19 $03
db $02,$02 ; $1a $02
db $02,$02 ; $1b $03
db $02,$02 ; $1c $03
db $02,$02 ; $1d $03
stptablo db <s00,<s01,<s02,<s03,<s04,<s05,<s06,<s07,<s08,<s09,<s0a,<s0b,<s0c,<s0d,<s0e,<s0f
db <s10,<s11,<s12,<s13,<s14,<s15,<s16,<s17,<s18,<s19,<s1a,<s1b,<s1c,<s1d,<s1e,<s1f
db <s20,<s21,<s22,<s23,<s24,<s25,<s26,<s27,<s28,<s29,<s2a,<s2b,<s2c,<s2d,<s2e,<s2f
db <s30,<s31,<s32,<s33,<s34,<s35
stptabhi db >s00,>s01,>s02,>s03,>s04,>s05,>s06,>s07,>s08,>s09,>s0a,>s0b,>s0c,>s0d,>s0e,>s0f
db >s10,>s11,>s12,>s13,>s14,>s15,>s16,>s17,>s18,>s19,>s1a,>s1b,>s1c,>s1d,>s1e,>s1f
db >s20,>s21,>s22,>s23,>s24,>s25,>s26,>s27,>s28,>s29,>s2a,>s2b,>s2c,>s2d,>s2e,>s2f
db >s30,>s31,>s32,>s33,>s34,>s35
amptabl db <am00,<am01,<am02,<am03,<am04,<am05,<am06,<am07,<am08,<am09,<am0a,<am0b,<am0c,<am0d
amptabh db >am00,>am01,>am02,>am03,>am04,>am05,>am06,>am07,>am08,>am09,>am0a,>am0b,>am0c,>am0d
vibtabl db <v01,<v02,<v03,<v04,<v05
vibtabh db >v01,>v02,>v03,>v04,>v05
pultabl db <p01,<p02,<p03,<p04,<p05,<p06,<p07
pultabh db >p01,>p02,>p03,>p05,>p05,>p06,>p07
arptablo db <a00,<a01,<a02,<a03,<a04,<a05,<a06,<a07,<a08,<a09,<a0a,<a0b,<a0c,<a0d,<a0e,<a0f
db <a10,<a11,<a12,<a13,<a14,<a15,<a16,<a17,<a18,<a19,<a1a,<a1b,<a1c
arptabhi db >a00,>a01,>a02,>a03,>a04,>a05,>a06,>a07,>a08,>a09,>a0a,>a0b,>a0c,>a0d,>a0e,>a0f
db >a10,>a11,>a12,>a13,>a14,>a15,>a16,>a17,>a18,>a19,>a1a,>a1b,>a1c
;---------------------------------------------------------------------------------------------------------------------------------
am00
db 9,8,7,6,5,5,4,4,3,3,2,$fe
am01
db 1,$fe
am02
db 6,5,4,4,3,3,3,2,$fe
am03
db 7,6,5,5,4,4,4,4,3,3,3,3,3,2,$fe
am04
db 2,2,1,$fe
am05
db 4,3,3,2,2,2,2,2,1,$fe
am06
db 4,4,3,3,3,2,$fe
am07
db 3,3,3,3,3,3,3,2,2,2,2,2,2,1,$fe
am08
db 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,$fe
am09
db 1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
db 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3
db 3,3,3,3,3,3,3,3,2,$fe
am0a
db 7,6,5,4,4,3,3,3,2,$fe
am0b
db 6,5,5,5,4,4,4,4,3,3,3,3,3,3,2,$fe
am0c
db 15,15,15,14,14,14,13,13,13,12,12,12,11,11,11,10,10,10,9,9,9
db 8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,5,5,5,5
db 5,5,5,5,4,4,4,4,4,4,3,3,3,3,3,2,2,2,2,1,$fe
am0d
db 15,12,9,8,7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2,1,1,1
db 2,2,2,3,3,3,2,2,2,1,1,1,1,1,1,0,$fe
;---------------------------------------------------------------------------------------------------------------------------------
v01
db $02,$02,$02,$02,$fe,$fe,$fe,$fe
db $fe,$fe,$fe,$fe,$02,$02,$02,$02
db $80,0
v02
db $05,$05,$05,$05,$fb,$fb,$fb,$fb
db $fb,$fb,$fb,$fb,$05,$05,$05,$05
db $80,0
v03
db $01,$00,$01,$00,$ff,$00,$ff,$00
db $ff,$00,$ff,$00,$01,$00,$01,$00
db $80,0
v04
db $07,$07,$07,$f9,$f9,$f9,$f9,$f9,$f9,$07,$07,$07
db $80,0
v05
db $01,$01,$01,$01,$ff,$ff,$ff,$ff
db $ff,$ff,$ff,$ff,$01,$01,$01,$01
db $80,0
;---------------------------------------------------------------------------------------------------------------------------------
p01
db $00,$00,$00,$00,$00,$00,$40,$40,$40,$40,$40,$40
db $80,$80,$80,$80,$80,$80,$c0,$c0,$c0,$c0,$c0,$c0
db $80,$80,$80,$80,$80,$80,$40,$40,$40,$40,$40,$40
db $ff,$00
p02
db $40,$40,$40,$40,$80,$80,$80,$80
db $c0,$c0,$c0,$c0,$80,$80,$80,$80
db $ff,$00
p03
db $40,$40,$40,$40,$40,$40,$40,$40
db $80,$80,$80,$80,$80,$80,$80,$80
db $ff,$00
p04
db $80,$80,$80,$40,$40,$40,$00,$00,$40,$40,$40,$80,$80,$80,$40,$40
db $80,$80,$80,$80,$80,$80,$80,$80,$c0,$c0,$c0,$c0,$c0,$c0,$c0,$c0
db $80,$80,$80,$80,$80,$80,$80,$80,$40,$40,$40,$40,$40,$40,$40,$40
db $ff,$00
p05
db $80,$80,$80,$80,$80,$80,$80,$80
db $40,$40,$40,$40,$40,$40,$40,$40
db $00,$00,$00,$00,$00,$00,$00,$00
db $40,$40,$40,$40,$40,$40,$40,$40
db $ff,$00
p06
db $80,$80,$40,$40,$40,$40,$40,$40,$40,$40
db $80,$80,$80,$80,$80,$80,$c0,$c0,$c0,$c0,$c0,$c0
db $ff,$0a
p07
db $80,$40,$00,$40,$00
db $40,$40,$40,$40,$40,$40,$40,$40
db $80,$80,$80,$80,$80,$80,$80,$80
db $ff,$05
;---------------------------------------------------------------------------------------------------------------------------------
a00 db $20,$00,$03,$07,12,$ff
a01 db $20,$00,$04,$07,12,$ff
a02 db $20,$00,$05,$08,12,$ff
a03 db $20,$00,$05,$09,12,$ff
a04 db $20,$00,$03,$08,12,$ff
a05 db $20,$00,$04,$09,12,$ff
a06 db $00,$9c,$94,$90,$00,$fe
a07 db $00,$00,$fe
a08 db $50,8,7,6,5,4,3,2,1,0,$fe
a09 db $20,$00,$05,$07,12,$ff
a0a db $00,$98,$8c,$80,$00,$fe
a0b db $00,4,0,$fe
a0c db $00,$9c,$94,$90,$8c,$88,0,$fe
a0d db $30,0,5,8,$ff
a0e db $30,0,4,9,$ff
a0f db $30,0,4,7,$ff
a10 db $10,12,7,3,0,$ff
a11 db $10,12,7,4,0,$ff
a12 db $10,12,8,5,0,$ff
a13 db $10,12,9,5,0,$ff
a14 db $10,12,8,3,0,$ff
a15 db $10,12,9,4,0,$ff
a16 db $10,12,7,5,0,$ff
a17 db $10,12,10,5,0,$ff
a18 db $10,10,9,5,0,$ff
a19 db $00,$a1,$9f,$9e,$00,$fe
a1a db $70,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,$fe
a1b db $00
db 24,21,19,18,21,18,16,15,18,15,13,12,15,12,10,9,12,9,7,6
db 9,6,4,3,6,3,1,0,$fe
a1c
db $00,12,13,14,15,14,13,12,11,10,9,9,8,8,9,9,10,10,11,11,12,12
db 13,13,14,$fe
;---------------------------------------------------------------------------------------------------------------------------------
soundfix
;LeadNrm (1)
db $00,$01,$41,$00 ;C0
;LeadArp (2)
db $00,$40,$01,$03 ;C1
;BassArp (3)
db $00,$42,$40,$00 ;C2
;Sissers (4)
db $00,$40,$00,$01 ;C3
;LeadNrm (1)
db $80,$03,$42,$02 ;C4
;FillNrm (1)
db $00,$01,$41,$02 ;C5
;LeadSPC (1)
db $80,$23,$42,$02 ;C6
;LeadSOF (1)
db $80,$03,$42,$04 ;C7
;LeadFLT (1)
db $40,$03,$43,$04 ;C8
;LEADFLT (1)
db $40,$03,$43,$05 ;C9
;REALEAD (1)
db $00,$03,$44,$06 ;CA
;FIDDLES (1)
db $80,$03,$40,$01 ;CB
;BassVib (3)
db $00,$44,$40,$00 ;CC
;ARPPULS (1)
db $00,$40,$02,$03 ;CD
;LEADARP (1)
db $80,$40,$02,$02 ;CE
;leadarp (1)
db $80,$40,$00,$01 ;CF
;DOOMNAR (1)
db $80,$40,$55,$08 ;D0
;doomned (1)
db $80,$40,$46,$01 ;D1
;DOOMERS (1)
db $80,$03,$46,$07 ;D2
;DOOMNAR (1)
db $80,$40,$55,$09 ;D3
;SISSERS (4)
db $00,$00,$00,$04 ;D4
;SISDrum (4)
db $00,$00,$00,$0a ;D5
;LEADFLT (1)
db $80,$05,$47,$0b ;D6
;LEADARP (1)
db $80,$45,$07,$0b ;D7
;LEADSPC (1)
db $80,$25,$47,$0b ;D8
;leadFLT (1)
db $80,$05,$47,$04 ;D9
;EXPLOSI (4)
db $00,$40,$00,$0c ;DA
;FIREBAM (4)
db $00,$40,$00,$0d ;DB
;---------------------------------------------------------------------------------------------------------------------------------
medibad1 db $85,$0a
db $fe
medibad2 db $85,$0b
db $fe
medibad3 db $85,$0c
db $fe
medibad4 db $80,$0d
db $fe
s0a db $c4,$90,$1f,$1b,$20,$1f
db $8c,$1b,$84,$1d,$86,$1a,$18,$84,$16
db $94,$18,$82,$1d,$1d,$84,$e1
db $ff
s0b
db $c1,$90,$60,$18
db $61,$14
db $c1,$19
db $60,$18
db $8c,$61,$14
db $84,$65
db $86,$60,$13
db $61,$11
db $84,$0f
db $94,$69,$11,$82,$69,$69,$84,$69,$11,$e1
db $ff
s0c
db $c2,$90,$66,$0c
db $90,$08
db $0d
db $0c
db $88,$08
db $08
db $86,$07
db $05
db $84,$03
db $05,$67,$00,$66,$03,$67,$00,$84,$66,$05,$82,$05,$05,$84,$05,$e1
db $ff
s0d
db $c3,$90,$68,$00
db $c3
db $c3
db $c3
db $c3,$88
db $c3
db $c3,$86
db $c3
db $c3,$84
db $c3,$88
db $c3
db $c3,$85,$00,$e1
db $ff
notgood1 db $81,$0e
db $fe
notgood2 db $81,$0f
db $fe
notgood3 db $81,$10
db $fe
notgood4 db $81,$11
db $fe
s0e
db $c4,$88,$24
db $84,$29
db $88,$25
db $84,$2c
db $88,$2a
db $84,$31
db $8c,$30
db $84,$2f
db $2b
db $26
db $2e
db $2a
db $27
db $8c,$29
db $84,$1d,$22,$24,$86,$29,$e1
db $ff
s0f
db $e5
db $c7,$88,$24
db $84,$29
db $88,$25
db $84,$2c
db $88,$2a
db $84,$31
db $8c,$30
db $84,$2f
db $2b
db $26
db $2e
db $2a
db $27
db $87,$29
db $c4,$84,$18,$1d,$1d,$85,$21,$e1
db $ff
s10
db $c2,$88,$66,$0c
db $84,$0c
db $0d,$67
db $66
db $88,$0f
db $84,$0f
db $8c,$11
db $88,$0b
db $84,$0e
db $0d,$67
db $66,$12
db $8c,$11
db $84,$05,$0a,$03,$84,$05,$e1
db $ff
s11
db $c3,$88,$68,$00
db $84,0
db $88,0
db $84,0
db $88,0
db $84,0
db $8c,0
db $88,0
db $84,0
db $88,0
db $84,0
db $8c,0
db $84,$68,$00,$00,$00,$87,$00,$e1
db $ff
betters1 db $81,$12
db $fe
betters2 db $81,$13
db $fe
betters3 db $81,$14
db $fe
betters4 db $80,$15
db $fe
s12
db $c4,$84,$18
db $1a
db $1b
db $1f
db $c4,$88,$1d
db $84,$1a
db $16
db $18
db $1a
db $1b
db $1f
db $88,$22
db $24
db $84,$21
db $1d
db $18
db $1a
db $1b
db $82,$1d
db $1b
db $84,$1a
db $16
db $18
db $18
db $16
db $18,$e1
db $ff
s13
db $cd,$90,$70,$18
db $71,$16
db $70,$18
db $88,$71,$16
db $70,$18
db $90,$73
db $88,$16
db $71
db $c1,$84,$76,$18
db $76
db $c1,$16
db $18,$e1
db $ff
s14
db $c2,$88,$66,$0c
db $0c
db $0a
db $0a
db $0c
db $0c
db $0a
db $0c
db $11
db $11
db $0f
db $0a
db $84,$0c
db $0c
db $0a
db $0c,$e1
db $ff
s15
db $c3,$90,$68,$00
db $88,$00
db $00
db $90,$00
db $88,$00
db $00
db $90,$00
db $88,$00
db $00
db $84,$00
db $00
db $00
db $00,$e1
db $ff
bestbes1 db $8d,$16
db $fe
bestbes2 db $8d,$17
db $fe