-
Notifications
You must be signed in to change notification settings - Fork 0
/
heavy.asm
3083 lines (3045 loc) · 62.4 KB
/
heavy.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
output "heavy.bin"
ORG $6000
BORDER_COL: EQU $0
; *****************************************************************************
; * Phaser1 Engine, With Digital Drum Samples
; *
; * Original code by Shiru - http://shiru.untergrund.net/
; * Modified by Chris Cowley
; *
; * Produced by Beepola v1.08.01
; ******************************************************************************
START:
LD HL,MUSICDATA ; <- Pointer to Music Data. Change
; this to play a different song
LD A,(HL) ; Get the loop start pointer
LD (PATTERN_LOOP_BEGIN),A
INC HL
LD A,(HL) ; Get the song end pointer
LD (PATTERN_LOOP_END),A
INC HL
LD E,(HL)
INC HL
LD D,(HL)
INC HL
LD (INSTRUM_TBL),HL
LD (CURRENT_INST),HL
ADD HL,DE
LD (PATTERN_ADDR),HL
XOR A
LD (PATTERN_PTR),A ; Set the pattern pointer to zero
LD H,A
LD L,A
LD (NOTE_PTR),HL ; Set the note offset (within this pattern) to 0
PLAYER:
DI
PUSH IY
LD A,BORDER_COL
LD H,$00
LD L,A
LD (CNT_1A),HL
LD (CNT_1B),HL
LD (DIV_1A),HL
LD (DIV_1B),HL
LD (CNT_2),HL
LD (DIV_2),HL
LD (OUT_1),A
LD (OUT_2),A
JR MAIN_LOOP
; ********************************************************************************************************
; * NEXT_PATTERN
; *
; * Select the next pattern in sequence (and handle looping if we've reached PATTERN_LOOP_END
; * Execution falls through to PLAYNOTE to play the first note from our next pattern
; ********************************************************************************************************
NEXT_PATTERN:
LD A,(PATTERN_PTR)
INC A
INC A
DEFB $FE ; CP n
PATTERN_LOOP_END: DEFB 0
JR NZ,NO_PATTERN_LOOP
; Handle Pattern Looping at and of song
DEFB $3E ; LD A,n
PATTERN_LOOP_BEGIN: DEFB 0
NO_PATTERN_LOOP: LD (PATTERN_PTR),A
LD HL,$0000
LD (NOTE_PTR),HL ; Start of pattern (NOTE_PTR = 0)
MAIN_LOOP:
LD IYL,0 ; Set channel = 0
READ_LOOP:
LD HL,(PATTERN_ADDR)
LD A,(PATTERN_PTR)
LD E,A
LD D,0
ADD HL,DE
LD E,(HL)
INC HL
LD D,(HL) ; Now DE = Start of Pattern data
LD HL,(NOTE_PTR)
INC HL ; Increment the note pointer and...
LD (NOTE_PTR),HL ; ..store it
DEC HL
ADD HL,DE ; Now HL = address of note data
LD A,(HL)
OR A
JR Z,NEXT_PATTERN ; select next pattern
BIT 7,A
JP Z,RENDER ; Play the currently defined note(S) and drum
LD IYH,A
AND $3F
CP $3C
JP NC,OTHER ; Other parameters
ADD A,A
LD B,0
LD C,A
LD HL,FREQ_TABLE
ADD HL,BC
LD E,(HL)
INC HL
LD D,(HL)
LD A,IYL ; IYL = 0 for channel 1, or = 1 for channel 2
OR A
JR NZ,SET_NOTE2
LD (DIV_1A),DE
EX DE,HL
DEFB $DD,$21 ; LD IX,nn
CURRENT_INST:
DEFW $0000
LD A,(IX+$00)
OR A
JR Z,L809B ; Original code jumps into byte 2 of the DJNZ (invalid opcode FD)
LD B,A
L8098: ADD HL,HL
DJNZ L8098
L809B: LD E,(IX+$01)
LD D,(IX+$02)
ADD HL,DE
LD (DIV_1B),HL
LD IYL,1 ; Set channel = 1
LD A,IYH
AND $40
JR Z,READ_LOOP ; No phase reset
LD HL,OUT_1 ; Reset phaser
RES 4,(HL)
LD HL,$0000
LD (CNT_1A),HL
LD H,(IX+$03)
LD (CNT_1B),HL
JR READ_LOOP
SET_NOTE2:
LD (DIV_2),DE
LD A,IYH
LD HL,OUT_2
RES 4,(HL)
LD HL,$0000
LD (CNT_2),HL
JP READ_LOOP
SET_STOP:
LD HL,$0000
LD A,IYL
OR A
JR NZ,SET_STOP2
; Stop channel 1 note
LD (DIV_1A),HL
LD (DIV_1B),HL
LD HL,OUT_1
RES 4,(HL)
LD IYL,1
JP READ_LOOP
SET_STOP2:
; Stop channel 2 note
LD (DIV_2),HL
LD HL,OUT_2
RES 4,(HL)
JP READ_LOOP
OTHER: CP $3C
JR Z,SET_STOP ; Stop note
CP $3E
JR Z,SKIP_CH1 ; No changes to channel 1
INC HL ; Instrument change
LD L,(HL)
LD H,$00
ADD HL,HL
LD DE,(NOTE_PTR)
INC DE
LD (NOTE_PTR),DE ; Increment the note pointer
DEFB $01 ; LD BC,nn
INSTRUM_TBL:
DEFW $0000
ADD HL,BC
LD (CURRENT_INST),HL
JP READ_LOOP
SKIP_CH1:
LD IYL,$01
JP READ_LOOP
EXIT_PLAYER:
LD HL,$2758
EXX
POP IY
EI
RET
RENDER:
AND $7F ; L813A
CP $76
JP NC,DRUM_TYPE_1
LD D,A
EXX
DEFB $21 ; LD HL,nn
CNT_1A: DEFW $0000
DEFB $DD,$21 ; LD IX,nn
CNT_1B: DEFW $0000
DEFB $01 ; LD BC,nn
DIV_1A: DEFW $0000
DEFB $11 ; LD DE,nn
DIV_1B: DEFW $0000
DEFB $3E ; LD A,n
OUT_1: DEFB $0
EXX
EX AF,AF'
DEFB $21 ; LD HL,nn
CNT_2: DEFW $0000
DEFB $01 ; LD BC,nn
DIV_2: DEFW $0000
DEFB $3E ; LD A,n
OUT_2: DEFB $00
PLAY_NOTE:
; Read keyboard
; LD E,A
; XOR A
; IN A,($FE)
; OR $E0
; INC A
;
;PLAYER_WAIT_KEY:
; JR NZ,EXIT_PLAYER
LD A,E
LD E,0
L8168: EXX
EX AF,AF'
ADD HL,BC
and 2
OUT ($FF),A
JR C,L8171
JR L8173
L8171: XOR 2
L8173: ADD IX,DE
JR C,L8179
JR L817B
L8179: XOR 2
L817B: EX AF,AF'
and 2
OUT ($FF),A
EXX
ADD HL,BC
JR C,L8184
JR L8186
L8184: XOR 2
L8186: NOP
JP L818A
L818A: EXX
EX AF,AF'
ADD HL,BC
and 2
OUT ($FF),A
JR C,L8193
JR L8195
L8193: XOR $2
L8195: ADD IX,DE
JR C,L819B
JR L819D
L819B: XOR $2
L819D: EX AF,AF'
and 2
OUT ($FF),A
EXX
ADD HL,BC
JR C,L81A6
JR L81A8
L81A6: XOR 2
L81A8: NOP
JP L81AC
L81AC: EXX
EX AF,AF'
ADD HL,BC
and 2
OUT ($FF),A
JR C,L81B5
JR L81B7
L81B5: XOR 2
L81B7: ADD IX,DE
JR C,L81BD
JR L81BF
L81BD: XOR 2
L81BF: EX AF,AF'
and 2
OUT ($FF),A
EXX
ADD HL,BC
JR C,L81C8
JR L81CA
L81C8: XOR $2
L81CA: NOP
JP L81CE
L81CE: EXX
EX AF,AF'
ADD HL,BC
and 2
OUT ($FF),A
JR C,L81D7
JR L81D9
L81D7: XOR 2
L81D9: ADD IX,DE
JR C,L81DF
JR L81E1
L81DF: XOR 2
L81E1: EX AF,AF'
and 2
OUT ($FF),A
EXX
ADD HL,BC
JR C,L81EA
JR L81EC
L81EA: XOR 2
L81EC: DEC E
JP NZ,L8168
EXX
EX AF,AF'
ADD HL,BC
and 2
OUT ($FF),A
JR C,L81F9
JR L81FB
L81F9: XOR $2
L81FB: ADD IX,DE
JR C,L8201
JR L8203
L8201: XOR $2
L8203: EX AF,AF'
and 2
OUT ($FF),A
EXX
ADD HL,BC
JR C,L820C
JR L820E
L820C: XOR $2
L820E: DEC D
JP NZ,PLAY_NOTE
LD (CNT_2),HL
LD (OUT_2),A
EXX
EX AF,AF'
LD (CNT_1A),HL
LD (CNT_1B),IX
LD (OUT_1),A
JP MAIN_LOOP
; ************************************************************
; * DRUM type 1 - Digital
; ************************************************************
DRUM_TYPE_1:
SUB $74 ; On entry A=$75+Drum number (i.e. $76 to $7D), this makes it $02 to $09
LD B,A
LD A,$80
L822C: RLA ;
DJNZ L822C ; Rotates the drum number, giving us the appropriately-set bit in A
DRUM_DIGITAL:
LD (DRUM_SAMPLE), A
LD A, BORDER_COL
LD D, A
LD HL, SAMPLE_DATA
LD BC, 1024 ; Drums are all 1024 samples long, and striped into a byte
NEXT_SAMPLE:
LD A,(HL)
DEFB $E6 ; AND n
DRUM_SAMPLE:
DEFB $08
LD A,D ; Put border colour bits into A
JR NZ,L8247 ; Sample bit set
JR Z,L8249 ; Sample bit not set
L8247: OR $2
L8249:
and 2
OUT ($FF),A
LD E,$04
L824D: DEC E
JR NZ,L824D
INC HL
DEC BC
LD A,B
OR C
JR NZ,NEXT_SAMPLE
JP MAIN_LOOP
PATTERN_ADDR: DEFW $0000
PATTERN_PTR: DEFB 0
NOTE_PTR: DEFW $0000
FREQ_TABLE:
DEFW 178,189,200,212,225,238,252,267,283,300,318,337
DEFW 357,378,401,425,450,477,505,535,567,601,637,675
DEFW 715,757,802,850,901,954,1011,1071,1135,1202,1274,1350
DEFW 1430,1515,1605,1701,1802,1909,2023,2143,2270,2405,2548,2700
DEFW 2860,3030,3211,3402,3604,3818,4046,4286,4541,4811,5097,5400
; *****************************************************************
; * Digital Drum Samples - 8 * 1024bit samples, striped into bytes
; *****************************************************************
SAMPLE_DATA:
DEFB $02,$02,$02,$02,$00,$00,$02,$00,$0E,$00,$00,$00,$00,$00,$00,$00
DEFB $0C,$00,$00,$00,$08,$10,$10,$10,$18,$70,$70,$70,$70,$70,$70,$70
DEFB $74,$70,$50,$50,$D8,$D0,$D0,$D0,$D4,$D0,$D0,$D0,$D0,$D0,$D0,$D0
DEFB $D4,$D1,$D1,$D1,$5D,$41,$41,$41,$41,$41,$41,$41,$4D,$41,$41,$41
DEFB $49,$41,$41,$41,$47,$41,$41,$60,$6C,$22,$20,$20,$2E,$22,$20,$20
DEFB $22,$22,$22,$22,$26,$32,$32,$32,$36,$32,$32,$32,$36,$B2,$B2,$B2
DEFB $B2,$B2,$32,$32,$3E,$32,$32,$B2,$B2,$B2,$B2,$B2,$BE,$12,$12,$11
DEFB $17,$13,$93,$93,$97,$83,$83,$C3,$CB,$C3,$C3,$C3,$CB,$C3,$C1,$C1
DEFB $C9,$C1,$C1,$C1,$C5,$C1,$C1,$C1,$41,$41,$41,$41,$4D,$41,$41,$41
DEFB $41,$40,$40,$40,$6C,$60,$70,$70,$78,$70,$70,$70,$7C,$70,$70,$70
DEFB $74,$70,$70,$70,$70,$70,$70,$70,$34,$30,$30,$30,$38,$30,$30,$30
DEFB $38,$30,$30,$B0,$B8,$B0,$B0,$B0,$A4,$A0,$A0,$A0,$84,$80,$80,$80
DEFB $8C,$80,$80,$80,$8C,$82,$82,$82,$8C,$80,$82,$82,$8E,$83,$81,$83
DEFB $8F,$83,$83,$83,$87,$83,$83,$83,$87,$D3,$D3,$D3,$D7,$D3,$D3,$53
DEFB $53,$53,$73,$73,$77,$73,$73,$73,$7B,$73,$73,$73,$73,$73,$73,$73
DEFB $73,$73,$73,$73,$77,$73,$73,$73,$7D,$73,$73,$71,$6D,$61,$60,$60
DEFB $6C,$62,$62,$62,$62,$60,$60,$60,$64,$60,$60,$20,$00,$00,$00,$00
DEFB $08,$00,$00,$00,$00,$00,$00,$00,$04,$00,$00,$00,$04,$00,$90,$90
DEFB $1C,$10,$10,$10,$90,$90,$90,$90,$18,$10,$10,$10,$90,$90,$90,$10
DEFB $1C,$10,$10,$10,$1C,$30,$30,$30,$34,$B0,$B0,$B0,$34,$30,$F0,$F0
DEFB $F4,$F0,$E0,$E0,$E4,$E0,$E0,$60,$68,$E0,$E0,$E0,$E0,$E2,$E2,$E2
DEFB $E6,$E0,$E2,$E0,$E6,$E3,$E3,$E3,$E3,$61,$63,$E3,$E7,$E3,$43,$43
DEFB $4F,$41,$41,$41,$43,$53,$53,$53,$57,$53,$53,$53,$57,$53,$53,$53
DEFB $13,$13,$13,$13,$17,$13,$13,$13,$1B,$13,$13,$11,$19,$13,$13,$11
DEFB $11,$11,$13,$11,$11,$11,$11,$13,$1B,$33,$33,$A1,$A3,$A1,$A1,$A1
DEFB $21,$21,$A1,$A1,$A9,$A0,$A0,$A0,$A0,$A0,$20,$20,$28,$20,$A0,$A0
DEFB $A0,$20,$20,$A0,$E0,$E0,$60,$E0,$E0,$E0,$E0,$E0,$E8,$60,$60,$70
DEFB $78,$F0,$F0,$F0,$D8,$50,$50,$50,$58,$50,$50,$50,$50,$50,$50,$50
DEFB $50,$50,$50,$50,$58,$50,$50,$50,$50,$50,$50,$50,$50,$50,$50,$50
DEFB $5C,$50,$50,$50,$54,$40,$42,$40,$00,$02,$00,$00,$00,$00,$20,$20
DEFB $20,$22,$22,$22,$22,$22,$20,$22,$2A,$20,$22,$22,$22,$20,$22,$22
DEFB $26,$22,$20,$22,$26,$22,$20,$22,$22,$22,$A2,$B2,$B8,$B0,$B0,$B2
DEFB $B2,$B2,$B2,$32,$32,$B2,$B0,$B2,$B0,$B0,$32,$90,$90,$92,$52,$51
DEFB $51,$51,$D1,$D1,$D9,$D1,$51,$51,$51,$51,$53,$D1,$D9,$51,$51,$D3
DEFB $D3,$51,$41,$C1,$C1,$C1,$C1,$C1,$C9,$C1,$C1,$C1,$41,$41,$C1,$C1
DEFB $C9,$C1,$C1,$41,$C9,$C1,$C1,$61,$69,$E1,$E1,$E1,$61,$61,$61,$61
DEFB $61,$61,$61,$61,$29,$21,$21,$21,$25,$31,$31,$31,$35,$31,$31,$31
DEFB $39,$B1,$B1,$31,$31,$31,$31,$31,$31,$B1,$32,$30,$B0,$B0,$30,$30
DEFB $34,$30,$32,$32,$14,$10,$10,$10,$10,$10,$10,$10,$10,$90,$92,$12
DEFB $10,$92,$82,$02,$00,$00,$00,$02,$8A,$02,$02,$02,$CE,$40,$40,$40
DEFB $40,$42,$40,$42,$4A,$C2,$C2,$42,$40,$40,$40,$40,$48,$C2,$42,$42
DEFB $48,$40,$60,$60,$EA,$62,$62,$E2,$EA,$60,$70,$70,$70,$70,$F0,$F0
DEFB $70,$70,$72,$70,$7A,$72,$70,$70,$F0,$F0,$70,$F0,$F0,$70,$70,$F0
DEFB $F2,$70,$F0,$B0,$3C,$30,$30,$30,$34,$30,$30,$30,$30,$B0,$B0,$30
DEFB $B0,$90,$10,$00,$00,$00,$00,$80,$82,$02,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$04,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$50,$50,$50
DEFB $58,$72,$70,$70,$70,$70,$70,$70,$70,$70,$70,$72,$7A,$72,$72,$70
DEFB $F8,$F0,$F0,$F2,$7A,$70,$70,$70,$F0,$F0,$F0,$70,$70,$70,$72,$F2
DEFB $F0,$70,$70,$F2,$F2,$F0,$F0,$E0,$E8,$E2,$60,$60,$E0,$E0,$E2,$E2
DEFB $EA,$C0,$C2,$C2,$C2,$42,$00,$82,$82,$82,$80,$82,$80,$80,$80,$80
DEFB $80,$80,$00,$02,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
DEFB $08,$00,$10,$10,$10,$10,$10,$10,$18,$10,$10,$10,$12,$10,$10,$10
DEFB $10,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$70
DEFB $70,$70,$70,$70,$70,$70,$70,$70,$70,$70,$70,$70,$70,$70,$60,$60
DEFB $60,$60,$60,$60,$60,$60,$60,$60,$68,$60,$60,$60,$60,$60,$60,$60
DEFB $68,$60,$60,$C0,$C8,$C0,$C0,$C0,$C0,$40,$40,$40,$40,$C0,$C0,$40
DEFB $40,$42,$40,$C2,$C8,$C0,$40,$42,$C2,$C2,$10,$10,$98,$90,$92,$92
DEFB $12,$12,$10,$10,$10,$10,$10,$10,$9A,$92,$90,$90,$98,$90,$90,$90
DEFB $12,$12,$92,$90,$B0,$B0,$30,$30,$38,$30,$30,$30,$38,$30,$30,$30
DEFB $3A,$30,$32,$30,$30,$30,$20,$22,$20,$A0,$A0,$20,$28,$A0,$A2,$A2
DEFB $A0,$20,$20,$20,$20,$60,$60,$60,$60,$60,$62,$60,$68,$E0,$E0,$E0
DEFB $E0,$E0,$60,$60,$60,$60,$E0,$E0,$40,$40,$40,$40,$40,$40,$40,$40
DEFB $48,$40,$40,$40,$58,$50,$50,$50,$58,$50,$D0,$D0,$50,$50,$50,$50
MUSICDATA:
DEFB 0 ; Pattern loop begin * 2
DEFB 74 ; Song length * 2
DEFW 16 ; Offset to start of song (length of instrument table)
DEFB 1 ; Multiple
DEFW 3 ; Detune
DEFB 0 ; Phase
DEFB 3 ; Multiple
DEFW 1 ; Detune
DEFB 0 ; Phase
DEFB 0 ; Multiple
DEFW 1 ; Detune
DEFB 0 ; Phase
DEFB 0 ; Multiple
DEFW 2 ; Detune
DEFB 0 ; Phase
PATTERNDATA: DEFW PAT0
DEFW PAT13
DEFW PAT0
DEFW PAT1
DEFW PAT2
DEFW PAT3
DEFW PAT2
DEFW PAT4
DEFW PAT0
DEFW PAT13
DEFW PAT0
DEFW PAT1
DEFW PAT5
DEFW PAT5
DEFW PAT6
DEFW PAT7
DEFW PAT8
DEFW PAT8
DEFW PAT9
DEFW PAT10
DEFW PAT0
DEFW PAT13
DEFW PAT11
DEFW PAT1
DEFW PAT14
DEFW PAT16
DEFW PAT17
DEFW PAT18
DEFW PAT15
DEFW PAT19
DEFW PAT15
DEFW PAT19
DEFW PAT20
DEFW PAT21
DEFW PAT20
DEFW PAT22
DEFW PAT12
; *** Pattern data - $00 marks the end of a pattern ***
PAT0:
DEFB $BD,4
DEFB 132
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 144
DEFB 3
DEFB 188
DEFB 156
DEFB 120
DEFB 2
DEFB 132
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 159
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 3
DEFB 132
DEFB 163
DEFB 120
DEFB 2
DEFB 188
DEFB 156
DEFB 3
DEFB 132
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 144
DEFB 3
DEFB 188
DEFB 156
DEFB 120
DEFB 2
DEFB 132
DEFB 144
DEFB 3
DEFB 132
DEFB 159
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 3
DEFB 132
DEFB 163
DEFB 120
DEFB 2
DEFB 188
DEFB 156
DEFB 118
DEFB 2
DEFB 128
DEFB 140
DEFB 118
DEFB 2
DEFB 188
DEFB 140
DEFB 3
DEFB 188
DEFB 156
DEFB 120
DEFB 2
DEFB 128
DEFB 140
DEFB 118
DEFB 2
DEFB 128
DEFB 159
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 3
DEFB 128
DEFB 163
DEFB 120
DEFB 2
DEFB 188
DEFB 164
DEFB 3
DEFB 137
DEFB 149
DEFB 118
DEFB 2
DEFB 188
DEFB 149
DEFB 118
DEFB 2
DEFB 188
DEFB 164
DEFB 120
DEFB 2
DEFB 137
DEFB 149
DEFB 3
DEFB 137
DEFB 163
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 118
DEFB 2
DEFB 135
DEFB 159
DEFB 120
DEFB 2
DEFB 188
DEFB 163
DEFB 3
DEFB $00
PAT1:
DEFB $BD,4
DEFB 132
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 144
DEFB 3
DEFB 188
DEFB 156
DEFB 120
DEFB 2
DEFB 132
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 159
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 3
DEFB 132
DEFB 163
DEFB 120
DEFB 2
DEFB 188
DEFB 156
DEFB 3
DEFB 132
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 144
DEFB 3
DEFB 188
DEFB 156
DEFB 120
DEFB 2
DEFB 132
DEFB 144
DEFB 3
DEFB 132
DEFB 159
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 3
DEFB 132
DEFB 163
DEFB 120
DEFB 2
DEFB 188
DEFB 156
DEFB 118
DEFB 2
DEFB 128
DEFB 140
DEFB 118
DEFB 2
DEFB 188
DEFB 140
DEFB 3
DEFB 188
DEFB 156
DEFB 120
DEFB 2
DEFB 128
DEFB 140
DEFB 118
DEFB 2
DEFB 128
DEFB 159
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 3
DEFB 128
DEFB 163
DEFB 120
DEFB 2
DEFB 188
DEFB 164
DEFB 3
DEFB 137
DEFB 149
DEFB 118
DEFB 2
DEFB 188
DEFB 149
DEFB 119
DEFB 2
DEFB 188
DEFB 164
DEFB 120
DEFB 2
DEFB 137
DEFB 149
DEFB 118
DEFB 2
DEFB 137
DEFB 163
DEFB 119
DEFB 2
DEFB 188
DEFB 161
DEFB 120
DEFB 2
DEFB 135
DEFB 159
DEFB 118
DEFB 2
DEFB 188
DEFB 163
DEFB 119
DEFB 2
DEFB $00
PAT2:
DEFB $BD,0
DEFB 142
DEFB 161
DEFB 118
DEFB 2
DEFB 144
DEFB 163
DEFB 3
DEFB 144
DEFB 156
DEFB 120
DEFB 2
DEFB 142
DEFB 149
DEFB 118
DEFB 2
DEFB 147
DEFB 154
DEFB 119
DEFB 2
DEFB 144
DEFB 151
DEFB 118
DEFB 2
DEFB 188
DEFB 188
DEFB 120
DEFB 2
DEFB 144
DEFB 3
DEFB 188
DEFB 118
DEFB 2
DEFB 132
DEFB 3
DEFB 144
DEFB 120
DEFB 2
DEFB 132
DEFB 3
DEFB 135
DEFB 119
DEFB 2
DEFB 132
DEFB 118
DEFB 2
DEFB 188
DEFB 120
DEFB 2
DEFB 190
DEFB 118
DEFB 2
DEFB $BD,2
DEFB 180
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 132
DEFB 3
DEFB 180
DEFB 132
DEFB 120
DEFB 2
DEFB 168
DEFB 188
DEFB 118
DEFB 2
DEFB 180
DEFB 144
DEFB 119
DEFB 2
DEFB 188
DEFB 132
DEFB 3
DEFB 188
DEFB 132
DEFB 120
DEFB 2
DEFB 180
DEFB 188
DEFB 118
DEFB 2
DEFB 188
DEFB 132
DEFB 118
DEFB 2
DEFB 168
DEFB 144
DEFB 3
DEFB 188
DEFB 132
DEFB 120
DEFB 2
DEFB 168
DEFB 132
DEFB 3
DEFB 180
DEFB 144
DEFB 119
DEFB 2
DEFB 188
DEFB 132
DEFB 3
DEFB 190
DEFB 132
DEFB 120
DEFB 2
DEFB 190
DEFB 188
DEFB 120
DEFB 2
DEFB $00
PAT3:
DEFB $BD,0
DEFB 142
DEFB 149
DEFB 118
DEFB 2
DEFB 144
DEFB 151
DEFB 3
DEFB 144
DEFB 151
DEFB 120
DEFB 2
DEFB 142
DEFB 149
DEFB 118
DEFB 2
DEFB 147
DEFB 154
DEFB 119
DEFB 2
DEFB 144
DEFB 151
DEFB 118
DEFB 2
DEFB 188
DEFB 188
DEFB 120
DEFB 2
DEFB 132
DEFB 151
DEFB 3
DEFB 188
DEFB 188
DEFB 118
DEFB 2
DEFB 132
DEFB 156
DEFB 3
DEFB 188
DEFB 188
DEFB 120
DEFB 2
DEFB 144
DEFB 151
DEFB 3
DEFB 135
DEFB 154
DEFB 119
DEFB 2
DEFB 144
DEFB 132
DEFB 118
DEFB 2
DEFB 188
DEFB 188
DEFB 120
DEFB 2
DEFB 190
DEFB 118
DEFB 2
DEFB $BD,2
DEFB 180
DEFB 144
DEFB 118
DEFB 2
DEFB 188
DEFB 132
DEFB 3
DEFB 180
DEFB 132
DEFB 120
DEFB 2
DEFB 168
DEFB 188
DEFB 118
DEFB 2
DEFB 180
DEFB 144
DEFB 119
DEFB 2
DEFB 188
DEFB 132
DEFB 3
DEFB 188
DEFB 132
DEFB 120
DEFB 2
DEFB 180
DEFB 188
DEFB 118
DEFB 2
DEFB 188
DEFB 132
DEFB 118
DEFB 2
DEFB 168
DEFB 144
DEFB 3
DEFB 188
DEFB 132
DEFB 120
DEFB 2
DEFB 168