-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
PACKRAT.SRC
1070 lines (998 loc) · 14.8 KB
/
PACKRAT.SRC
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
;��������������������������������������
;� �� � � �� �� � � � ��� �� �
;� � � � � � � � � � � � � � � �
;� ���� � � � �� � � � �� �� �
;� � � � � � � � � � � � � � �
;� � � � �� � � � � ��� � � �
;� �
;� � LAST UPDATED: 11/1/88� �
;��������������������������������������
ORG 50000
LOAD 49152
KEY 4 '|\A|M|MO|M'
KEY 7 '|\SPACKRAT|M'
CALL TOP
LOOP:LD A,0F7H
IN A,(254)
AND 1
JP Z,MIS
HALT
MIS:LD BC,600
PL1:DEC BC
LD A,B
OR C
JP NZ,PL1
HOLD:LD A,0F7H
IN A,(254)
AND 2
JP Z,HOLD
CALL SPLAT
LD A,07FH
IN A,(254)
AND 1
JP NZ,LOOP
PUSH BC
LD BC,65533
LD A,7
OUT (C),A
LD BC,49149
LD A,63
OUT (C),A
POP BC
RET
TOP:XOR A
OUT (254),A
LD HL,TUNE3A
LD (DATAA+1),HL
LD HL,TUNE3B
LD (DATAB+1),HL
LD HL,TUNE3C
LD (DATAC+1),HL
LD A,1
LD (CHANA+1),A
LD (CHANB+1),A
LD (CHANC+1),A
LD (EFO+1),A
RET
SPLAT:
LD A,2
OUT (254),A
CHANA:LD A,000
DEC A
LD (CHANA+1),A
JP NZ,EFO
DATAA:LD HL,000
DATR:LD A,(HL)
INC HL
AND A
JR Z,TOP
CP 1
JR NZ,NEA1
AREM:LD A,000
DEC A
JR Z,DATR
LD (AREM+1),A
LD HL,(ARST)
JP DATR
NEA1:CP 2
JR NZ,NEA2
LD A,(HL)
INC HL
LD (AREM+1),A
LD (ARST),HL
JP DATR
NEA2:CP 3
JR NZ,NEA3
LD BC,65533
LD A,8
OUT (C),A
LD BC,49149
LD A,(HL)
OUT (C),A
LD (AENV+1),A
LD (AVOL),A
LD (A%ENV%),A
INC HL
LD A,(HL)
LD (AENA+1),A
LD (A%ENA%+1),A
INC HL
LD A,(HL)
LD (AEND+1),A
LD (A%END%+1),A
LD (ATAGE+1),A
INC HL
LD A,(HL)
LD (AENS+1),A
INC HL
LD A,(HL)
LD (GATE+1),A
INC HL
JP DATR
NEA3:CP 4
JR NZ,NEA4
XOR A
LD (AEINI+1),A
JP DATR
NEA4:CP 5
JR NZ,NEA5
LD A,1
LD (AEINI+1),A
JP DATR
NEA5:CP 6
JR NZ,NEA6
LD A,(HL)
LD (VIB+1),A
LD (DELAY+1),A
INC HL
JP DATR
NEA6:CP 9
JP NZ,NEA7
LD A,(HL)
LD (NEA9+1),A
INC HL
JP DATR
NEA7:CP 10
JP NZ,NEA8
LD E,(HL)
INC HL
LD D,(HL)
INC HL
LD (GAST),HL
PUSH DE
POP HL
JP DATR
NEA8:CP 11
JP NZ,NEA10
LD HL,(GAST)
JP DATR
NEA10:CP 12
JP NZ,NEA9
LD A,(HL)
INC HL
LD (SLIOF+1),A
LD A,(HL)
INC HL
LD (SLAD+1),A
JP DATR
NEA9:ADD 000
LD (ANOTE),A
LD E,A
LD A,(HL)
LD (CHANA+1),A
INC HL
LD (DATAA+1),HL
LD D,0
LD HL,NOTES
ADD HL,DE
ADD HL,DE
LD D,(HL)
INC HL
LD E,(HL)
LD (NFR),DE
EX DE,HL
SLIOF:LD A,000
LD (CHEN+1),A
LD E,A
LD D,0
ADD HL,DE
LD (OFR),HL
LD BC,65533
XOR A
OUT (C),A
LD BC,49149
LD A,L
OUT (C),A
LD BC,65533
LD A,1
OUT (C),A
LD BC,49149
LD A,H
LD (APITCH+1),A
OUT (C),A
AEINI:LD A,000
DEC A
JR NZ,EFO
LD A,(A%ENV%)
LD (AVOL),A
LD (AENV+1),A
LD A,(A%END%+1)
LD (ATAGE+1),A
DELAY:LD A,000
LD (VIB+1),A
EFO:LD A,001
DEC A
JP Z,CHANB
LD (EFO+1),A
DEC A
JP NZ,CHANB
LD BC,65533
LD A,7
OUT (C),A
LD BC,49149
LD A,(GTST)
OUT (C),A
CHANB:LD A,000
DEC A
LD (CHANB+1),A
JP NZ,CHANC
DATAB:LD HL,000
DBTR:LD A,(HL)
INC HL
AND A
JP Z,TOP
CP 1
JR NZ,NEB1
BREM:LD A,000
DEC A
JR Z,DBTR
LD (BREM+1),A
LD HL,(BRST)
JP DBTR
NEB1:CP 2
JR NZ,NEB2
LD A,(HL)
INC HL
LD (BREM+1),A
LD (BRST),HL
JP DBTR
NEB2:CP 3
JR NZ,NEB3
LD BC,65533
LD A,9
OUT (C),A
LD BC,49149
LD A,(HL)
OUT (C),A
LD (BENV+1),A
LD (BVOL),A
LD (B%ENV%),A
INC HL
LD A,(HL)
LD (BENA+1),A
LD (B%ENA%+1),A
INC HL
LD A,(HL)
LD (BEND+1),A
LD (B%END%+1),A
INC HL
LD A,(HL)
LD (BENS+1),A
INC HL
JP DBTR
NEB3:CP 4
JR NZ,NEB4
XOR A
LD (BEINI+1),A
JP DBTR
NEB4:CP 5
JR NZ,NEB5
LD A,1
LD (BEINI+1),A
JP DBTR
NEB5:CP 7
JR NZ,NEB6
LD BC,65533
LD A,7
OUT (C),A
LD BC,49149
LD A,(HL)
LD (GTST),A
INC HL
OUT (C),A
LD BC,65533
LD A,6
OUT (C),A
LD BC,49149
LD A,(HL)
INC HL
OUT (C),A
JP DBTR
NEB6:CP 8
JP NZ,NEB7
LD A,(HL)
INC HL
INC A
LD (EFO+1),A
LD (EFOI),A
JP DBTR
NEB7:CP 9
JP NZ,NEB8
LD A,(HL)
LD (NEB10+1),A
INC HL
JP DBTR
NEB8:CP 10
JP NZ,NEB9
LD E,(HL)
INC HL
LD D,(HL)
INC HL
LD (GBST),HL
PUSH DE
POP HL
JP DBTR
NEB9:CP 11
JP NZ,NEB10
LD HL,(GBST)
JP DBTR
NEB10:ADD 000
LD E,A
LD A,(HL)
LD (CHANB+1),A
INC HL
LD (DATAB+1),HL
LD D,0
LD HL,NOTES
ADD HL,DE
ADD HL,DE
LD BC,65533
LD A,3
OUT (C),A
LD BC,49149
LD A,(HL)
OUT (C),A
LD BC,65533
LD A,2
OUT (C),A
LD BC,49149
INC HL
LD A,(HL)
OUT (C),A
LD A,(EFOI)
LD (EFO+1),A
DEC A
JP Z,BEINI
LD BC,65533
LD A,7
OUT (C),A
LD A,(GTST)
SUB 32
LD BC,49149
OUT (C),A
BEINI:LD A,000
DEC A
JR NZ,CHANC
LD A,(B%ENV%)
LD (BVOL),A
LD (BENV+1),A
CHANC:LD A,000
DEC A
LD (CHANC+1),A
JP NZ,AENV
DATAC:LD HL,000
DCTR:LD A,(HL)
INC HL
AND A
JP Z,TOP
CP 1
JR NZ,NEC1
CREM:LD A,000
DEC A
JR Z,DCTR
LD (CREM+1),A
LD HL,(CRST)
JP DCTR
NEC1:CP 2
JR NZ,NEC2
LD A,(HL)
INC HL
LD (CREM+1),A
LD (CRST),HL
JP DCTR
NEC2:CP 3
JR NZ,NEC3
LD BC,65533
LD A,10
OUT (C),A
LD BC,49149
LD A,(HL)
OUT (C),A
LD (CENV+1),A
LD (CVOL),A
LD (C%ENV%),A
INC HL
LD A,(HL)
LD (CENA+1),A
LD (C%ENA%+1),A
INC HL
LD A,(HL)
LD (CEND+1),A
LD (C%END%+1),A
INC HL
LD A,(HL)
LD (CENS+1),A
INC HL
JP DCTR
NEC3:CP 4
JR NZ,NEC4
XOR A
LD (CEINI+1),A
JP DCTR
NEC4:CP 5
JR NZ,NEC5
LD A,1
LD (CEINI+1),A
JP DCTR
NEC5:CP 9
JP NZ,NEC6
LD A,(HL)
LD (NEC8+1),A
INC HL
JP DCTR
NEC6:CP 10
JP NZ,NEC7
LD E,(HL)
INC HL
LD D,(HL)
INC HL
LD (GCST),HL
PUSH DE
POP HL
JP DCTR
NEC7:CP 11
JP NZ,NEC8
LD HL,(GCST)
JP DCTR
NEC8:ADD 000
LD E,A
LD A,(HL)
LD (CHANC+1),A
INC HL
LD (DATAC+1),HL
LD D,0
LD HL,NOTES
ADD HL,DE
ADD HL,DE
LD BC,65533
LD A,5
OUT (C),A
LD BC,49149
LD A,(HL)
OUT (C),A
LD BC,65533
LD A,4
OUT (C),A
LD BC,49149
INC HL
LD A,(HL)
OUT (C),A
CEINI:LD A,000
DEC A
JR NZ,AENV
LD A,(C%ENV%)
LD (CVOL),A
LD (CENV+1),A
AENV:LD A,000
CP 13
JP Z,AEND
AENA:LD A,000
DEC A
LD (AENA+1),A
JR NZ,GATE
A%ENA%:LD A,000
LD (AENA+1),A
LD BC,65533
LD A,8
OUT (C),A
LD BC,49149
LD A,(AVOL)
INC A
LD (AVOL),A
LD (AENV+1),A
OUT (C),A
JP GATE
AEND:LD A,000
DEC A
LD (AEND+1),A
JR NZ,GATE
A%END%:LD A,000
LD (AEND+1),A
ATAGE:LD A,000
LD (AEND+1),A
LD BC,65533
LD A,8
OUT (C),A
LD BC,49149
LD A,(AVOL)
DEC A
OUT (C),A
AENS:CP 000
JP Z,GATE
LD (AVOL),A
GATE:LD A,000
AND A
JR Z,BENV
LD B,A
LD A,(CHANA+1)
CP B
JR NZ,BENV
LD A,13
LD (AENV+1),A
LD A,1
LD (AEND+1),A
LD (ATAGE+1),A
BENV:LD A,000
CP 13
JP Z,BEND
BENA:LD A,000
DEC A
LD (BENA+1),A
JP NZ,CENV
B%ENA%:LD A,000
LD (BENA+1),A
LD BC,65533
LD A,9
OUT (C),A
LD BC,49149
LD A,(BVOL)
INC A
LD (BVOL),A
LD (BENV+1),A
OUT (C),A
JP CENV
BEND:LD A,000
DEC A
LD (BEND+1),A
JP NZ,CENV
B%END%:LD A,000
LD (BEND+1),A
LD BC,65533
LD A,9
OUT (C),A
LD BC,49149
LD A,(BVOL)
DEC A
OUT (C),A
BENS:CP 000
JR Z,CENV
LD (BVOL),A
CENV:LD A,000
CP 13
JP Z,CEND
CENA:LD A,000
DEC A
LD (CENA+1),A
JP NZ,VIB
C%ENA%:LD A,000
LD (CENA+1),A
LD BC,65533
LD A,10
OUT (C),A
LD BC,49149
LD A,(CVOL)
INC A
OUT (C),A
LD (CVOL),A
LD (CENV+1),A
JP VIB
CEND:LD A,000
DEC A
LD (CEND+1),A
JP NZ,VIB
C%END%:LD A,000
LD (CEND+1),A
LD BC,65533
LD A,10
OUT (C),A
LD BC,49149
LD A,(CVOL)
DEC A
OUT (C),A
CENS:CP 000
JR Z,VIB
LD (CVOL),A
VIB:LD A,000
DEC A
LD (VIB+1),A
JR NZ,CHEN
INC A
LD (VIB+1),A
LD HL,TABLE
BIV1:LD A,000
INC A
AND 7
LD (BIV1+1),A
LD E,A
LD D,0
ADD HL,DE
LD A,(HL)
APITCH:ADD 000
LD D,A
LD BC,49149
LD A,D
OUT (C),A
CHEN:LD A,000
CP 0
JP Z,MISLID
SLAD:LD E,000
LD D,0
LD HL,(OFR)
AND A
SBC HL,DE
LD (OFR),HL
LD BC,65533
XOR A
OUT (C),A
LD BC,49149
LD A,L
OUT (C),A
LD BC,65533
LD A,1
OUT (C),A
LD BC,49149
LD A,H
LD (APITCH+1),A
OUT (C),A
AND A
LD DE,(NFR)
SBC HL,DE
LD A,H
OR L
JP NZ,MISLID
XOR A
LD (CHEN+1),A
LD (SLIOF+1),A
MISLID:XOR A
OUT (254),A
RET
TABLE:DB 3,1,0-1,0-3,0-3,0-1,1,3
AVOL:DB 0
BVOL:DB 0
CVOL:DB 0
ARST:DW 0
BRST:DW 0
CRST:DW 0
A%ENV%:DB 0
B%ENV%:DB 0
C%ENV%:DB 0
GTST:DB 0
EFOI:DB 0
GAST:DW 0
GBST:DW 0
GCST:DW 0
ANOTE:DB 0
PORTO:DB 0
NFR:DW 0
OFR:DW 0
NOTES:EQU $-16
DBH 0EEE0E180D4D0C8E0BDA
DBH 0B2F0A8F09F7096808E1
DBH 086107E90777070C06A7
DBH 064705ED0598054704FC
DBH 04B40470043103F403BC
DBH 03860353032402F602CC
DBH 02A4027E025A02380218
DBH 01FA01DE01C301AA0192
DBH 017B01660152013F012D
DBH 011C010C00FD00EF00E1
DBH 00D500C900BE00B300A9
DBH 009F0096008E0086007F
DBH 00770071006A0064005F
DBH 005900540050004B0047
DBH 0043003F003C00380035
DBH 0032002F002D002A0028
DBH 0026002400220020001E
DBH 001C001B001900180016
DBH 00150014001300120011
DBH 00100010001000100010
STOP:EQU 0
NEXT:EQU 1
FOR:EQU 2
ADSR:EQU 3
EOF:EQU 4
EON:EQU 5
VIBRA:EQU 6 ;A ONLY
ONOI:EQU 7 ;B ONLY
EFFECT:EQU 8 ;B ONLY
TRANS:EQU 9
GOSUB:EQU 10
RETURN:EQU 11
SLIDE:EQU 12
;______________________________________
TUNE1A:DB VIBRA,0,TRANS,12
DB ADSR,6,1,0,1,5,EON
DB GOSUB
DW MAINSEQ
DB 70,6,73,12,SLIDE,0,0
DB 75,6,73,12
DB 71,12,70,12,71,12,70,12
DB 68,18,66,12,68,6,66,6
DB 70,6,66,18,61,24,EOF
DB 61,24,EON
DB 59,18,61,6,64,12,66,12
DB 68,24,SLIDE,10,1,71,24
DB SLIDE,0,0,70,18,70,6
DB 72,6,70,18,SLIDE,10,1
DB 74,24,EOF,74,24,EON
DB TRANS,253
DB FOR,2
DB GOSUB
DW MAINSEQ
DB 77,6,NEXT
DB ADSR,12,1,4,7,0,EON
DB TRANS,0
DB GOSUB
DW MAINSEQ
DB 71,6,TRANS,244
DB SLIDE,7,1,73,21,SLIDE
DB 0,0,75,7,73,14,71,14
DB SLIDE,5,1,70,21,SLIDE
DB 0,0,71,7,70,14,68,14
DB SLIDE,5,1,66,21,SLIDE
DB 0,0,68,7,70,14,66,14
DB SLIDE,7,1
DB 61,28,EOF,61,28,EON
DB 62,21,SLIDE,0,0
DB 64,7,67,14,69,14
DB 71,28,SLIDE,7,1,74,28
DB SLIDE,0,0,73,21,73,7
DB 75,14,73,14,SLIDE,10,1
DB 77,28,EOF,77,28,EON
DB FOR,2
DB GOSUB
DW MAINSEQ
DB TRANS,0,EOF,71,6,EON
DB NEXT
DB STOP
;______________________________________
TUNE1B:DB ADSR,0,0,0,0,EOF
DB ONOI,60,15,EFFECT,1
DB 50,0,50,128,EON
DB TRANS,0
DB ADSR,12,1,5,0,ONOI,56,5
DB 30,24,29,24,27,24,25,24
DB 23,24,22,24,20,18,20,6
DB 18,12,17,12,16,24,20,24
DB 23,24,28,18,28,6,27,24
DB 24,24,22,24,26,24
DB TRANS,253,FOR,2,GOSUB
DW BASS
DB NEXT
DB TRANS,0,GOSUB
DW BASS
DB 30,28,29,28,27,28,26,28
DB 25,28,24,28,23,28,22,28
DB 21,28,33,28,21,28,28,28
DB FOR,2
DB 13,14,20,14,25,14,20,14
DB NEXT
DB ADSR,12,1,3,0
DB GOSUB
DW BASS
DB 30,24,29,24,27,24,25,24
DB 23,24,22,24,20,18,20,6
DB 18,12,18,12,19,24,23,24
DB 26,24,31,18,31,6,30,24
DB 27,24,25,48
DB STOP
;______________________________________
TUNE1C:DB ADSR,0,0,0,0,EON
DB 50,0,50,0,50,0
DB ADSR,12,1,3,0
DB FOR,2
DB TRANS,9,GOSUB
DW MAJOR
DB TRANS,4,GOSUB
DW MAJOR
DB TRANS,6,GOSUB
DW MINOR
DB TRANS,1,GOSUB
DW MINOR
DB TRANS,2,GOSUB
DW MAJOR
DB TRANS,253,GOSUB
DW MAJOR
DB TRANS,2,GOSUB
DW MAJOR
DB TRANS,9,GOSUB
DW MAJOR
DB TRANS,10,GOSUB
DW MAJOR
DB TRANS,10,GOSUB
DW MAJOR
DB TRANS,10,GOSUB
DW MAJOR
DB TRANS,10,GOSUB
DW MAJOR
DB TRANS,2,GOSUB
DW MAJOR
DB TRANS,2,GOSUB
DW MAJOR
DB TRANS,4,GOSUB
DW MAJOR
DB TRANS,4,GOSUB
DW MAJOR
DB NEXT
DB TRANS,12,GOSUB
DW MAJOR2
DB TRANS,7,GOSUB
DW MAJOR2
DB TRANS,9,GOSUB
DW MINOR2
DB TRANS,4,GOSUB
DW MINOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,0,GOSUB
DW MAJOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,12,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,7,GOSUB
DW MAJOR2
DB TRANS,7,GOSUB
DW MAJOR2
DB ADSR,11,0,0,0,TRANS,12
DB 58,4,61,4,66,4,70,4
DB 58,4,61,4,66,4
DB 65,4,66,4,70,4,73,4
DB 65,4,66,4,70,4
DB 58,4,63,4,66,4,70,4
DB 58,4,63,4,66,4
DB 62,4,66,4,70,4,74,4
DB 62,4,66,4,70,4
DB 61,4,66,4,70,4,73,4
DB 61,4,66,4,70,4
DB 60,4,63,4,66,4,70,4
DB 60,4,63,4,66,4
DB 59,4,63,4,66,4,70,4
DB 59,4,63,4,66,4
DB 58,4,61,4,66,4,70,4
DB 58,4,61,4,66,4
DB FOR,4
DB 59,4,62,4,67,4,71,4
DB 59,4,62,4,67,4,NEXT
DB FOR,4
DB 59,4,63,4,66,4,71,4
DB 59,4,63,4,66,4,NEXT
DB ADSR,12,1,3,0
DB TRANS,12,GOSUB
DW MAJOR2
DB TRANS,7,GOSUB
DW MAJOR2
DB TRANS,9,GOSUB
DW MINOR2
DB TRANS,4,GOSUB
DW MINOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,0,GOSUB
DW MAJOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,12,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,13,GOSUB
DW MAJOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,5,GOSUB
DW MAJOR2
DB TRANS,7,GOSUB
DW MAJOR2
DB TRANS,7,GOSUB
DW MAJOR2
DB ADSR,0,0,0,0,EON
DB 50,0,50,128
DB STOP
;______________________________________
MAINSEQ:DB SLIDE,7,1,73,18,SLIDE
DB 0,0,75,6,73,12,71,12
DB SLIDE,5,1,70,18,SLIDE
DB 0,0,71,6,70,12,68,12
DB SLIDE,5,1,66,18,SLIDE
DB 0,0,68,6,70,12,66,12
DB SLIDE,7,1
DB 61,24,EOF,61,24,EON
DB 62,18,SLIDE,0,0
DB 64,6,67,12,69,12
DB 71,24,SLIDE,7,1,74,24
DB SLIDE,0,0,73,18,73,6
DB 75,12,73,12,SLIDE,10,1
DB 77,24,EOF,77,18,EON
DB RETURN
;______________________________________
BASS:DB 30,24,29,24,27,24,25,24
DB 23,24,22,24,20,18,20,6
DB 18,12,18,12,19,24,23,24
DB 26,24,31,18,31,6,30,24
DB 27,24,25,24,29,24,RETURN
;______________________________________
MAJOR:DB 54,2,EOF,58,2,61,2
DB 54,2,58,2,61,2
DB 54,2,58,2,61,2
DB 54,2,58,2,61,2
DB EON,RETURN
;______________________________________
MINOR:DB 54,2,EOF,57,2,61,2
DB 54,2,57,2,61,2
DB 54,2,57,2,61,2
DB 54,2,57,2,61,2
DB EON,RETURN
;______________________________________
MAJOR2:DB 61,2,58,2,54,2
DB 58,2,54,2,49,2,EOF
DB 54,2,49,2,46,2
DB 49,2,46,2,42,2
DB EON,RETURN
;______________________________________
MINOR2:DB 61,2,57,2,54,2
DB 57,2,54,2,49,2,EOF
DB 54,2,49,2,45,2
DB 49,2,45,2,42,2
DB EON,RETURN
;======================================
TUNE2A:DB ADSR,12,1,1,10,0,EON
DB TRANS,0,VIBRA,0
DB 49,10,50,10,53,10,55,10