-
Notifications
You must be signed in to change notification settings - Fork 0
/
infinity.asm
3459 lines (3345 loc) · 69.3 KB
/
infinity.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 "infin.bin"
org $6000
;test code
begin
ld hl,music_data
call play
ret
;engine code
;squat by Shiru, 06'17
;Squeeker like, just without the output value table
;4 channels of tone with different duty cycle
;sample drums, non-interrupting
;customizeable noise percussion, interrupting
;music data is all 16-bit words, first control then a few optional ones
;control word is PSSSSSSS DDDN4321, where P equ percussion,S equ speed, D equ drum, N equ noise mode, 4321 equ channels
;D triggers non-interruping sample drum
;P trigger
;if 1, channel 1 freq follows
;if 2, channel 2 freq follows
;if 3, channel 3 freq follows
;if 4, channel 4 freq follows
;if N, channel 4 mode follows, it is either $0000 (normal) or $04cb (noise)
;if P, percussion follows, LSB equ volume, MSB equ pitch
RLC_H equ $04cb ;to enable noise mode
NOP_2 equ $0000 ;to disable noise mode
RLC_HL equ $06cb ;to enable sample reading
ADD_IX_IX equ $29dd ;to disable sample reading
play
di
ld e,(hl)
inc hl
ld d,(hl)
inc hl
ld (loop_ptr),de
ld (pattern_ptr),hl
ld hl,ADD_IX_IX
ld (sample_read),hl
ld hl,NOP_2 ;normal mode
ld (noise_mode),hl
ld ix,0 ;needs to be 0 to skip sample reading
ld c,0
exx
ld de,$0808 ;sample bit counter and reload value
play_loop
pattern_ptr equ $+1
ld sp,0
return_loop
pop bc ;control word
;B equ duration of the row (0 equ loop)
;C equ flags DDDN4321 (Drum, Noise, 1-4 channel update)
ld a,b
or a
jp nz,no_loop
loop_ptr equ $+1
ld sp,0
jp return_loop
no_loop
ld a,c
rra
jr nc,skip_note_0
pop hl
ld (ch0_add),hl
skip_note_0
rra
jr nc,skip_note_1
pop hl
ld (ch1_add),hl
skip_note_1
rra
jr nc,skip_note_2
pop hl
ld (ch2_add),hl
skip_note_2
rra
jr nc,skip_note_3
pop hl
ld (ch3_add),hl
skip_note_3
rra
jr nc,skip_mode_change
pop hl ;nop:nop or rlc h
ld (noise_mode),hl
skip_mode_change
and 7
jp z,skip_drum
ld hl,sample_list-2
add a,a
add a,l
ld l,a
ld a,(hl)
inc l
ld h,(hl)
ld l,a
ld (sample_ptr),hl
ld hl,RLC_HL
ld (sample_read),hl
skip_drum
bit 7,b ;check percussion flag
jp z,skip_percussion
res 7,b ;clear percussion flag
dec b ;compensate speed
ld (noise_bc),bc
ld (noise_de),de
pop hl ;read percussion parameters
ld a,l ;noise volume
ld (noise_volume),a
ld b,h ;noise pitch
ld c,h
ld de,$2174 ;utz's rand seed
exx
ld bc,811 ;noise duration, takes as long as inner sound loop
noise_loop
exx ;4
dec c ;4
jr nz,noise_skip ;7/12
ld c,b ;4
add hl,de ;11
rlc h ;8 utz's noise generator idea
inc d ;4 improves randomness
jp noise_next ;10
noise_skip
jr $+2 ;12
jr $+2 ;12
nop ;4
nop ;4
noise_next
ld a,h ;4
noise_volume equ $+1
cp $80 ;7
sbc a,a ;4
and 2
out ($ff),a ;11
exx ;4
dec bc ;6
ld a,b ;4
or c ;4
jp nz,noise_loop ;10 equ 106t
exx
noise_bc equ $+1
ld bc,0
noise_de equ $+1
ld de,0
skip_percussion
ld (pattern_ptr),sp
sample_ptr equ $+1
ld hl,0
ld c,0 ;internal loop runs 256 times
sound_loop
sample_read equ $
rlc (hl) ;15 rotate sample bits in place, rl (hl) or add ix,ix (dummy operation)
sbc a,a ;4 sbc a,a to make bit into 0 or 255, or xor a to keep it 0
dec e ;4--+ count bits
jp z,sample_cycle ;10 |
jp sample_next ;10
sample_cycle
ld e,d ;4 | reload counter
inc hl ;6--+ advance pointer --24t
sample_next
exx ;4 squeeker type unrolled code
ld b,a ;4 sample mask
xor a ;4
ld sp,sound_list ;10
pop de ;10 ch0_acc
pop hl ;10 ch0_add
add hl,de ;11
rla ;4
ld (ch0_acc),hl ;16
pop de ;10 ch1_acc
pop hl ;10 ch1_add
add hl,de ;11
rla ;4
ld (ch1_acc),hl ;16
pop de ;10 ch2_acc
pop hl ;10 ch2_add
add hl,de ;11
rla ;4
ld (ch2_acc),hl ;16
pop de ;10 ch3_acc
pop hl ;10 ch3_add
add hl,de ;11
noise_mode equ $
ds 2,0 ;8 rlc h for noise effects
rla ;4
ld (ch3_acc),hl ;16
add a,c ;4 no table like in Squeeker, channels summed as is, for uneven 'volume'
add a,$ff ;7
sbc a,$ff ;7
ld c,a ;4
sbc a,a ;4
or b ;4 mix sample
and 2
out ($ff),a ;11
exx ;4
dec c ;4
jp nz,sound_loop ;10 equ 336t
dec hl ;last byte of a 256 byte sample packet is 0 means it was the last packet
ld a,(hl)
inc hl
or a ;check for 0
jr nz,sample_no_stop
ld hl,ADD_IX_IX
ld (sample_read),hl ;disable sample reading
sample_no_stop
djnz sound_loop
ld (sample_ptr),hl
jp play_loop
align 2
sample_list
dw sample_1
dw sample_2
dw sample_3
dw sample_4
dw sample_5
dw sample_6
dw sample_7
;variables in the sound_list can't be reordered because of stack-based fetching
sound_list
ch0_add dw 0
ch0_acc dw 0
ch1_add dw 0
ch1_acc dw 0
ch2_add dw 0
ch2_acc dw 0
ch3_add dw 0
ch3_acc dw 0
;sample data
align 256
; org $8200
sample_1
db 128,18,72,178,75,0,0,0,0,0,240,255,255,255,255,31
db 0,0,0,0,0,0,0,192,255,255,255,255,255,127,0,0
db 0,0,0,0,0,0,0,0,224,255,255,255,255,255,1,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,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0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
sample_2
db 128,255,255,0,0,0,240,255,255,63,0,0,0,248,255,255
db 7,0,0,0,255,255,255,0,0,0,224,255,255,31,0,0
db 0,248,255,255,7,0,0,0,254,255,255,0,0,0,128,255
db 255,63,0,0,0,224,255,255,7,0,0,0,252,255,255,1
db 0,0,0,255,255,63,0,0,0,128,255,255,15,0,0,0
db 240,255,255,3,0,0,0,248,255,255,0,0,0,0,255,255
db 7,0,0,0,128,255,255,3,0,0,0,224,255,31,0,0
db 0,0,240,255,63,0,0,0,0,252,255,1,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0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,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
sample_3
db 0,252,255,255,7,0,0,0,0,0,252,255,255,255,255,3
db 0,0,0,0,0,128,255,255,255,255,255,15,0,0,0,0
db 0,0,255,255,255,255,255,31,0,0,0,0,0,0,252,255
db 255,255,255,63,0,0,0,0,0,0,240,255,255,255,255,255
db 1,0,0,0,0,0,0,255,255,255,255,255,3,0,0,0
db 0,0,0,255,255,255,255,255,31,0,0,0,0,0,0,240
db 255,255,255,255,31,0,0,0,0,0,0,128,255,255,255,255
db 255,1,0,0,0,0,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,0,0,0,0
sample_5
sample_6
sample_7
;compiled music data
music_data
dw .loop
.pattern
.loop
dw $258,$1344,RLC_H
dw $218,$0,NOP_2
dw $200
dw $200
dw $240
dw $200
dw $240
dw $200
dw $278,$1344,RLC_H
dw $218,$0,NOP_2
dw $200
dw $200
dw $260
dw $200
dw $260
dw $200
dw $22f,$103,$206,$40c,$4d1
dw $200
dw $200
dw $202,$0
dw $20f,$103,$206,$0,$0
dw $203,$0,$0
dw $283,$103,$206
dw $203,$0,$0
dw $23b,$103,$206,$737,RLC_H
dw $200
dw $218,$0,NOP_2
dw $202,$0
dw $28f,$103,$206,$40c,$4d1
dw $203,$0,$0
dw $28f,$103,$206,$48b,$568
dw $203,$0,$0
dw $22f,$103,$206,$4d1,$611
dw $200
dw $20c,$0,$0
dw $202,$0
dw $20f,$103,$206,$48b,$568
dw $203,$0,$0
dw $28f,$103,$206,$0,$0
dw $203,$0,$0
dw $23f,$103,$206,$40c,$737,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $202,$0
dw $28f,$134,$268,$611,$268
dw $203,$0,$0
dw $283,$134,$268
dw $203,$0,$0
dw $22f,$134,$268,$0,$0
dw $200
dw $200
dw $203,$0,$0
dw $203,$134,$268
dw $203,$0,$0
dw $203,$134,$268
dw $203,$0,$0
dw $23b,$134,$268,$737,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$134,$268,$40c,$4d1
dw $203,$0,$0
dw $28f,$134,$268,$0,$0
dw $203,$0,$0
dw $22f,$134,$268,$4d1,$611
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$134,$268,$48b,$568
dw $203,$0,$0
dw $28f,$134,$268,$0,$0
dw $203,$0,$0
dw $23f,$134,$268,$40c,$737,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$11a,$245,$568,$66e
dw $203,$0,$0
dw $283,$11a,$245
dw $203,$0,$0
dw $22f,$11a,$245,$0,$0
dw $200
dw $200
dw $203,$0,$0
dw $203,$11a,$245
dw $203,$0,$0
dw $203,$11a,$245
dw $203,$0,$0
dw $23b,$11a,$245,$737,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$11a,$245,$40c,$4d1
dw $203,$0,$0
dw $28f,$11a,$245,$0,$0
dw $203,$0,$0
dw $22f,$11a,$245,$4d1,$611
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$11a,$245,$48b,$568
dw $203,$0,$0
dw $28f,$11a,$245,$0,$0
dw $203,$0,$0
dw $23f,$11a,$245,$40c,$737,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$fb,$1fe,$48b,$611
dw $207,$0,$0,$4d1
dw $283,$fb,$1fe
dw $203,$0,$0
dw $223,$fb,$1fe
dw $200
dw $200
dw $203,$0,$0
dw $20f,$fb,$1fe,$40c,$4d1
dw $203,$0,$0
dw $28f,$fb,$1fe,$0,$0
dw $203,$0,$0
dw $23f,$fb,$1fe,$40c,$737,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$fb,$1fe,$39b,$48b
dw $203,$0,$0
dw $28f,$fb,$1fe,$0,$0
dw $203,$0,$0
dw $22f,$fb,$1fe,$39b,$48b
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $28f,$fb,$1fe,$40c,$4d1
dw $203,$0,$0
dw $20f,$fb,$1fe,$0,$0
dw $203,$0,$0
dw $23f,$1fe,$404,$40c,$737,RLC_H
dw $21b,$0,$0,$0,NOP_2
dw $21b,$1fe,$404,$737,RLC_H
dw $203,$0,$0
dw $21f,$1fe,$404,$0,$0,NOP_2
dw $203,$0,$0
dw $203,$1fe,$404
dw $203,$0,$0
dw $22f,$103,$206,$40c,$9a2
dw $200
dw $200
dw $203,$0,$0
dw $20f,$103,$206,$0,$0
dw $203,$0,$0
dw $283,$103,$206
dw $203,$0,$0
dw $23b,$103,$206,$e6e,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$103,$206,$40c,$9a2
dw $203,$0,$0
dw $28f,$103,$206,$48b,$ad0
dw $203,$0,$0
dw $22f,$103,$206,$4d1,$c23
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$103,$206,$48b,$ad0
dw $203,$0,$0
dw $28f,$103,$206,$0,$0
dw $203,$0,$0
dw $23f,$103,$206,$40c,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$134,$268,$40c,$c23
dw $203,$0,$0
dw $283,$134,$268
dw $203,$0,$0
dw $22f,$134,$268,$0,$0
dw $200
dw $200
dw $203,$0,$0
dw $203,$134,$268
dw $203,$0,$0
dw $203,$134,$268
dw $203,$0,$0
dw $23b,$134,$268,$e6e,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$134,$268,$40c,$9a2
dw $203,$0,$0
dw $28f,$134,$268,$0,$0
dw $203,$0,$0
dw $22f,$134,$268,$4d1,$c23
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$134,$268,$48b,$ad0
dw $203,$0,$0
dw $28f,$134,$268,$0,$0
dw $203,$0,$0
dw $23f,$134,$268,$40c,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$122,$245,$568,$cdc
dw $203,$0,$0
dw $283,$122,$245
dw $203,$0,$0
dw $22f,$122,$245,$0,$0
dw $200
dw $200
dw $203,$0,$0
dw $203,$122,$245
dw $203,$0,$0
dw $203,$122,$245
dw $203,$0,$0
dw $23b,$122,$245,$e6e,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$122,$245,$40c,$9a2
dw $203,$0,$0
dw $28f,$122,$245,$48b,$ad0
dw $203,$0,$0
dw $22f,$122,$245,$4d1,$c23
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$122,$245,$48b,$ad0
dw $203,$0,$0
dw $28f,$122,$245,$0,$0
dw $203,$0,$0
dw $23f,$122,$245,$40c,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$103,$206,$4d1,$c23
dw $203,$0,$0
dw $283,$103,$206
dw $203,$0,$0
dw $223,$103,$206
dw $200
dw $200
dw $203,$0,$0
dw $20f,$103,$206,$40c,$9a2
dw $203,$0,$0
dw $28f,$103,$206,$0,$0
dw $203,$0,$0
dw $23f,$103,$206,$40c,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$103,$206,$39b,$917
dw $203,$0,$0
dw $28f,$103,$206,$0,$0
dw $203,$0,$0
dw $22f,$103,$206,$39b,$917
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$103,$206,$40c,$9a2
dw $203,$0,$0
dw $20f,$103,$206,$0,$0
dw $203,$0,$0
dw $23f,$103,$206,$40c,$737,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $23f,$103,$206,$0,$737,RLC_H
dw $203,$0,$0
dw $29b,$103,$206,$0,NOP_2
dw $283,$0,$0
dw $22f,$184,$308,$819,$9a2
dw $200
dw $200
dw $202,$0
dw $20f,$184,$308,$0,$0
dw $203,$0,$0
dw $283,$184,$308
dw $203,$0,$0
dw $23b,$184,$308,$e6e,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$184,$308,$819,$9a2
dw $203,$0,$0
dw $28f,$184,$308,$917,$ad0
dw $203,$0,$0
dw $22f,$184,$308,$9a2,$c23
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$184,$308,$917,$ad0
dw $203,$0,$0
dw $28f,$184,$308,$0,$0
dw $203,$0,$0
dw $23f,$184,$308,$819,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $202,$0
dw $28f,$184,$308,$4d1,$819
dw $203,$0,$0
dw $283,$184,$308
dw $203,$0,$0
dw $22f,$184,$308,$0,$0
dw $200
dw $200
dw $202,$0
dw $203,$184,$308
dw $203,$0,$0
dw $203,$184,$308
dw $203,$0,$0
dw $23b,$184,$308,$e6e,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$184,$308,$819,$9a2
dw $203,$0,$0
dw $28f,$184,$308,$917,$ad0
dw $203,$0,$0
dw $22f,$184,$308,$9a2,$c23
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$184,$308,$917,$ad0
dw $203,$0,$0
dw $28f,$184,$308,$0,$0
dw $203,$0,$0
dw $23f,$184,$308,$819,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$15a,$2b4,$819,$c23
dw $203,$0,$0
dw $283,$15a,$2b4
dw $203,$0,$0
dw $22f,$15a,$2b4,$0,$0
dw $200
dw $200
dw $203,$0,$0
dw $203,$15a,$2b4
dw $203,$0,$0
dw $203,$15a,$2b4
dw $203,$0,$0
dw $23b,$15a,$2b4,$e6e,RLC_H
dw $200
dw $218,$0,NOP_2
dw $203,$0,$0
dw $28f,$15a,$2b4,$819,$9a2
dw $203,$0,$0
dw $28f,$15a,$2b4,$917,$ad0
dw $203,$0,$0
dw $22f,$15a,$2b4,$9a2,$c23
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$15a,$2b4,$917,$ad0
dw $203,$0,$0
dw $28f,$15a,$2b4,$0,$0
dw $203,$0,$0
dw $23f,$15a,$2b4,$819,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$15a,$2b4,$9a2,$c23
dw $203,$0,$0
dw $283,$15a,$2b4
dw $203,$0,$0
dw $223,$15a,$2b4
dw $200
dw $200
dw $203,$0,$0
dw $20f,$15a,$2b4,$819,$9a2
dw $203,$0,$0
dw $28f,$15a,$2b4,$0,$0
dw $203,$0,$0
dw $23f,$15a,$2b4,$819,$e6e,RLC_H
dw $200
dw $21c,$0,$0,NOP_2
dw $203,$0,$0
dw $28f,$15a,$2b4,$737,$917
dw $203,$0,$0
dw $28f,$15a,$2b4,$0,$0
dw $203,$0,$0
dw $22f,$15a,$2b4,$737,$917
dw $200
dw $20c,$0,$0
dw $203,$0,$0
dw $20f,$15a,$2b4,$819,$9a2
dw $203,$0,$0
dw $28f,$15a,$2b4,$0,$0