-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGalway_Martin_Arkanoid.asm
5484 lines (5244 loc) · 159 KB
/
Galway_Martin_Arkanoid.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
; Arkanoid reverse enginnering source
; all copyright for this code remains to Martin Galway
; Reverse Engineered by Stefano Tognon (SIDIn Magazine #4)
; Converted to ACME by dmx87
; The classic loader tune was a conversion from Martin's previous work on
; Cobra for the ZX Spectrum
; https://www.youtube.com/watch?v=2lacCH2h70w
; One of the first, if not the first, game music featuring digitized samples.
!to "Martin_Galway_Arkanoid.sid",plain
* = 0
!text "RSID"
!wo $0200 ; version 2
!wo $7C00 ; data offset
!wo $0000 ; load address in cbm format
!by $08
!by $01
!by $0000
!by $0000
!wo $1400 ; 20 song
!wo $0100 ; default song 1
!wo $0000
!wo $0000
!text "Arkanoid",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
!text "Martin Galway",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
!text "1986 Imagine",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
!wo $0000
!wo $0000
!wo $0000
!warn "data",*
!word $0801
!pseudopc $0801 {
* = $0801
; 31..+7 low addr into stack voice 1
; 39..+7 high addr into stack voice 1
; 40..+7 number of repeat voice 1
; A9..+7 low addr into stack voice 2
; B1..+7 high addr into stack voice 2
; B9..+7 number of repeat voice 2
; 61..+7 low addr into stack voice 3
; 69..+7 high addr into stack voice 3
; 71..+7 number of repeat voice 3
; 78..+7 low addr into stack sample
; 80..+7 high addr into stack sample
; 89..+7 number of repeat sample
; DA low addr sample pattern index
; DB high addr sample pattern index
; DC duration of this sample
; DD stack index for sample
; DE
; DF sample generator routine index
; E0 low pattern addr. voice 1
; E1 high pattern addr. voice 1
; E2 low pattern addr. voice 2
; E3 high pattern addr. voice 2
; E4 low pattern addr. voice 3
; E5 high pattern addr. voice 3
; E6 actual note duration (length) voice 1
; E7 actual note duration (length) voice 2
; E8 actual note duration (length) voice 3
; E9 stack index for voice 1
; EA stack index for voice 2
; EB stack index for voice 3
; EC halftone to add to current note voice 1
; ED halftone to add to current note voice 2
; EE halftone to add to current note voice 3
; EF
; F0
; F1 wave low v1
; F2 wave high v1
; F3 wave low v2
; F4 wave high v2
; F5 wave low v3
; F6 wave high v3
; F7 freq. low voice 1
; F8 freq. high voice 1
; F9 freq. low voice 2
; FA freq. high voice 2
; FB freq. low voice 3
; FC freq. high voice 3
; FD tmp track offset / low address of table
; FE high address of table
; FF current note to play
; pattern format:
; xx nn:
; xx=00..5F play note xx for time from table(nn)
; xx=60..BF play note xx-60h for time nn
; C0 RTS instr.
; C2 lo hi JSR instr.
; C4 lo hi JMP instr.
; C6 ht lo hi JSRT instr. (1,3)
; CA id va SET instr.
; CC nn FOR instr.
; CE NEXT instr.
; D2 nn lo hi SETNI instr.
; D4 lo hi INSTR instr.
; D6 nn va SETCI instr.
; D8 lo hi EXCT instr. (3)
; DC id v1 v2 SET2I instr. (2,3)
; DE id v1 v2 SET2CI instr.
; E0 LF3 instr. (3)
; E2 lo hi FILTA instr. (3)
; F0 lo hi SETFI instr.
; sample pattern format:
; 81 xx : Sample 1
; 82 xx : Sample 2
; 83 xx : Sample 3
; 84 xx : Sample 4
; 85 xx : Sample 5
; 86 xx : Sample 6
; 87 xx : Nothing
; 20 lo hi : JSR yyxx
; 40 : NEXT
; 60 : RTS
; 49 xx : FOR
; 4C lo hi : JMP yyxx
TEMP = $5FFF ; 3FFF in the original code
sta $1FFF
sei
LDA #$35
STA $01 ; 6510 I/O register
;JSR $1FC0
lda #$00
sta $DC0E ; Control register A of CIA #1
lda #<IRQ
sta $FFFE ; Masckerable Interrupt (IRQ) vector
lda #>IRQ
sta $FFFF
jsr initEngine
jsr initSample
ldx $1FFF
cpx #$02
bcs notSample
lda #$F0
sta $DC04 ; Timer A #1: Lo Byte
lda #$49
sta $DC05 ; Timer A #1: Hi Byte
cpx #$00
bne isTune2
lda #$02 ; sample duration
ldx #<Sample_Tune1 ; low address
ldy #>Sample_Tune1 ; high address
jsr setSample
jmp nextP
isTune2:
lda #$02 ; sample duration
ldx #<Sample_Tune2 ; low address
ldy #>Sample_Tune2 ; high address
jsr setSample
jmp nextP
notSample:
lda #$F8
sta $DC04 ; Timer A #1: Lo Byte
lda #$24
sta $DC05 ; Timer A #1: Hi Byte
nextP:
ldx $1FFF
cpx #$08
bcc normalTune
jmp calcAddress ; calcolate and set address for effects
normalTune:
ldy offsetTracks,x
jsr setTracks
setInterrupt:
lda #$81
sta $DC0D ; Interrupt control register CIA #1
lda #$01
sta $DC0E ; Control register A of CIA #1
cli
lda $1FFF ; tune to play
cmp #$02 ; first two tunes use sample
bcc SLoop
rts
SLoop:
jsr SampleGeneration
jmp SLoop
offsetTracks:
!by $3D, $28, $05, $0C, $13, $21, $2F, $36
!by $36, $44, $4B, $52, $59, $60, $67, $6E
IRQ:
pha
tya
pha
txa
pha
lda $1FFF ; number of tune to play
cmp #$02
bcs skipSample
jsr playSample ; play sample for the first 2 tunes
skipSample:
jsr makeFilterEff
jsr executePatternV1
jsr executePatternV2
jsr executePatternV3
jsr makeTimbreV1 ; voice 1
jsr makeTimbreV2 ; voice 2
jsr makeTimbreV3 ; voice 3
lda $DC0D ; Interrupt control register CIA #1
pla
tax
pla
tay
pla
rti
* = $2000
!by $3A, $20 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $C6, $DF ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $02 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $3A, $20 ; freq. low/high
* = $201f
; * = $201F
!by $C6, $DF ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $3A, $20 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $02 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $D8, $40 ; freq. low/high
* = $203E
!by $9E, $20 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $62, $DF ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $02 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $3C, $41 ; freq. low/high
* = $205D
!by $1F, $18 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $E1, $E7 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $02 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $3E, $30 ; freq. low/high
* = $207C
!by $5E, $CF ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $A2, $30 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $02 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $44, $61 ; freq. low/high
* = $209B
!by $06, $31 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $FA, $CE ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $02 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $0C, $62 ; freq. low/high
* = $20BA
!by $04, $00 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $FF, $00 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $04 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $00, $F0 ; AD/SR
!by $32, $01
!by $20, $03 ; freq. low/high
* = $20D9
!by $04, $00 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $FF, $00 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $04 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $00, $F0 ; AD/SR
!by $32, $01
!by $2A, $03 ; freq. low/high
* = $20F8
!by $04, $00 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $FF, $00 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $04 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $00, $F0 ; AD/SR
!by $32, $01
!by $34, $03 ; freq. low/high
* = $2117
!by $F0, $D8 ; freq low/high add 1
!by $18, $FC ; freq low/high add 2
!by $9C, $FF ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $04, $05 ; freq (to reload) cycle 1/2
!by $0A, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $85 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $09, $B9 ; AD/SR
!by $1E, $32
!by $50, $C3 ; freq. low/high
* = $2136
!by $F0, $D8 ; freq low/high add 1
!by $18, $FC ; freq low/high add 2
!by $9C, $FF ; freq low/high add 3
!by $7C, $15 ; freq low/high add 4
!by $04, $05 ; freq (to reload) cycle 1/2
!by $0A, $00 ; freq (to reload) cycle 3/4
!by $0A ; freq initial delay
!by $87 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $43 ; control
!by $09, $B9 ; AD/SR
!by $1E, $32
!by $01, $00 ; freq. low/high
* = $2155
!by $F0, $D8 ; freq low/high add 1
!by $18, $FC ; freq low/high add 2
!by $9C, $FF ; freq low/high add 3
!by $B8, $0B ; freq low/high add 4
!by $04, $05 ; freq (to reload) cycle 1/2
!by $0A, $00 ; freq (to reload) cycle 3/4
!by $14 ; freq initial delay
!by $87 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $09, $B9 ; AD/SR
!by $1E, $32
!by $01, $00 ; freq. low/high
* = $2174
!by $74, $40 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $8C, $BF ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $02 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $74, $40 ; freq. low/high
* = $2193
!by $8C, $BF ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $74, $40 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $02 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $D8, $40 ; freq. low/high
* = $21B2
!by $3C, $41 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $C4, $BE ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $02 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $03, $8A ; AD/SR
!by $0F, $5A
!by $78, $82 ; freq. low/high
* = $21D1
!by $E2, $04 ; freq low/high add 1
!by $38, $CD ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $09, $01 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $15, $9B ; AD/SR
!by $14, $46
!by $3A, $20 ; freq. low/high
* = $21F0
!by $36, $F7 ; freq low/high add 1
!by $38, $4A ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $09, $01 ; freq (to reload) cycle 1/2
!by $01, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $15, $9B ; AD/SR
!by $14, $46
!by $D8, $40 ; freq. low/high
* = $220F
!by $16, $0D ; freq low/high add 1
!by $88, $96 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $07, $01 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $15, $9B ; AD/SR
!by $14, $46
!by $3C, $41 ; freq. low/high
* = $222E
!by $90, $E8 ; freq low/high add 1
!by $DD, $FF ; freq low/high add 2
!by $0A, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $0A, $50 ; freq (to reload) cycle 1/2
!by $FF, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $04 ; freq effect flag
!by $FF, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $08, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $19, $BB ; AD/SR
!by $28, $C8
!by $0C, $F8 ; freq. low/high
* = $224D
!by $90, $E8 ; freq low/high add 1
!by $DD, $FF ; freq low/high add 2
!by $0A, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $0A, $50 ; freq (to reload) cycle 1/2
!by $FF, $00 ; freq (to reload) cycle 3/4
!by $04 ; freq initial delay
!by $04 ; freq effect flag
!by $FF, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $08, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $19, $BB ; AD/SR
!by $28, $C8
!by $00, $FA ; freq. low/high
* = $226C
!by $90, $E8 ; freq low/high add 1
!by $DD, $FF ; freq low/high add 2
!by $0A, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $0A, $50 ; freq (to reload) cycle 1/2
!by $FF, $00 ; freq (to reload) cycle 3/4
!by $08 ; freq initial delay
!by $04 ; freq effect flag
!by $FF, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $08, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $19, $BB ; AD/SR
!by $28, $C8
!by $F4, $FB ; freq. low/high
* = $228B
!by $3A, $20 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $C6, $DF ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $02 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $02, $A6 ; AD/SR
!by $05, $08
!by $3A, $20 ; freq. low/high
* = $22AA
!by $C6, $DF ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $3A, $20 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $02 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $02, $A6 ; AD/SR
!by $05, $08
!by $D8, $40 ; freq. low/high
* = $22C9
!by $9E, $20 ; freq low/high add 1
!by $00, $00 ; freq low/high add 2
!by $62, $DF ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $01 ; freq (to reload) cycle 1/2
!by $01, $01 ; freq (to reload) cycle 3/4
!by $02 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $02, $A6 ; AD/SR
!by $05, $08
!by $3C, $41 ; freq. low/high
* = $22E8
!by $E2, $04 ; freq low/high add 1
!by $08, $D5 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $0A, $01 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $15, $9B ; AD/SR
!by $14, $8C
!by $3A, $20 ; freq. low/high
* = $2307
!by $36, $F7 ; freq low/high add 1
!by $08, $52 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $09, $01 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $02 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $15, $9B ; AD/SR
!by $14, $8C
!by $D8, $40 ; freq. low/high
* = $2326
!by $16, $0D ; freq low/high add 1
!by $70, $9A ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $08, $01 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $03 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $21 ; control
!by $15, $9B ; AD/SR
!by $14, $8C
!by $3C, $41 ; freq. low/high
* = $2345
!by $90, $E8 ; freq low/high add 1
!by $CE, $FF ; freq low/high add 2
!by $30, $F2 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $0A, $28 ; freq (to reload) cycle 1/2
!by $01, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $05 ; freq effect flag
!by $FF, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $08, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $19, $BB ; AD/SR
!by $28, $8C
!by $31, $F2 ; freq. low/high
* = $2364
!by $90, $E8 ; freq low/high add 1
!by $CE, $FF ; freq low/high add 2
!by $30, $F2 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $0A, $28 ; freq (to reload) cycle 1/2
!by $01, $00 ; freq (to reload) cycle 3/4
!by $02 ; freq initial delay
!by $05 ; freq effect flag
!by $FF, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $08, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $19, $BB ; AD/SR
!by $28, $8C
!by $19, $F6 ; freq. low/high
* = $2383
!by $90, $E8 ; freq low/high add 1
!by $CE, $FF ; freq low/high add 2
!by $30, $F2 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $0A, $28 ; freq (to reload) cycle 1/2
!by $01, $00 ; freq (to reload) cycle 3/4
!by $04 ; freq initial delay
!by $05 ; freq effect flag
!by $FF, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $08, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $19, $BB ; AD/SR
!by $28, $8C
!by $01, $FA ; freq. low/high
* = $23A2
!by $E2, $04 ; freq low/high add 1
!by $38, $CD ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $09, $02 ; freq (to reload) cycle 1/2
!by $01, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $15 ; control
!by $15, $E9 ; AD/SR
!by $0A, $5A
!by $3A, $20 ; freq. low/high
* = $23C1
!by $36, $F7 ; freq low/high add 1
!by $38, $4A ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $01, $02 ; freq (to reload) cycle 1/2
!by $09, $00 ; freq (to reload) cycle 3/4
!by $05 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $15 ; control
!by $15, $99 ; AD/SR
!by $0A, $5A
!by $D8, $40 ; freq. low/high
* = $23E0
!by $16, $0D ; freq low/high add 1
!by $88, $96 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $02, $07 ; freq (to reload) cycle 1/2
!by $01, $00 ; freq (to reload) cycle 3/4
!by $00 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $00 ; wave low/high
!by $15 ; control
!by $15, $99 ; AD/SR
!by $0A, $5A
!by $3C, $41 ; freq. low/high
* = $23FF
!by $1E, $FB ; freq low/high add 1
!by $F8, $2A ; freq low/high add 2
!by $E8, $03 ; freq low/high add 3
!by $08, $D5 ; freq low/high add 4
!by $0A, $01 ; freq (to reload) cycle 1/2
!by $0A, $01 ; freq (to reload) cycle 3/4
!by $01 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $CC, $FC ; AD/SR
!by $FE, $FE
!by $10, $27 ; freq. low/high
* = $241E
!by $CA, $08 ; freq low/high add 1
!by $F8, $AD ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $09, $01 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $02 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $CC, $FC ; AD/SR
!by $FE, $FE
!by $CE, $56 ; freq. low/high
* = $243D
!by $EA, $F2 ; freq low/high add 1
!by $90, $65 ; freq low/high add 2
!by $00, $00 ; freq low/high add 3
!by $00, $00 ; freq low/high add 4
!by $08, $01 ; freq (to reload) cycle 1/2
!by $00, $00 ; freq (to reload) cycle 3/4
!by $03 ; freq initial delay
!by $05 ; freq effect flag
!by $00, $00 ; wave (to reload) cycle 1/2
!by $00 ; wave initial delay
!by $00 ; wave effect flag
!by $00, $00 ; wave low/high add 1
!by $00, $00 ; wave low/high add 2
!by $00, $08 ; wave low/high
!by $41 ; control
!by $CC, $FC ; AD/SR
!by $FE, $FE
!by $07, $87 ; freq. low/high
;=================================
; Instrument table voice 1
;=================================
InstTableV1:
!by $23 ; 00h: freq low add 1 voice 1
!by $00 ; 01h: freq high add 1 voice 1
!by $DD ; 02h: freq low add 2 voice 1
!by $FF ; 03h: freq high add 2 voice 1
!by $23 ; 04h: freq low add 3 voice 1
!by $00 ; 05h: freq high add 3 voice 1
!by $00 ; 06h: freq low add 4 voice 1
!by $00 ; 07h: freq high add 4 voice 1
!by $03 ; 08h: freq cycle 1 voice 1
!by $05 ; 09h: freq cycle 2 voice 1
!by $02 ; 0Ah: freq cycle 3 voice 1
!by $00 ; 0Bh: freq cycle 4 voice 1
!by $0A ; 0Ch: freq delay initial voice 1
!by $05 ; 0Dh: freq effect flag voice 1
!by $00 ; 0Eh: wave cycle 1 voice 1
!by $00 ; 0Fh: wave cycle 2 voice 1
!by $00 ; 10h: wave delay initial voice 1
!by $00 ; 11h: wave effect flag voice 1
!by $00 ; 12h: wave low add 1 voice 1
!by $00 ; 13h: wave high add 1 voice 1
!by $00 ; 14h: wave low add 2 voice 1
!by $00 ; 15h: wave high add 2 voice 1
!by $00 ; 16h: wave low voice 1
!by $00 ; 17h: wave high voice 1
!by $19 ; 18h: control of voice 1
!by $A4 ; 19h: AD voice 1
!by $F9 ; 1Ah: SR voice 1
!by $14 ; 1Bh
!by $FE ; 1Ch
;=================================
; Instrument table voice 2
;=================================
InstTableV2: