-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMemType.txt
2622 lines (2567 loc) · 93.7 KB
/
MemType.txt
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
datasource
{
file = "5000-8fff.bin"
origin = $5000
}
annotate {
$53b0 v'''
0 : Offset
1&2: Adjust
CaveCurrentCellPtr points to the NW cell and the cell in consideration is at
'C' (that's why you see a lot of offsets of $29 in the code).
---------------------
|NW:$00|N:$01|NE:$02|
|------+-----+------|
| W:$28|C:$29| E:$2a|
|------+-----+------|
|SW:$50|S:$51|SE:$52|
|======+=====+======|
| $78| $79| $7a|
---------------------
InflatedCaveCurrentCellPtr points to the cell in consideration ('C'). Since
each cell in the cave is 2x2 characters in the inflated cave the offsets
are as follows (I'm not sure what the extra bits hanging off the sides are
for yet).
------------------------
|NW:-162|N:-160|NE:-158|
-------+-------+------|-------|-------
| -4 | W:-2 |C: 0 | E:+2 | +4 |
-------+-------+------|-------|-------
|SW:+158|S:+160|SE:+162|
|=======+======+=======|
| +318| +320| +322|
------------------------
This table translates offsets as specified in the first scheme to ones in the second.
Offset: 0($00) Adjust: -162
Offset: 1($01) Adjust: -160
Offset: 2($02) Adjust: -158
Offset: 40($28) Adjust: -2
Offset: 39($27) Adjust: -4
Offset: 41($29) Adjust: 0
Offset: 42($2a) Adjust: 2
Offset: 43($2b) Adjust: 4
Offset: 80($50) Adjust: 158
Offset: 81($51) Adjust: 160
Offset: 82($52) Adjust: 162
Offset: 120($78) Adjust: 318
Offset: 121($79) Adjust: 320
Offset: 122($7a) Adjust: 322
'''
$53da v"Inflated Cave: $4003 - $4dc2"
$582e '''
CaveNumber
MagicWallMillingTimeOrAmoeba3PercentMax
InitialDiamondValue
ExtraDiamondValue
InitialRandomSeedForSublevel1
InitialRandomSeedForSublevel2
InitialRandomSeedForSublevel3
InitialRandomSeedForSublevel4
InitialRandomSeedForSublevel5
DiamondsNeededForSublevel1
DiamondsNeededForSublevel2
DiamondsNeededForSublevel3
DiamondsNeededForSublevel4
DiamondsNeededForSublevel5
CaveTimeForSublevel1
CaveTimeForSublevel2
CaveTimeForSublevel3
CaveTimeForSublevel4
CaveTimeForSublevel5
BackgroundColour1
BackgroundColour2
ForegroundColour
?
?
RandomObjectNumber1
RandomObjectNumber2
RandomObjectNumber3
RandomObjectNumber4
ProbabilityOfObject1
ProbabilityOfObject2
ProbabilityOfObject3
ProbabilityOfObject4
/\ 32($20) bytes length /\
'''
$582e v'''
Variable \/
struct
{
CmdObj;
Params[];
} Objects[]
76543210
ccoooooo
c: Command
o: Object
Commands:
$00 - Single(x, y)
$40 - Line(x, y, len, dir) --- enum dir {N=0, NE=1, E=2, SE=3, S=4, SW=5, W=6, NW=7};
$80 - FilledRect(x, y, width, height, interior)
$c0 - Rect(x, y, width, height)
Objects:
$00 - Empty (. [space])
$01 - Dirt (A)
$02 - Wall (B)
$03 - Magic wall (C)
$04 - Exit (D)
$07 - Steel wall (G)
$08 - Firefly (H)
$10 - Boulder (P)
$14 - Diamond (T)
$25 - Inbox (%)
$30 - Butterfly (0 [number])
$32 - Butterfly (2)
$3a - Amoeba (:)
'''
$585f '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 GAAAAAA.AATAP.AAAAAPAPAAAAAAA.AAAAPAAAAG
>C:08a0 GAP%PAAAAAA.AAAAAAAAAPTAAPAAAA.AAAAA.AAG
>C:08c8 GAAAAAAAAAA.AAPAAAAAPAPAAPAAAAAAAAPAAAAG
>C:08f0 GPAPPAAAAAAAAAPAAAAAAPAAPAAAAPAAAPAAAAAG
>C:0918 GPA.PAAAAAAAAA.PAAPAAAAAAAAPAAAAAAPAPPAG
>C:0940 GAAA.AAPAAAAAAAAPAAAAAPA.PAAAAAAAAPAPPAG
>C:0968 GBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAPAAPAG
>C:0990 GA.AAAPAATA.AAPAPAAAAAAAAAATAPTAAAAAA.AG
>C:09b8 GAATAAAAAPAAAAA.AAAAAAAAPP.PAAPAAAAPAAAG
>C:09e0 GAAAPAAPAPAAAAAAAAAAAAAAP.APAAPAAAAAAAAG
>C:0a08 GAPAAAAAPAAAAAAAAPPPAAAAAAAPAA.ATAAAAPAG
>C:0a30 GATAA.AAPA..AAAAAPAPTAATAAAAPAAAPAATA.AG
>C:0a58 GA.PAAAAAAAAAAAAAAP.PAAPAAAAAAAATAAAAAPG
>C:0a80 GAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBG
>C:0aa8 G.PAAAAAAAAAPAAATAAAAPAAAAAPAAAPAAAAAAAG
>C:0ad0 G.PAAAAAAAAA.PAAPAAAAAAAAPAAAAAAPAPPAADG
>C:0af8 GA.AAPAAAAAAAAPAAAAAPA..AAAATAAAPAPPAAAG
>C:0b20 GAAAAPTAAPAAAAAAAAPAAAAAAPAPTAAAAAAPAAAG
>C:0b48 GAAA.AAPA.AAPAPPAAAAAAAAAPAPTAAAAAA.AAPG
>C:0b70 GATAAAA.AAAAA.AAAAAAAAA.APAAPAAAAPAAAPAG
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$58b8 '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 GAPAAPAABAPAAATABAAA.APABPAAAAAABAAPPAAG
>C:08a0 GAAAAAAABAAAAAAPBPPA.AAAB.AATAAABAAAAPAG
>C:08c8 G......................................G
>C:08f0 GTAAAAAABAPAAAAPBAPA.AA.BAAPAATABAAPAPAG
>C:0918 GAAAAAAABAPAAAAPBAPA.PAABAAAAAPABAAA.AAG
>C:0940 GBBBBBBBBBBBBBBBBBBB.BBBBBBBBBBBBBBBBBBG
>C:0968 GAAAAPPABAAPAAAABAAA.AAPBAAAAPAABAAAAAPG
>C:0990 GAAAAAAABAA.AAAABAAA.AAABAAAAPA.BAAAAAPG
>C:09b8 G......................................G
>C:09e0 GPAAPAAABAAAAPAABAAP.AAABAAAAAATBPAAAAAG
>C:0a08 GPAAAAPABAAPAAPABAAA.A.PBAAAAAAABPAAAPAG
>C:0a30 GAPAAAAABAAAPAAABAAA.A.PBAAAAAAAB.PAAPAG
>C:0a58 GBBBBBBBBBBBBBBBBBBB.BBBBBBBBBBBBBBBBBBG
>C:0a80 GPA..HAABAAAAPAPBAAA.AAABAPTAAPABAAAAAAG
>C:0aa8 GAAAAAPABPAAAAAABAAT.AAAB.AAPAAABAPAPPAG
>C:0ad0 G......................................G
>C:0af8 GTAA.APABPAAAAPABAPA.AAPBAPAPAAABAAAAAAG
>C:0b20 GAAAAAPABPAATAAABAAA.PAABAAPAAAABAAAPP.G
>C:0b48 GATAAA.PBAAPAAAABA%T.PAABA.AAAAABAAAPP.G
>C:0b70 GAPAAAA.BAA.AAPABADA.AAABAAAAPAPBAAAA.AG
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$58df '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 GPABBABPPABAAAPBPAAPAAAABAAAPAAAAAPBATAG
>C:08a0 GAA%BATAPABAAABBBAABAPAAAAPAAPAPAAABABPG
>C:08c8 GAAAABAAPTAAPAAAABAAAAAPABBPAAAAAAABABBG
>C:08f0 GTABAABPBPAAPAAAABAAAPAAAAAAPAPPAAAAAABG
>C:0918 GPABAAABAAPABBAAPABBTAAAAAAAPAPPAAAAAABG
>C:0940 GPPAAPAAAABAAAPAAAAAAPAPPAAAAAAPAATBBAAG
>C:0968 GAAPABBAAPAPPAAABAAAAPAPPAAAAAABAAPABAPG
>C:0990 GAABAAATAAAAAATAPAABBPAAPABABPAABPAATAPG
>C:09b8 GPAPAAAABABBAATAPAABBPAAPAATABAAABAAPABG
>C:09e0 GAPABBAAAAAPPBPAATABABPAABPAAABPAATAPAAG
>C:0a08 GBABBAAAAAAPPBPAAPABABBAAABAAPABBAAPABBG
>C:0a30 GABAPAPABAAABBPAAPAAAABAAAPAAAAABBAPABBG
>C:0a58 GABAPAPABATABABPAABPAAAAPAAPAPPAAAABAAAG
>C:0a80 GBAABPBPAAPAAAABAAATAAABAPBAA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AAAAAAA..HAAAAA..HAAAAA..HAAAAA..HAAAAG
>C:0aa8 GAAAAAAA...AAAAA...AAAAA...AAAAA...AAAAG
>C:0ad0 GAAAAAAA.T.AAAAA.T.AAAAA.T.AAAAA.T.AAAAG
>C:0af8 GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG
>C:0b20 GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG
>C:0b48 GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG
>C:0b70 GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$5a42 '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 GBBBBBBBBBAAAAPAPAAPAAAAAAAAPABBBBBBBBBG
>C:08a0 GB........AAAAAAAAAAAPAAAAPAAA........BG
>C:08c8 GB.TH.....AAPAAAAAAAAAAPAAAPAA.....HT.BG
>C:08f0 GBBBBBBBBBAAPAAAAAAAAPAAAAAAPABBBBBBBBBG
>C:0918 GB........AAAAAAPAAAPAAAAAAAPA........BG
>C:0940 GB.TH.....AAAAPAAAAAAPAPPAAAAA.....HT.BG
>C:0968 GBBBBBBBBBAPPAAAAAAAAPAPPAAAAABBBBBBBBBG
>C:0990 GB........AAAAPAPAAAAPAAPAAAAA........BG
>C:09b8 GB.TH.....AAAAPAPAAAAPAAPAAPAA.....HT.BG
>C:09e0 GBBBBBBBBBAPPAPAAPAAAAPAAAPAAABBBBBBBBBG
>C:0a08 GB........APPAPAAPAAAAAAAAAAAA........BG
>C:0a30 GB.TH.....AAAAPAAPAAAAAAAAPAAA.....HT.BG
>C:0a58 GBBBBBBBBBAAAAAPAAAPAAAAPAAPAABBBBBBBBBG
>C:0a80 GAAAAPAPAAPAAAAAAAAPAAAAAPAAAAAAAAAAAAPG
>C:0aa8 GAAAAAAPAAA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APA.APAAACCCCCCCCAAAAAAAAA..PAAPAAG
>C:0ad0 GPAA.PAAAAPAAP.PAAAT.AA.AAAAAAA..PAAPAAG
>C:0af8 G.AAA.AAPA.AAAPA..AAAAAPPPPAAPA.A.PAA.PG
>C:0b20 GA.PAAHAPAAAA.A..AAAAAAPP.PAAPAAA..AAAPG
>C:0b48 GPA..AAPA..AAAAAPAPA.AAA..PAAPAAAA.AAAPG
>C:0b70 GAAA..APAP.AAAAAPAPAAAAA...AA.APAAAAPAAG
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$5b24 '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 GTTTPPTTPTTPAPPPPTPTTATTPTTPTTTTPPTPTPPG
>C:08a0 GTPPTTTPPPTPTTPPPPPPTPPTATPTPPPPTPTTPPTG
>C:08c8 GTTPPPPPPPTPTTPPAPPPTPPTTTPTPAPPTPPPTTPG
>C:08f0 GPPTPTTPPPPPPTPPTTTAATTPPTPTTPPTPTTAPPTG
>C:0918 GPPTPTTPPPPPPTPPTATPTPPPPTPTPTPPTTPPTPTG
>C:0940 GTTTPPTPTATTPPTTPPTTTPPTPTPPPATPTTPPTPTG
>C:0968 GPPPPPTPPTTTTAAPPPTPTTAPTPTTPAPPTTTTTTPG
>C:0990 GTPTTBBBBBBBABBBBBTPPPPTPBBBBBBABBBBBBPG
>C:09b8 GTATTB...........BPTTPPPTB...........BPG
>C:09e0 GTPTPB.%D........BPTTPPPTB...........BPG
>C:0a08 GTPPTB...........BPAPPTTPB...........BPG
>C:0a30 GTPPTB...........BTTTTPTPB...........BTG
>C:0a58 GPTTTB...........BTPPTATPB...........BTG
>C:0a80 GPPPPB...........BTPPTTPPB...........BPG
>C:0aa8 GTPTTB...........BAPTPPTPB...........BPG
>C:0ad0 GTPTTB...........BBBBBBBBB...........BPG
>C:0af8 GPPPTB...............................BPG
>C:0b20 GPPPTB...........BTTAPTPTB...........BPG
>C:0b48 GTTPPB...........BPPPTPTTB...........BPG
>C:0b70 GTTAABBBBBBBBBBBBBTPPPTTTBBBBBBBBBBBBBTG
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$5b89 '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 GAAAAAAAAAAAA%AAAAAAAAAAAAAAAAAAAAAAAAAG
>C:08a0 GBBBBBBBBBBBB.BBBBBBBBAAAAAAAAAAAAAAAAAG
>C:08c8 GBAAAATAAAAAAAAAAAAATBAAAAAAAAAAAAAAAAAG
>C:08f0 GBAB.BABBBBBB.BBBBBBABAAAAAAAAAAAAAAAAAG
>C:0918 GBABHBABTAAAAAAAAATBABAAAAAAAAAAAAAAAAAG
>C:0940 GBABHBABABBBB.BBBBABABAAAAAAAAAAAAAAAAAG
>C:0968 GBABHBABABTAAAAATBABABAAAAAAAAAAAAAAAAAG
>C:0990 GBABHBABABABB.BBABABABAAAAAAAAAAAAAAAAAG
>C:09b8 GBABHB.B.B.B...B.B.B.BAAAAAAAAAAAAAAAAAG
>C:09e0 GBABHBHBHBHBHHHBHBHBHBAAAAAAAAAAAAAAAAAG
>C:0a08 GBABHB.B.B.B...B.B.B.BAAAAAAAAAAAAAAAAAG
>C:0a30 GBABHBABABABBBBBABABABAAAAAAAAAAAAAAAAAG
>C:0a58 GBABHBABABTAAAAATBABABAAAAAAAAAAAAAAAAAG
>C:0a80 GBABTBABABBBBBBBBBABABAAAAAAAAAAAAAAAAAG
>C:0aa8 GBABTBABTAAAAAAAAATBABAAAAAAAAAAAAAAAAAG
>C:0ad0 GBABTBABBBBBBBBBBBBBABAAAAAAAAAAAAAAAAAG
>C:0af8 GBABTBTAAAAAAAAAAAAATBAAAAAAAAAAAAAAAAAG
>C:0b20 GBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAG
>C:0b48 GAAAAAAAAAAAAAAAAAAAAAAAAA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APA.HAAPAAA.HAAAPG
>C:0b48 GPAAAAAPA..AAAAAA..AAAAAA..AAPAAA..AAAPG
>C:0b70 GAAAAAAPAAAAAAAAAAAAAAAAAAAAAAAPAAAAPAAG
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$5dc7 '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 G..................GGGGGGGGGGGGGGGGGGGGG
>C:08a0 G.........P........GGGGGGGGGGGGGGGGGGGGG
>C:08c8 G..%......A........GGGGGGGGGGGGGGGGGGGGG
>C:08f0 G..................GGGGGGGGGGGGGGGGGGGGG
>C:0918 G..................GGGGGGGGGGGGGGGGGGGGG
>C:0940 G..................GGGGGGGGGGGGGGGGGGGGG
>C:0968 G..................GGGGGGGGGGGGGGGGGGGGG
>C:0990 G..................GGGGGGGGGGGGGGGGGGGGG
>C:09b8 G..................GGGGGGGGGGGGGGGGGGGGG
>C:09e0 G.........2.......DGGGGGGGGGGGGGGGGGGGGG
>C:0a08 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0a30 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0a58 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0a80 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0aa8 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0ad0 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0af8 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b20 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b48 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b70 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
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GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$5e5b '''
>C:0850 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0878 G.......%..........GGGGGGGGGGGGGGGGGGGGG
>C:08a0 G..................GGGGGGGGGGGGGGGGGGGGG
>C:08c8 G..................GGGGGGGGGGGGGGGGGGGGG
>C:08f0 G..................GGGGGGGGGGGGGGGGGGGGG
>C:0918 G.................DGGGGGGGGGGGGGGGGGGGGG
>C:0940 G..................GGGGGGGGGGGGGGGGGGGGG
>C:0968 G..............HHHHGGGGGGGGGGGGGGGGGGGGG
>C:0990 G..............HHHHGGGGGGGGGGGGGGGGGGGGG
>C:09b8 G..............HHHHGGGGGGGGGGGGGGGGGGGGG
>C:09e0 GTTTTTTTTTTTTTTHHHHGGGGGGGGGGGGGGGGGGGGG
>C:0a08 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0a30 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0a58 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0a80 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0aa8 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0ad0 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0af8 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b20 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b48 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b70 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
>C:0b98 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
'''
$5ea8 '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GGGGGGGGGGGGGGGG
'''
$5ee8 ""
$5f28 ""
$5f28 '''
Cells contain values that represent a game object in a specific
state, like a falling/stationary boulder for example. A falling and
a stationary boulder still look like a boulder. This table translates
a cell's value to the base character for that object.
'''
$5f68 ""
$5f68 v'''
$00[.] - Space
$01[A] - Dirt
$02[B] - Brick wall
$03[C] - Magic wall
$04[D] - Hidden outbox
$05[E] - Outbox
$06[F] - Fragile steel wall
$07[G] - Steel wall
$08[H] - Firefly (left)
$09[I] - Firefly (up)
$0a[J] - Firefly (right)
$0b[K] - Firefly (down)
$0c[L] - *Firefly (left)
$0d[M] - *Firefly (up)
$0e[N] - *Firefly (right)
$0f[O] - *Firefly (down)
$10[P] - Boulder (stationary)
$11[Q] - *Boulder (stationary)
$12[R] - Boulder (falling)
$13[S] - *Boulder (falling)
$14[T] - Diamond (stationary)
$15[U] - *Diamond (stationary)
$16[V] - Diamond (falling)
$17[W] - *Diamond (falling)
$1b[[] - Explosion to space (stage 0) (to be scanned explosions start here)
$1c[\] - Explosion to space (stage 1) (scanned explosions start here)
$1d[]] - Explosion to space (stage 2)
$1e[^] - Explosion to space (stage 3)
$1f[_] - Explosion to space (stage 4)
$20[ ] - Explosion to diamond (stage 0) (to be scanned explosions start here)
$21[!] - Explosion to diamond (stage 1) (scanned explosions start here)
$22["] - Explosion to diamond (stage 2)
$23[#] - Explosion to diamond (stage 3)
$24[$] - Explosion to diamond (stage 4)
$25[%] - Inbox (Rockford's initial position)
$26[&] - Pre-Rockford (stage 1)
$27['] - Pre-Rockford (stage 2)
$28[(] - Pre-Rockford (stage 3)
$30[0] - Butterfly (down)
$31[1] - Butterfly (left)
$32[2] - Butterfly (up)
$33[3] - Butterfly (right)
$34[4] - *Butterfly (down)
$35[5] - *Butterfly (left)
$36[6] - *Butterfly (up)
$37[7] - *Butterfly (right)
$38[8] - Rockford
$39[9] - *Rockford
$3a[:] - Amoeba
$3b[;] - *Amoeba
* = SCANNED
[x] = 'x' is char shown with VICE monitor's 'i' command
'''
$5fe8 v'''
MusicData ($5fe8-$60e7) is copied to CopiedMusicData ($3000-$30ff).
The copied music data is never used, it's copied just to simplify the
copying of the GameCharData. The music data occupies exactly 256 bytes,
and the charset 768 (1k in total).
'''
$60e8 v'''
GameCharData ($60e8-$63e7) copied to GameTiles ($3100-$33ff).
As mentioned above InitAll copies MusicData and GameCharData to $3000.
$3000 is used as the in-game character set (not counting the marquee) and is
accessed by the VIC. Since the music data is 256 bytes, and 256/8 is 32, the
first character is $20. Any character less than that will interpret music
data as graphics.
'''
$66e8 v'''
m-i-c-r-o-..f-u-n-.*-.m-i-c-r-o-..f-u-n-
............p-r-e-s-e-n-t-s-............
'''
$6738 v'''
>C:6738 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
>C:6760 C......................................C
>C:6788 C.HCCCI................................C
>C:67b0 C.HC..H.HCCC.HC.H.HC...HCCI.HCCC.HCCI..C
>C:67d8 C.HCCCJ.HC.H.HC.H.HC...HC.H.HC...HC.H..C
>C:6800 C.HCCCI.HC.H.HC.H.HC...HC.H.HCC..HCCJ..C
>C:6828 C.HC..H.HC.H.HC.H.HC...HC.H.HC...HCCI..C
>C:6850 C.HCCCJ.HCCC.HCCC.HCCC.HCCJ.HCCC.HC.H..C
>C:6878 C......................................C
>C:68a0 C......HCCCI...........................C
>C:68c8 C......HC..H..HCI.HCCC.HC..H.]^_.......C
>C:68f0 C......HC..H.HC.H.HC...HC..H...........C
>C:6918 C......HC..H.HCCC.HCCC.HCCCC...........C
>C:6940 C......HC..H.HC.H...HC.HC..H...........C
>C:6968 C......HCCCJ.HC.H.HCCC.HC..H...........C
>C:6990 C......................................C
>C:69b8 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
'''
$69e8 v'''
.......l-i-c-e-n-s-e-d-..f-r-o-m-.......
.......c-r-a-c-k-e-d-..b-y-..n-o-v-a-...
..............c-..1-9-8-4-..............
.f-i-r-s-t-..s-t-a-r-..s-o-f-t-w-a-r-e-.
m-i-c-r-o-..f-u-n-.*-.m-i-c-r-o-..f-u-n-
........................................
'''
$6ad0 ""
$6ad0 '''
Generate a "random" number based on CIA timers (and the state of the C flag).
The operation is pretty self explanatory. About the only point of interest is
the addition without regard to state of the carry flag.
'''
$6ad9 >"The C flag has a say in things! A bit of extra entropy is sometimes a good thing."
$6ae3 ""
$6ae3 '''
A: Colour to set
Y: Start offset.
The portion of the first line not covered by Y is set to MCM white (brown non-MCM).
'''
$6ae4 "Make first line MCM white (brown non-MCM)."
$6b04 ""
$6b04 '''
Saves the top line. Nothing exciting except for the fact that only
the first character of each pair (most glyphs are two characters wide)
is saved to save space.
'''
$6b16 ""
$6b16 '''
Set the text for the top line. Sniffs the buffer and
colours the text using various dopy heuristics.
IN: LocalVar ($46 & $47) points to the text.
'''
$6b16 >"1 = White"
$6b1c >"$3c is left half of diamond character."
$6b20 >"7 = Yellow"
$6b5d ""
$6b69 ""
$6b69 "NOTE: multiple entry points!"
$6b7c ""
$6b7c v"..by.peter.liepa...."
$6b90 v"..with.chris.grey..."
$6ba4 v"1.player..1.joystick"
$6bb8 v".plyr.1......plyr.2."
$6bcc v".000000.last.000000."
$6be0 v".000000.high.000000."
$6bf4 v".g.a.m.e...o.v.e.r.."
$6c08 v"player.1?.3.men.a?0."
$6c1c v"....out.of.time....."
$6c30 v".b.o.n.u.s..l.i.f.e."
$6c44 v".cave?.a..level?.1.."
$6c58 v".spacebar.to.resume."
$6c6c v"press.button.to.play"
$6c80 ""
$6c80 '''
---------------------------------------------------------------
INPUTS:
ObjectTypeForScreenUpdate $8A = Object code
InflatedCaveOutputOutputPtr $36 & $37 = Position
NOTES:
Call SetInflatedCaveOutputPtr to set InflatedCaveOutputPtr
Inflated Cave: $4003 - $4dc2
---------------------------------------------------------------
'''
$6c9b ""
$6c9b '''
---------------------------------------------
INPUTS:
.InflatedCaveCurrentCellPtr $34 & 35
y = Offset
OUTPUT:
.InflatedCaveOutputPtr $36 & $37
Inflated Cave: $4003 - $4dc2
---------------------------------------------
'''
$6cb6 ""
$6cb6 '''
Set a cell in the cave (where the game logic occurs) and the inflated cave
(staging area for screen, each cell is presented as 2x2 characters).
A contains the object type and Y the offset from the current position.
A is preseCaverved.
'''
$6cb8 >"the cave"
$6cd1 >"the inflated cave"
$6cd7 ""
$6ced ""
$6ced v'''
.RandSeed1
...........\/............
|b7|b6|b5|b4|b3|b2|b1|b0|
...........\/............ C
|b0| 0| 0| 0| 0| 0| 0| 0|--->|b1|
...........\/............
.SeededRandTemp1
'''
$6cf6 ""
$6cf6 v'''
.RandSeed2
...........\/............
|b7|b6|b5|b4|b3|b2|b1|b0|
...........\/............ C
|0 |b7|b6|b5|b4|b3|b2|b1|--->|b0|
...........\/............
.SeededRandTemp2
'''
$6cfe '''
.\/RandSeed2
...........\/............
|b7|b6|b5|b4|b3|b2|b1|b0|
...........\/............ C
|b0| 0| 0| 0| 0| 0| 0| 0|--->|b1|
...........\/............
....+(RandSeed2+0x13)....
.\/RandSeed2
'''
$6d0b ""
$6d16 ""
$6d16 "Update one cave cell and on screen provided it isn't steel wall."
$6d18 "Object $07 = steel wall."
$6d54 "Handler for object $04."
$6d5a "Object $05 = flashing outbox."
$6d22 '''
Specify object type for fill in ObjectTypeForUpdateCaveCell (v).
If the starred cell is the current cell the update occurs as shown:
-------------
| | | |
|---+---+---|
| v |*v*|v-1|
|---+---+---|
|v-1|v-1|v-1|
|---+---+---|
|v-1|v-1|v-1|
-------------
'''
$6d2c '''
The decrement backs off the fill type for squares yet to
be processed -- eg. back from explosion stage 1 to stage 0.
'''
$6d62 '''
Specify object type for fill in ObjectTypeForUpdateCaveCell (v).
If the starred cell is the current cell the update occurs as shown:
-------------
| v | v | v |
|---+---+---|
| v |*v*|v-1|
|---+---+---|
|v-1|v-1|v-1|
-------------
'''
$6d7b '''
The decrement backs off the fill type for squares yet to
be processed -- eg. back from explosion stage 1 to stage 0.
'''
$6d91 "This is used by both Set3x3 functions."
$6da5 "All values for one SID voice."
$6dac "Matrix offset values used for firefly and butterfly turns."
$6db4 '''
X is zeroed when the test succeeds. Note that this function tests
for both scanned and unscanned Rockfords, but only pre-existing amoeba.
'''
$6db6 "Object $38 = Rockford."
$6dba "Object $3b = Amoeba created this frame."
$6dc1 "Sets the Z flag when an explosion should occur."
$6dda ""
$6ddf "Install an explosion to space."
$6de9 "Get the direction the firefly is facing: 0=left, 1=up, 2=right, 3=down."
$6df0 "Check if there is a space to the firefly's left."
$6df7 "Turn left and move."
$6e05 "Check if there is a space straight ahead."
$6e0c "Move straight ahead."
$6e19 "Turn right, but do not move."
$6e28 ""
$6e4f "All values for one SID voice."
$6e56 ""
$6e65 '''
Tests if an object is slippery.
In:
A: The object code to test.
Out:
Z: 1 if slippery.
Modified:
X
'''
$6e7c ""
$6e7e "Test for hitting a butterfly."
$6e8c "Remember to explode to diamonds."
$6e98 "Test for hitting a firefly."
$6ea6 "Remember to explode to space."
$6ead ""
$6eb2 "Install an explosion to diamonds."
$6ebc "Get the direction the butterfly is facing: 0=down, 1=left, 2=up, 3=right."
$6ec3 "Check if there is a space to the right."
$6eca "Turn right and move."
$6ed8 "Check if there is a space straight ahead."
$6edf "Move straight ahead."
$6eec "Turn left, but do not move."
$6efb ""
$6f05 ""
$6f07 "Check for a space below."
$6f0b "Move the falling diamond down one row, and mark as scanned."
$6f13 "Check for a magic wall below."
$6f17 "Has the magic wall already been activated?"
$6f1b "Activate the magic wall."
$6f1f "Is the magic wall still active? If not the diamond will just be consumed."
$6f23 "Is the row below the magic wall empty? If not the diamond will just be consumed."
$6f29 "Convert the diamond to a (scanned) falling boulder below the magic wall."
$6f34 "Tinkle while the diamond falls."
$6f37 "Check if the diamond has hit a slippery object."
$6f40 "Is there a space below-left?"
$6f46 "Is there a space left?"
$6f4c "Move the diamond left."
$6f54 "Is there a space below-right?"
$6f5a "Is there a space right?"
$6f60 "Move the diamond right."
$6f68 "The diamond is on a slippery object, but can't fall left or right."
$6f6b "Have we hit Rockford on the head?"
$6f6f "Poor old Rockford is dead -- explode him to space."
$6f79 "Have we hit an animal?"
$6f7e "Explode the animal."
$6f84 "Can't do anything interesting, so convert to a stationary diamond."
$6f87 ""
$6f89 "Is there a space below the diamond?"
$6f8d "Convert to a scanned falling diamond and move down."
$6f98 "Is the diamond sitting on a slippery object?"
$6fa1 "Is there a space below-left?"
$6fa7 "Is there a space left?"
$6fad "Move the diamond left."
$6fb5 "Is there a space below-right?"
$6fbb "Is there a space right?"
$6fc1 "Move the diamond right."
$6fcc ""
$6fd0 ""
$6fda v"$11 = Scanned stationary boulder."
$6fe6 "$14 = Stationary diamond."
$7000 '''
$00 = Space, $01 = Dirt, $02 = Brick wall.
Amoeba can grow into space and dirt. It is confined by anything else.
'''
$7031 "$3b = Scanned amoeba."
$7039 ""
$705d "You get an extra life every 500 points."
$7080 ""
$7080 v '''
$32, $2f:
A frequency value of $2f32. On PAL machines this gives a
frequency of 709.5212042331696 HZ
Calculated using this formula (PAL): (reg*985250)/16777216
$00, $00:
Pulse width. N/A
$81:
Control register
Noise waveform, ADSR cycle
$19:
Attack 8 ms, Decay 750 ms
$01:
Sustain volume of 0, Release 24 ms
'''
$708c ""
$70c5 ""
$70c5 v"Subtract one from time (it'a a zero-based string)."
$70dc ""
$70e0 ""
$7105 ""
$7111 ""
$712d ""
$713d "Update the diamond count in CurrentPlayerInfoText."
$7144 ""
$715e ""
$716a "Quota reached."
$716e "Set score increment to the value of diamonds above the quota."
$717a "Display diamonds where the diamond quota used to be displayed."
$7182 "Diamond quota FX."
$718a ""
$7191 ""
$71ab ""
$71bd ""
$7236 v'''
8 4 2 1
-------
. . . * Up - $e (14)
. . * . Down - $d (13)
. * . . Left - $b (11)
* . . . Right - $7 (7)
* . . * ur - $6 (6)
* . * . dr - $5 (5)
. * * . dl - $9 (9)
. * . * ul - $a (10)
'''
$7244 '''