blob: f33a5748136eec1f64b2890d76f0f5d777dab3dd (
plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
|
// MADS Script Engine auto-generated script file
// Special #defines
#define INDEX_BLOCK_SIZE 8192
#define GAME_ID REX
#define LANGUAGE ENGLISH
// List of data variables
#define Scene_abortTimersMode2 1
#define Scene_abortTimers 2
#define Player_stepEnabled 3
#define Scene_nextScene 4
#define Scene_priorSceneId 5
#define Player_playerPos_x 6
#define Player_playerPos_y 7
#define Player_direction 8
#define Player_visible 9
#define Scene_activeAnimation 10
#define Animation_currentFrame 11
// Library function list
#define dialog_show 1
#define SequenceList_remove 2
#define start_reversible_sprite_sequence 3
#define SequenceList_setAnimRange 4
#define SequenceList_addSubEntry 5
#define start_cycled_sprite_sequence 6
#define quotes_get_pointer 7
#define KernelMessageList_add 8
#define SequenceList_unk3 9
#define start_sound 10
#define SceneLogic_formAnimName 11
#define SpriteList_addSprites 12
#define hotspot_activate 13
#define DynamicHotspots_add 14
#define SequenceList_setDepth 15
#define quotes_load 16
#define form_resource_name 17
#define MadsScene_loadAnimation 18
#define Action_isAction 19
#define start_sprite_sequence3 20
#define DynamicHotspots_remove 21
#define object_is_present 22
#define inventory_add 23
#define dialog_picture_show 24
#define object_is_in_inventory 25
// Script functions start here
sub scene101_sub1
ONE
DSTORE Scene_abortTimersMode2 // 2ecf2h
ZERO
DSTORE Player_stepEnabled // 2ecf8h
DLOAD Scene_abortTimers // 2ecfeh
STORE 0
JUMP @2edc0 // 2ed01h
@2ed04:
DLOAD $546E // 2ed04h
STORE 0
LOAD 0
LIBCALL SequenceList_remove
ZERO
ZERO
IMM 6 // 2ed10h
DLOAD $5450 // 2ed12h
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_reversible_sprite_sequence
STORE 0 // 2ed1ah
LOAD 0 // 2ed1fh
DSTORE $546E
IMM 21
IMM 17
LOAD 0
LIBCALL SequenceList_setAnimRange
IMM 72 // 2ed2dh
DLOAD $546E // 2ed2fh
STORE 0
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2ed36h
IMM 17 // 2ed3bh
LIBCALL start_sound
ZERO
ZERO
IMM 2 // 2ed49h
DLOAD $544A // 2ed4bh
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2ed53h
LOAD 0 // 2ed58h
DSTORE $5468
RET
@2ed5c:
ZERO
ZERO
ZERO
DLOAD $5450 // 2ed62h
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2ed6ah
LOAD 0 // 2ed6fh
DSTORE $546E
IMM 17 // 2ed75h
IMM 17
IMM 17
LOAD 0
LIBCALL SequenceList_setAnimRange
IMM 57
LIBCALL quotes_get_pointer
ZERO
IMM 60 // 2ed90h
ZERO
ZERO
IMM $1110
IMM 61
IMM 143
LIBCALL KernelMessageList_add
STORE 0 // 2ed9fh
IMM 120
LIBCALL SequenceList_unk3
STORE 0 // 2edaah
RET
@2edb0:
IMM $2785
ZERO
LIBCALL dialog_show
MINUSONE
DSTORE Player_stepEnabled // 2edb9h
RET
@2edc0:
LOAD 0 // 2edc0h
DUP
STORE 4
IMM 73
DUP
STORE 5
EQUAL
JMPTRUE @2edb0 // 2edc3h
LOAD 4 // 2edc5h
LOAD 5
GREAT
JMPTRUE @2edd2
LOAD 0 // 2edc7h
ZERO
NEQUAL
JMPTRUE @2edce // 2edc9h
JUMP @2ed04 // 2edcbh
@2edce:
LOAD 0 // 2edceh
IMM 72
MINUS
STORE 0
LOAD 0 // 2edd0h
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2ed5c
@2edd2:
RET
end
sub low_rooms_entry_sound
DLOAD $5A00 // 2b48ch
ZERO
NEQUAL
JMPTRUE @2b49e // 2b491h
IMM 2 // 2b493h
@2b495:
LIBCALL start_sound
RET
@2b49e:
DLOAD Scene_nextScene // 2b49eh
STORE 0
JUMP @2b4d8 // 2b4a1h
@2b4a4:
IMM 11 // 2b4a4h
JUMP @2b495 // 2b4a6h
@2b4a8:
IMM 12 // 2b4a8h
JUMP @2b495 // 2b4aah
@2b4ac:
IMM 3 // 2b4ach
LIBCALL start_sound
IMM 25 // 2b4b6h
JUMP @2b495 // 2b4b8h
@2b4ba:
DLOAD Scene_priorSceneId // 2b4bah
IMM 104
LESS
JMPTRUE @2b4c8 // 2b4bfh
DLOAD Scene_priorSceneId // 2b4c1h
IMM 108
LEQUAL
JMPTRUE @2b500 // 2b4c6h
@2b4c8:
IMM 10 // 2b4c8h
JUMP @2b495 // 2b4cah
@2b4cc:
IMM 13 // 2b4cch
JUMP @2b495 // 2b4ceh
@2b4d0:
IMM 3 // 2b4d0h
JUMP @2b495 // 2b4d2h
@2b4d4:
IMM 15 // 2b4d4h
JUMP @2b495 // 2b4d6h
@2b4d8:
LOAD 0 // 2b4d8h
IMM 101
MINUS
STORE 0
LOAD 0 // 2b4dbh
IMM 11
GREAT
JMPTRUE @2b500 // 2b4deh
LOAD 0 // 2b4e0h
IMM 2
MULT
LOAD 0 // 2b4e2h
LOAD 1
STORE 0
//--- Begin Jump Table ---
LOAD 1
ZERO
EQUAL
JMPTRUE @2b4a4
LOAD 1
ONE
EQUAL
JMPTRUE @2b4a8
LOAD 1
IMM 2
EQUAL
JMPTRUE @2b4ac
LOAD 1
IMM 3
EQUAL
JMPTRUE @2b4ba
LOAD 1
IMM 4
EQUAL
JMPTRUE @2b4ba
LOAD 1
IMM 5
EQUAL
JMPTRUE @2b4ba
LOAD 1
IMM 6
EQUAL
JMPTRUE @2b4ba
LOAD 1
IMM 7
EQUAL
JMPTRUE @2b4ba
LOAD 1
IMM 8
EQUAL
JMPTRUE @2b4cc
LOAD 1
IMM 9
EQUAL
JMPTRUE @2b4c8
LOAD 1
IMM 10
EQUAL
JMPTRUE @2b4d0
LOAD 1
IMM 11
EQUAL
JMPTRUE @2b4d4
//--- End Jump Table ---
@2b500:
RET
end
sub scene101_enter
ONE
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2c985h
LOAD 0 // 2c98ah
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2c98eh
LOAD 0 // 2c993h
DSTORE $543C
IMM 2
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2c99bh
LOAD 0 // 2c9a0h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2c9a4h
LOAD 0 // 2c9a9h
DSTORE $543E
IMM 3
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2c9b1h
LOAD 0 // 2c9b6h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2c9bah
LOAD 0 // 2c9bfh
DSTORE $5440
IMM 4
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2c9c7h
LOAD 0 // 2c9cch
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2c9d0h
LOAD 0 // 2c9d5h
DSTORE $5442
IMM 5
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2c9ddh
LOAD 0 // 2c9e2h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2c9e6h
LOAD 0 // 2c9ebh
DSTORE $5444
IMM 6
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2c9f3h
LOAD 0 // 2c9f8h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2c9fch
LOAD 0 // 2ca01h
DSTORE $5446
IMM 7
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2ca09h
LOAD 0 // 2ca0eh
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2ca12h
LOAD 0 // 2ca17h
DSTORE $5448
MINUSONE
IMM 109
LIBCALL SceneLogic_formAnimName
STORE 0 // 2ca1fh
LOAD 0 // 2ca24h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2ca28h
LOAD 0 // 2ca2dh
DSTORE $544A
ONE
IMM 98
LIBCALL SceneLogic_formAnimName
STORE 0 // 2ca35h
LOAD 0 // 2ca3ah
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2ca3eh
LOAD 0 // 2ca43h
DSTORE $544C
IMM 2
IMM 98
LIBCALL SceneLogic_formAnimName
STORE 0 // 2ca4bh
LOAD 0 // 2ca50h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2ca54h
LOAD 0 // 2ca59h
DSTORE $544E
ZERO
IMM 97
LIBCALL SceneLogic_formAnimName
STORE 0 // 2ca60h
LOAD 0 // 2ca65h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2ca69h
LOAD 0 // 2ca6eh
DSTORE $5450
ONE
IMM 97
LIBCALL SceneLogic_formAnimName
STORE 0 // 2ca76h
LOAD 0 // 2ca7bh
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2ca7fh
LOAD 0 // 2ca84h
DSTORE $5452
IMM 8
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2ca8ch
LOAD 0 // 2ca91h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2ca95h
LOAD 0 // 2ca9ah
DSTORE $5454
ZERO
IMM 120
LIBCALL SceneLogic_formAnimName
STORE 0 // 2caa1h
LOAD 0 // 2caa6h
STORE 1
ZERO
LOAD 1
LIBCALL SpriteList_addSprites
STORE 0 // 2caaah
LOAD 0 // 2caafh
DSTORE $5456
IMM 25 // 2cab2h
ZERO
ZERO
DLOAD $543C // 2cab8h
STORE 0
IMM 5
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cac0h
LOAD 0 // 2cac5h
DSTORE $545A
ZERO
ONE
ZERO
DLOAD $543E // 2caceh
STORE 0
IMM 4
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cad6h
LOAD 0 // 2cadbh
DSTORE $545C
ZERO
IMM 2 // 2cae0h
ZERO
DLOAD $5440 // 2cae4h
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2caech
LOAD 0 // 2caf1h
DSTORE $545E
IMM 70 // 2caf4h
IMM 7
IMM 2
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2cafch
IMM 60 // 2cb01h
ZERO
ZERO
DLOAD $5442 // 2cb07h
STORE 0
IMM 10
ZERO
LOAD 0
LIBCALL start_reversible_sprite_sequence
STORE 0 // 2cb0fh
LOAD 0 // 2cb14h
DSTORE $5460
ZERO
ONE
ZERO
DLOAD $5444 // 2cb1dh
STORE 0
IMM 5
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cb25h
LOAD 0 // 2cb2ah
DSTORE $5462
ZERO
IMM 2 // 2cb2fh
ZERO
DLOAD $5446 // 2cb33h
STORE 0
IMM 10
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cb3bh
LOAD 0 // 2cb40h
DSTORE $5464
ZERO
ZERO
ZERO
DLOAD $5448 // 2cb49h
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cb51h
LOAD 0 // 2cb56h
DSTORE $5466
IMM 4 // 2cb59h
IMM 10 // 2cb5bh
ZERO
DLOAD $544C // 2cb5fh
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cb67h
LOAD 0 // 2cb6ch
DSTORE $546A
IMM 47 // 2cb6fh
IMM 32 // 2cb71h
ZERO
DLOAD $544E // 2cb75h
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cb7dh
LOAD 0 // 2cb82h
DSTORE $546C
ZERO
IMM 311
LIBCALL hotspot_activate
ZERO
DSTORE $547E // 2cb8eh
DLOAD Scene_priorSceneId // 2cb94h
MINUSONE
EQUAL
JMPTRUE @2cba1 // 2cb99h
ZERO
GSTORE 10 // 2cb9bh
@2cba1:
DLOAD Scene_priorSceneId // 2cba1h
IMM $FFFE
EQUAL
JMPTRUE @2cbb4 // 2cba6h
IMM 100 // 2cba8h
DSTORE Player_playerPos_x
IMM 152 // 2cbaeh
DSTORE Player_playerPos_y
@2cbb4:
DLOAD Scene_priorSceneId // 2cbb4h
IMM 112
EQUAL
JMPTRUE @2cbc9 // 2cbb9h
DLOAD Scene_priorSceneId // 2cbbbh
IMM $FFFE
NEQUAL
JMPTRUE @2cc36 // 2cbc0h
DLOAD $5476 // 2cbc2h
ZERO
EQUAL
JMPTRUE @2cc36 // 2cbc7h
@2cbc9:
IMM 161 // 2cbcfh
DSTORE Player_playerPos_x
IMM 123 // 2cbd5h
DSTORE Player_playerPos_y
IMM 9 // 2cbdbh
DSTORE Player_direction
ZERO
ZERO
ZERO
DLOAD $5450 // 2cbe7h
STORE 0
ZERO
DSTORE Player_visible // 2cbech
IMM 3
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cbf3h
LOAD 0 // 2cbf8h
DSTORE $546E
IMM 17 // 2cbfeh
IMM 17
IMM 17
LOAD 0
LIBCALL SequenceList_setAnimRange
ZERO
IMM 71
LIBCALL hotspot_activate
IMM 159 // 2cc0eh
IMM 84 // 2cc11h
IMM 33 // 2cc13h
IMM 36 // 2cc15h
MINUSONE
IMM 319
IMM 71
LIBCALL DynamicHotspots_add
STORE 0 // 2cc20h
LOAD 0 // 2cc25h
DSTORE $5478
DLOAD Scene_priorSceneId // 2cc28h
IMM 112
NEQUAL
JMPTRUE @2cc54 // 2cc2dh
CALL scene101_sub1
JUMP @2cc54 // 2cc34h
@2cc36:
ZERO
ZERO
ZERO
DLOAD $5452 // 2cc3ch
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2cc44h
LOAD 0 // 2cc49h
DSTORE $5470
IMM 4
LOAD 0
LIBCALL SequenceList_setDepth
@2cc54:
ZERO
IMM 56 // 2cc56h
IMM 55 // 2cc58h
IMM 54 // 2cc5ah
IMM 57 // 2cc5ch
IMM 50 // 2cc5eh
IMM 49 // 2cc60h
LIBCALL quotes_load
STORE 0 // 2cc62h
LOAD 0 // 2cc6ah
DSTORE $5674
GLOAD 10 // 2cc71h
ZERO
EQUAL
JMPTRUE @2ccb8 // 2cc76h
ZERO
ZERO
IMM 2 // 2cc7ch
MINUSONE
IMM 83
IMM 101
LIBCALL form_resource_name
STORE 0 // 2cc86h
LOAD 0 // 2cc8bh
STORE 1
LOAD 1
IMM 71
LIBCALL MadsScene_loadAnimation
IMM 68 // 2cc95h
DSTORE Player_playerPos_x
IMM 140 // 2cc9bh
DSTORE Player_playerPos_y
IMM 4 // 2cca1h
DSTORE Player_direction
ZERO
DSTORE Player_visible // 2cca9h
ZERO
DSTORE Player_stepEnabled // 2ccach
ZERO
DSTORE $5482 // 2ccafh
IMM 30 // 2ccb2h
DSTORE $5484
@2ccb8:
ZERO
DSTORE $5486 // 2ccb8h
CALL low_rooms_entry_sound
RET
end
sub scene101_step
DLOAD $56E4 // 2eb30h
STORE 0
DLOAD $5486 // 2eb33h
LOAD 0
EQUAL
JMPTRUE @2eb4e // 2eb37h
LOAD 0 // 2eb39h
DSTORE $5486
LOAD 0 // 2eb3ch
ZERO
EQUAL
JMPTRUE @2eb44 // 2eb3eh
IMM 39 // 2eb40h
JUMP @2eb46 // 2eb42h
@2eb44:
IMM 11 // 2eb44h
@2eb46:
LIBCALL start_sound
@2eb4e:
DLOAD Scene_abortTimers // 2eb4eh
STORE 0
JUMP @2eb92 // 2eb51h
@2eb54:
IMM 9 // 2eb54h
LIBCALL start_sound
JUMP @2eba0 // 2eb5eh
@2eb60:
ZERO
GSTORE 10 // 2eb60h
MINUSONE
DSTORE Player_visible // 2eb69h
MINUSONE
DSTORE Player_stepEnabled // 2eb6ch
DLOAD $56E8 // 2eb6fh
STORE 0
DLOAD $542A // 2eb73h
STORE 2
ZERO
STORE 1 // 2eb77h
LOAD 2 // 2eb7bh
LOAD 0
MINUS
STORE 2
LOAD 2 // 2eb7fh
DSTORE $57D0
JUMP @2eba0 // 2eb87h
@2eb8a:
CALL scene101_sub1
JUMP @2eba0 // 2eb8fh
@2eb92:
LOAD 0 // 2eb92h
IMM 70
MINUS
STORE 0
LOAD 0 // 2eb95h
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2eb54
LOAD 0 // 2eb97h
ONE
MINUS
STORE 0
LOAD 0 // 2eb98h
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2eb60
LOAD 0 // 2eb9ah
ONE
MINUS
STORE 0
LOAD 0 // 2eb9bh
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2eb8a
LOAD 0 // 2eb9dh
ONE
MINUS
STORE 0
LOAD 0 // 2eb9eh
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2eb8a
@2eba0:
ZERO
STORE 0 // 2eba0h
LOAD 0 // 2eba3h
DLOAD Scene_activeAnimation
OR
ZERO
NEQUAL
JMPTRUE @2ebac // 2eba7h
JUMP @2ecf1 // 2eba9h
@2ebac:
DLOAD Animation_currentFrame // 2ebach
IMM 6
LESS
JMPTRUE @2ebed // 2ebb1h
DLOAD $5482 // 2ebb3h
ZERO
NEQUAL
JMPTRUE @2ebed // 2ebb8h
DLOAD $5482 // 2ebbah
ONE
PLUS
DSTORE $5482
IMM 49
LIBCALL quotes_get_pointer
ZERO
IMM 240 // 2ebd2h
ZERO
ZERO
DLOAD $5484 // 2ebd9h
STORE 3
IMM $1110
LOAD 3
IMM 63
LIBCALL KernelMessageList_add
STORE 0 // 2ebe3h
DLOAD $5484 // 2ebe8h
IMM 14
PLUS
DSTORE $5484
@2ebed:
DLOAD Animation_currentFrame // 2ebedh
IMM 7
LESS
JMPTRUE @2ec2e // 2ebf2h
DLOAD $5482 // 2ebf4h
ONE
NEQUAL
JMPTRUE @2ec2e // 2ebf9h
DLOAD $5482 // 2ebfbh
ONE
PLUS
DSTORE $5482
IMM 54
LIBCALL quotes_get_pointer
ZERO
IMM 240 // 2ec13h
ZERO
ZERO
DLOAD $5484 // 2ec1ah
STORE 3
IMM $1110
LOAD 3
IMM 63
LIBCALL KernelMessageList_add
STORE 0 // 2ec24h
DLOAD $5484 // 2ec29h
IMM 14
PLUS
DSTORE $5484
@2ec2e:
DLOAD Animation_currentFrame // 2ec2eh
IMM 10
LESS
JMPTRUE @2ec6f // 2ec33h
DLOAD $5482 // 2ec35h
IMM 2
NEQUAL
JMPTRUE @2ec6f // 2ec3ah
DLOAD $5482 // 2ec3ch
ONE
PLUS
DSTORE $5482
IMM 55
LIBCALL quotes_get_pointer
ZERO
IMM 240 // 2ec54h
ZERO
ZERO
DLOAD $5484 // 2ec5bh
STORE 3
IMM $1110
LOAD 3
IMM 63
LIBCALL KernelMessageList_add
STORE 0 // 2ec65h
DLOAD $5484 // 2ec6ah
IMM 14
PLUS
DSTORE $5484
@2ec6f:
DLOAD Animation_currentFrame // 2ec6fh
IMM 17
LESS
JMPTRUE @2ecb0 // 2ec74h
DLOAD $5482 // 2ec76h
IMM 3
NEQUAL
JMPTRUE @2ecb0 // 2ec7bh
DLOAD $5482 // 2ec7dh
ONE
PLUS
DSTORE $5482
IMM 56
LIBCALL quotes_get_pointer
ZERO
IMM 240 // 2ec95h
ZERO
ZERO
DLOAD $5484 // 2ec9ch
STORE 3
IMM $1110
LOAD 3
IMM 63
LIBCALL KernelMessageList_add
STORE 0 // 2eca6h
DLOAD $5484 // 2ecabh
IMM 14
PLUS
DSTORE $5484
@2ecb0:
DLOAD Animation_currentFrame // 2ecb0h
IMM 20
LESS
JMPTRUE @2ecf1 // 2ecb5h
DLOAD $5482 // 2ecb7h
IMM 4
NEQUAL
JMPTRUE @2ecf1 // 2ecbch
DLOAD $5482 // 2ecbeh
ONE
PLUS
DSTORE $5482
IMM 50
LIBCALL quotes_get_pointer
ZERO
IMM 240 // 2ecd6h
ZERO
ZERO
DLOAD $5484 // 2ecddh
STORE 3
IMM $1110
LOAD 3
IMM 63
LIBCALL KernelMessageList_add
STORE 0 // 2ece7h
DLOAD $5484 // 2ecech
IMM 14
PLUS
DSTORE $5484
@2ecf1:
RET
end
sub scene101_preaction
ZERO
IMM 384 // 2edd6h
IMM 3 // 2edd9h
LIBCALL Action_isAction
STORE 0 // 2eddbh
LOAD 0 // 2ede3h
ZERO
EQUAL
JMPTRUE @2eded // 2ede5h
MINUSONE
DSTORE $56F2 // 2ede7h
@2eded:
DLOAD $5476 // 2ededh
ZERO
NEQUAL
JMPTRUE @2edf7 // 2edf2h
JUMP @2eea9 // 2edf4h
@2edf7:
ZERO
IMM 3 // 2edf9h
LIBCALL Action_isAction
STORE 0 // 2edfbh
LOAD 0 // 2ee03h
ZERO
NEQUAL
JMPTRUE @2ee44 // 2ee05h
LOAD 0 // 2ee07h
IMM 71 // 2ee08h
LIBCALL Action_isAction
STORE 0 // 2ee0ah
LOAD 0 // 2ee12h
ZERO
NEQUAL
JMPTRUE @2ee44 // 2ee14h
LOAD 0 // 2ee16h
IMM 8 // 2ee17h
LIBCALL Action_isAction
STORE 0 // 2ee19h
LOAD 0 // 2ee21h
ZERO
NEQUAL
JMPTRUE @2ee44 // 2ee23h
LOAD 0 // 2ee25h
IMM 259 // 2ee26h
LIBCALL Action_isAction
STORE 0 // 2ee29h
LOAD 0 // 2ee31h
ZERO
NEQUAL
JMPTRUE @2ee44 // 2ee33h
LOAD 0 // 2ee35h
IMM 125 // 2ee36h
LIBCALL Action_isAction
STORE 0 // 2ee38h
LOAD 0 // 2ee40h
ZERO
EQUAL
JMPTRUE @2ee4a // 2ee42h
@2ee44:
ZERO
DSTORE $56F2 // 2ee44h
@2ee4a:
DLOAD $56F2 // 2ee4ah
ZERO
EQUAL
JMPTRUE @2eea9 // 2ee4fh
DLOAD Scene_abortTimers // 2ee51h
STORE 0
LOAD 0 // 2ee54h
ZERO
EQUAL
JMPTRUE @2ee60 // 2ee56h
LOAD 0 // 2ee58h
ONE
MINUS
STORE 0
LOAD 0 // 2ee59h
STORE 4
LOAD 4
ZERO
NEQUAL
JMPTRUE @2ee5e
JUMP @2eee0 // 2ee5bh
@2ee5e:
JUMP @2eea9 // 2ee5eh
@2ee60:
ZERO
DSTORE $56F4 // 2ee62h
ZERO
DSTORE Player_stepEnabled // 2ee65h
DLOAD $546E // 2ee68h
STORE 0
LOAD 0
LIBCALL SequenceList_remove
ZERO
ZERO
ONE
DLOAD $5450 // 2ee76h
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_sprite_sequence3
STORE 0 // 2ee7eh
LOAD 0 // 2ee83h
DSTORE $546E
ONE
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2ee8ch
DLOAD $546E // 2ee91h
STORE 0
IMM 17
ONE
LOAD 0
LIBCALL SequenceList_setAnimRange
IMM 16 // 2ee9fh
LIBCALL start_sound
@2eea9:
DLOAD $547E // 2eea9h
ZERO
NEQUAL
JMPTRUE @2eeb3 // 2eeaeh
JUMP @2ef9f // 2eeb0h
@2eeb3:
ZERO
IMM 309 // 2eeb5h
LIBCALL Action_isAction
STORE 0 // 2eeb8h
LOAD 0 // 2eec0h
ZERO
EQUAL
JMPTRUE @2eec7 // 2eec2h
JUMP @2ef9f // 2eec4h
@2eec7:
LOAD 0 // 2eec7h
IMM 311 // 2eec8h
LIBCALL Action_isAction
STORE 0 // 2eecbh
LOAD 0 // 2eed3h
ZERO
EQUAL
JMPTRUE @2eeda // 2eed5h
JUMP @2ef9f // 2eed7h
@2eeda:
DLOAD Scene_abortTimers // 2eedah
STORE 0
JUMP @2ef98 // 2eeddh
@2eee0:
MINUSONE
DSTORE Player_visible // 2eee9h
MINUSONE
DSTORE Player_stepEnabled // 2eeedh
MINUSONE
DSTORE $56F4 // 2eef1h
MINUSONE
IMM 71
LIBCALL hotspot_activate
DLOAD $5478 // 2eefdh
STORE 0
LOAD 0
LIBCALL DynamicHotspots_remove
ZERO
ZERO
ZERO
DLOAD $5452 // 2ef0bh
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2ef13h
LOAD 0 // 2ef18h
DSTORE $5470
IMM 4
LOAD 0
LIBCALL SequenceList_setDepth
JUMP @2eea9 // 2ef23h
@2ef26:
DLOAD $56F2 // 2ef26h
ZERO
EQUAL
JMPTRUE @2ef9f // 2ef2bh
DLOAD $5472 // 2ef2dh
STORE 0
LOAD 0
LIBCALL SequenceList_remove
IMM 24
LIBCALL object_is_present
STORE 0 // 2ef38h
ONE
STORE 4 // 2ef3dh
LOAD 0
ONE
EQUAL
JMPFALSE @2ef42
ZERO
STORE 4
@2ef42:
LOAD 4
STORE 0
LOAD 0 // 2ef45h
IMM 13
PLUS
STORE 0
LOAD 0 // 2ef48h
DSTORE $5480
ZERO
ZERO
ONE
LOAD 0 // 2ef51h
STORE 1
LOAD 1 // 2ef53h
IMM 2
MULT
IMM 6
ZERO
ONE
LIBCALL start_sprite_sequence3
STORE 0 // 2ef5eh
LOAD 0 // 2ef63h
DSTORE $5472
ONE
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2ef6ch
ZERO
DSTORE Player_stepEnabled // 2ef71h
IMM 20 // 2ef77h
LIBCALL start_sound
RET
@2ef82:
MINUSONE
DSTORE Player_stepEnabled // 2ef82h
ZERO
DSTORE $547E // 2ef8ah
ZERO
IMM 311
LIBCALL hotspot_activate
RET
@2ef98:
LOAD 0 // 2ef98h
ZERO
EQUAL
JMPTRUE @2ef26 // 2ef9ah
LOAD 0 // 2ef9ch
ONE
MINUS
STORE 0
LOAD 0 // 2ef9dh
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2ef82
@2ef9f:
RET
end
sub scene101_actions
DLOAD $577A // 2efa0h
ZERO
EQUAL
JMPTRUE @2efae // 2efa5h
DLOAD 0 // 2efaah
STORE 0
JUMP @2f28f
@2efae:
ZERO
IMM 204 // 2efb0h
IMM 13 // 2efb3h
LIBCALL Action_isAction
STORE 0 // 2efb5h
LOAD 0 // 2efbdh
ZERO
EQUAL
JMPTRUE @2efca // 2efbfh
IMM 102 // 2efc1h
DSTORE Scene_nextScene
JUMP @2f6b4 // 2efc7h
@2efca:
ZERO
IMM 71 // 2efcch
IMM 319 // 2efceh
LIBCALL Action_isAction
STORE 0 // 2efd1h
LOAD 0 // 2efd9h
ZERO
NEQUAL
JMPTRUE @2eff9 // 2efdbh
LOAD 0 // 2efddh
IMM 384 // 2efdeh
IMM 3 // 2efe1h
LIBCALL Action_isAction
STORE 0 // 2efe3h
LOAD 0 // 2efebh
ZERO
NEQUAL
JMPTRUE @2eff2 // 2efedh
JUMP @2f072 // 2efefh
@2eff2:
DLOAD $5476 // 2eff2h
ZERO
NEQUAL
JMPTRUE @2f072 // 2eff7h
@2eff9:
DLOAD $5476 // 2eff9h
ZERO
EQUAL
JMPTRUE @2f003 // 2effeh
JUMP @2f120 // 2f000h
@2f003:
DLOAD Scene_abortTimers // 2f003h
STORE 0
LOAD 0 // 2f006h
ZERO
EQUAL
JMPTRUE @2f016 // 2f008h
LOAD 0 // 2f00ah
ONE
MINUS
STORE 0
LOAD 0 // 2f00bh
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2f068
LOAD 0 // 2f00dh
ONE
MINUS
STORE 0
LOAD 0 // 2f00eh
STORE 4
LOAD 4
ZERO
NEQUAL
JMPTRUE @2f013
JUMP @2f0b4 // 2f010h
@2f013:
JUMP @2f072 // 2f013h
@2f016:
DLOAD $5470 // 2f016h
STORE 0
LOAD 0
LIBCALL SequenceList_remove
ZERO
ZERO
ONE
DLOAD $5450 // 2f024h
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f02ch
LOAD 0 // 2f031h
DSTORE $546E
IMM 17
ONE
LOAD 0
LIBCALL SequenceList_setAnimRange
ONE
DLOAD $546E // 2f041h
STORE 0
IMM 10
IMM 2
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2f04ah
IMM 2 // 2f04fh
DLOAD $546E // 2f051h
STORE 0
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2f058h
ZERO
DSTORE Player_stepEnabled // 2f05fh
ZERO
DSTORE Player_visible // 2f062h
DLOAD 0 // 2f065h
STORE 0
JUMP @2f6b4
@2f068:
IMM 16 // 2f068h
LIBCALL start_sound
@2f072:
ZERO
IMM 309 // 2f074h
IMM 13 // 2f077h
LIBCALL Action_isAction
STORE 0 // 2f079h
LOAD 0 // 2f081h
ZERO
NEQUAL
JMPTRUE @2f09a // 2f083h
LOAD 0 // 2f085h
IMM 309 // 2f086h
IMM 6 // 2f089h
LIBCALL Action_isAction
STORE 0 // 2f08bh
LOAD 0 // 2f093h
ZERO
NEQUAL
JMPTRUE @2f09a // 2f095h
JUMP @2f1cc // 2f097h
@2f09a:
DLOAD $547E // 2f09ah
ZERO
EQUAL
JMPTRUE @2f0a4 // 2f09fh
JUMP @2f1cc // 2f0a1h
@2f0a4:
DLOAD Scene_abortTimers // 2f0a4h
STORE 0
LOAD 0 // 2f0a7h
ZERO
EQUAL
JMPTRUE @2f126 // 2f0a9h
LOAD 0 // 2f0abh
ONE
MINUS
STORE 0
LOAD 0 // 2f0ach
STORE 4
LOAD 4
ZERO
NEQUAL
JMPTRUE @2f0b1
JUMP @2f176 // 2f0aeh
@2f0b1:
JUMP @2f6b4 // 2f0b1h
@2f0b4:
ZERO
ZERO
ZERO
DLOAD $5450 // 2f0bah
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f0c2h
LOAD 0 // 2f0c7h
DSTORE $546E
IMM 17 // 2f0cdh
IMM 17
IMM 17
LOAD 0
LIBCALL SequenceList_setAnimRange
MINUSONE
DSTORE Player_stepEnabled // 2f0d7h
ZERO
IMM 71
LIBCALL hotspot_activate
IMM 159 // 2f0e6h
IMM 84 // 2f0e9h
IMM 33 // 2f0ebh
IMM 36 // 2f0edh
MINUSONE
IMM 319
IMM 71
LIBCALL DynamicHotspots_add
STORE 0 // 2f0f8h
LOAD 0 // 2f0fdh
DSTORE $5478
ZERO
IMM 384 // 2f102h
IMM 3 // 2f105h
LIBCALL Action_isAction
STORE 0 // 2f107h
LOAD 0 // 2f10fh
ZERO
NEQUAL
JMPTRUE @2f116 // 2f111h
JUMP @2f6b4 // 2f113h
@2f116:
ZERO
DSTORE Scene_abortTimers // 2f116h
JUMP @2f072 // 2f11ch
@2f120:
DLOAD 0 // 2f123h
STORE 0
JUMP @2f28f
@2f126:
IMM 24
LIBCALL object_is_present
STORE 0 // 2f129h
ONE
STORE 4 // 2f12eh
LOAD 0
ONE
EQUAL
JMPFALSE @2f133
ZERO
STORE 4
@2f133:
LOAD 4
STORE 0
LOAD 0 // 2f136h
IMM 13
PLUS
STORE 0
LOAD 0 // 2f139h
DSTORE $5480
ZERO
ZERO
ONE
LOAD 0 // 2f142h
STORE 1
LOAD 1 // 2f144h
IMM 2
MULT
IMM 6
ZERO
ONE
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f14fh
LOAD 0 // 2f154h
DSTORE $5472
ONE
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2f15dh
ZERO
DSTORE Player_stepEnabled // 2f162h
IMM 20 // 2f168h
@2f16a:
LIBCALL start_sound
JUMP @2f6b4 // 2f172h
@2f176:
DLOAD $5472 // 2f176h
STORE 0
LOAD 0
LIBCALL SequenceList_remove
ZERO
ZERO
ZERO
DLOAD $5480 // 2f184h
STORE 1
LOAD 1 // 2f188h
IMM 2
MULT
IMM 6
ZERO
ONE
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f193h
LOAD 0 // 2f198h
DSTORE $5472
IMM $FFFE // 2f19eh
IMM $FFFE
IMM $FFFE
LOAD 0
LIBCALL SequenceList_setAnimRange
MINUSONE
DSTORE Player_stepEnabled // 2f1a8h
MINUSONE
DSTORE $547E // 2f1abh
IMM 24
LIBCALL object_is_present
STORE 0 // 2f1b1h
LOAD 0 // 2f1b6h
ZERO
NEQUAL
JMPTRUE @2f1bd // 2f1b8h
JUMP @2f6b4 // 2f1bah
@2f1bd:
MINUSONE
IMM 311
LIBCALL hotspot_activate
JUMP @2f6b4 // 2f1c8h
@2f1cc:
ZERO
IMM 311 // 2f1ceh
IMM 4 // 2f1d1h
LIBCALL Action_isAction
STORE 0 // 2f1d3h
LOAD 0 // 2f1dbh
ZERO
NEQUAL
JMPTRUE @2f1f1 // 2f1ddh
LOAD 0 // 2f1dfh
IMM 311 // 2f1e0h
IMM 10 // 2f1e3h
LIBCALL Action_isAction
STORE 0 // 2f1e5h
LOAD 0 // 2f1edh
ZERO
EQUAL
JMPTRUE @2f248 // 2f1efh
@2f1f1:
IMM 24
LIBCALL object_is_present
STORE 0 // 2f1f4h
LOAD 0 // 2f1f9h
ZERO
EQUAL
JMPTRUE @2f248 // 2f1fbh
IMM 24
LIBCALL inventory_add
DLOAD $5472 // 2f205h
STORE 0
LOAD 0
LIBCALL SequenceList_remove
ZERO
ZERO
ZERO
DLOAD $5456 // 2f213h
STORE 0
IMM 6
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f21bh
LOAD 0 // 2f220h
DSTORE $5472
IMM $FFFE // 2f226h
IMM $FFFE
IMM $FFFE
LOAD 0
LIBCALL SequenceList_setAnimRange
ZERO
IMM 311
LIBCALL hotspot_activate
ZERO
IMM $2788 // 2f238h
LIBCALL dialog_picture_show
IMM 22 // 2f243h
JUMP @2f16a // 2f245h
@2f248:
ZERO
IMM 309 // 2f24ah
IMM 3 // 2f24dh
LIBCALL Action_isAction
STORE 0 // 2f24fh
LOAD 0 // 2f257h
ZERO
NEQUAL
JMPTRUE @2f279 // 2f259h
LOAD 0 // 2f25bh
IMM 311 // 2f25ch
IMM 3 // 2f25fh
LIBCALL Action_isAction
STORE 0 // 2f261h
LOAD 0 // 2f269h
ZERO
EQUAL
JMPTRUE @2f2a6 // 2f26bh
LIBCALL object_is_in_inventory
STORE 0 // 2f270h
LOAD 0 // 2f275h
ZERO
NEQUAL
JMPTRUE @2f2a6 // 2f277h
@2f279:
DLOAD $547E // 2f279h
ZERO
EQUAL
JMPTRUE @2f2a0 // 2f27eh
IMM 24
LIBCALL object_is_present
STORE 0 // 2f283h
LOAD 0 // 2f288h
ZERO
EQUAL
JMPTRUE @2f29a // 2f28ah
@2f28f:
@2f291:
IMM $2790
ZERO
LIBCALL dialog_show
JUMP @2f6b4 // 2f296h
@2f29a:
@2f29d:
DLOAD 0 // 2f29eh
STORE 0
JUMP @2f291
@2f2a0:
DLOAD 0 // 2f2a3h
STORE 0
JUMP @2f29d
@2f2a6:
ZERO
IMM 309 // 2f2a8h
IMM 6 // 2f2abh
LIBCALL Action_isAction
STORE 0 // 2f2adh
LOAD 0 // 2f2b5h
ZERO
EQUAL
JMPTRUE @2f2c6 // 2f2b7h
DLOAD $547E // 2f2b9h
ZERO
EQUAL
JMPTRUE @2f2c6 // 2f2beh
DLOAD 0 // 2f2c3h
STORE 0
JUMP @2f28f
@2f2c6:
ZERO
IMM 384 // 2f2c8h
IMM 3 // 2f2cbh
LIBCALL Action_isAction
STORE 0 // 2f2cdh
LOAD 0 // 2f2d5h
ZERO
NEQUAL
JMPTRUE @2f2dc // 2f2d7h
JUMP @2f3d8 // 2f2d9h
@2f2dc:
DLOAD $5476 // 2f2dch
ZERO
NEQUAL
JMPTRUE @2f2e6 // 2f2e1h
JUMP @2f3d8 // 2f2e3h
@2f2e6:
GLOAD 14 // 2f2e6h
ZERO
EQUAL
JMPTRUE @2f2f4 // 2f2ebh
CALL scene101_sub1
JUMP @2f6b4 // 2f2f1h
@2f2f4:
DLOAD Scene_abortTimers // 2f2f4h
STORE 0
LOAD 0 // 2f2f7h
ZERO
EQUAL
JMPTRUE @2f30a // 2f2f9h
LOAD 0 // 2f2fbh
ONE
MINUS
STORE 0
LOAD 0 // 2f2fch
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2f34c
LOAD 0 // 2f2feh
ONE
MINUS
STORE 0
LOAD 0 // 2f2ffh
STORE 4
LOAD 4
ZERO
EQUAL
JMPTRUE @2f37e
LOAD 0 // 2f301h
ONE
MINUS
STORE 0
LOAD 0 // 2f302h
STORE 4
LOAD 4
ZERO
NEQUAL
JMPTRUE @2f307
JUMP @2f3c2 // 2f304h
@2f307:
JUMP @2f6b4 // 2f307h
@2f30a:
ZERO
DSTORE Player_stepEnabled // 2f30ah
DLOAD $546E // 2f310h
STORE 0
LOAD 0
LIBCALL SequenceList_remove
ZERO
ZERO
ONE
DLOAD $5450 // 2f31eh
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f326h
LOAD 0 // 2f32bh
DSTORE $546E
IMM 21
IMM 17
LOAD 0
LIBCALL SequenceList_setAnimRange
ONE
DLOAD $546E // 2f33bh
STORE 0
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2f342h
IMM 17 // 2f347h
JUMP @2f16a // 2f349h
@2f34c:
ZERO
ZERO
ONE
DLOAD $5450 // 2f352h
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_sprite_sequence3
STORE 0 // 2f35ah
LOAD 0 // 2f35fh
DSTORE $546E
IMM 2 // 2f362h
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2f368h
DLOAD $546E // 2f36dh
STORE 0
IMM 21
IMM 17
LOAD 0
LIBCALL SequenceList_setAnimRange
JUMP @2f6b4 // 2f37bh
@2f37e:
ZERO
ZERO
ZERO
DLOAD $5450 // 2f384h
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f38ch
LOAD 0 // 2f391h
DSTORE $546E
IMM 17 // 2f397h
IMM 17
IMM 17
LOAD 0
LIBCALL SequenceList_setAnimRange
ZERO
ZERO
ONE
DLOAD $544A // 2f3a4h
STORE 0
IMM 3
ZERO
LOAD 0
LIBCALL start_cycled_sprite_sequence
STORE 0 // 2f3ach
LOAD 0 // 2f3b1h
DSTORE $5468
IMM 3 // 2f3b4h
ZERO
ZERO
LOAD 0
LIBCALL SequenceList_addSubEntry
STORE 0 // 2f3bah
JUMP @2f6b4 // 2f3bfh
@2f3c2:
MINUSONE
DSTORE Player_stepEnabled // 2f3c5h
MINUSONE
GSTORE 14 // 2f3c8h
IMM 112 // 2f3ceh
DSTORE Scene_nextScene
DLOAD 0 // 2f3d4h
STORE 0
JUMP @2f6b4
@2f3d8:
ZERO
IMM 71 // 2f3dah
IMM 3 // 2f3dch
LIBCALL Action_isAction
STORE 0 // 2f3deh
LOAD 0 // 2f3e6h
ZERO
EQUAL
JMPTRUE @2f3f0 // 2f3e8h
DLOAD 0 // 2f3edh
STORE 0
JUMP @2f28f
@2f3f0:
ZERO
IMM 3 // 2f3f2h
LIBCALL Action_isAction
STORE 0 // 2f3f4h
LOAD 0 // 2f3fch
ZERO
NEQUAL
JMPTRUE @2f410 // 2f3feh
LOAD 0 // 2f400h
IMM 259 // 2f401h
LIBCALL Action_isAction
STORE 0 // 2f404h
LOAD 0 // 2f40ch
ZERO
EQUAL
JMPTRUE @2f438 // 2f40eh
@2f410:
ZERO
IMM 142 // 2f412h
LIBCALL Action_isAction
STORE 0 // 2f415h
LOAD 0 // 2f41dh
ZERO
NEQUAL
JMPTRUE @2f431 // 2f41fh
LOAD 0 // 2f421h
IMM 249 // 2f422h
LIBCALL Action_isAction
STORE 0 // 2f425h
LOAD 0 // 2f42dh
ZERO
EQUAL
JMPTRUE @2f438 // 2f42fh
@2f431:
DLOAD 0 // 2f434h
STORE 0
JUMP @2f28f
@2f438:
ZERO
IMM 168 // 2f43ah
IMM 3 // 2f43dh
LIBCALL Action_isAction
STORE 0 // 2f43fh
LOAD 0 // 2f447h
ZERO
NEQUAL
JMPTRUE @2f481 // 2f449h
LOAD 0 // 2f44bh
IMM 248 // 2f44ch
IMM 3 // 2f44fh
LIBCALL Action_isAction
STORE 0 // 2f451h
LOAD 0 // 2f459h
ZERO
NEQUAL
JMPTRUE @2f481 // 2f45bh
LOAD 0 // 2f45dh
IMM 168 // 2f45eh
IMM 125 // 2f461h
LIBCALL Action_isAction
STORE 0 // 2f463h
LOAD 0 // 2f46bh
ZERO
NEQUAL
JMPTRUE @2f481 // 2f46dh
LOAD 0 // 2f46fh
IMM 248 // 2f470h
IMM 125 // 2f473h
LIBCALL Action_isAction
STORE 0 // 2f475h
LOAD 0 // 2f47dh
ZERO
EQUAL
JMPTRUE @2f488 // 2f47fh
@2f481:
DLOAD 0 // 2f484h
STORE 0
JUMP @2f28f
@2f488:
ZERO
IMM 145 // 2f48ah
IMM 3 // 2f48dh
LIBCALL Action_isAction
STORE 0 // 2f48fh
LOAD 0 // 2f497h
ZERO
EQUAL
JMPTRUE @2f4a2 // 2f499h
DLOAD 0 // 2f49eh
STORE 0
JUMP @2f28f
@2f4a2:
ZERO
IMM 225 // 2f4a4h
IMM 3 // 2f4a7h
LIBCALL Action_isAction
STORE 0 // 2f4a9h
LOAD 0 // 2f4b1h
ZERO
NEQUAL
JMPTRUE @2f4c8 // 2f4b3h
LOAD 0 // 2f4b5h
IMM 225 // 2f4b6h
IMM 210 // 2f4b9h
LIBCALL Action_isAction
STORE 0 // 2f4bch
LOAD 0 // 2f4c4h
ZERO
EQUAL
JMPTRUE @2f4ce // 2f4c6h
@2f4c8:
DLOAD 0 // 2f4cbh
STORE 0
JUMP @2f28f
@2f4ce:
ZERO
IMM 96 // 2f4d0h
IMM 3 // 2f4d2h
LIBCALL Action_isAction
STORE 0 // 2f4d4h
LOAD 0 // 2f4dch
ZERO
EQUAL
JMPTRUE @2f4e6 // 2f4deh
DLOAD 0 // 2f4e3h
STORE 0
JUMP @2f28f
@2f4e6:
ZERO
IMM 273 // 2f4e8h
IMM 3 // 2f4ebh
LIBCALL Action_isAction
STORE 0 // 2f4edh
LOAD 0 // 2f4f5h
ZERO
EQUAL
JMPTRUE @2f500 // 2f4f7h
DLOAD 0 // 2f4fch
STORE 0
JUMP @2f28f
@2f500:
ZERO
IMM 123 // 2f502h
IMM 3 // 2f504h
LIBCALL Action_isAction
STORE 0 // 2f506h
LOAD 0 // 2f50eh
ZERO
NEQUAL
JMPTRUE @2f52f // 2f510h
LOAD 0 // 2f512h
IMM 123 // 2f513h
IMM 6 // 2f515h
LIBCALL Action_isAction
STORE 0 // 2f517h
LOAD 0 // 2f51fh
ZERO
EQUAL
JMPTRUE @2f536 // 2f521h
LIBCALL object_is_in_inventory
STORE 0 // 2f526h
LOAD 0 // 2f52bh
ZERO
NEQUAL
JMPTRUE @2f536 // 2f52dh
@2f52f:
DLOAD 0 // 2f532h
STORE 0
JUMP @2f28f
@2f536:
ZERO
IMM 123 // 2f538h
IMM 6 // 2f53ah
LIBCALL Action_isAction
STORE 0 // 2f53ch
LOAD 0 // 2f544h
ZERO
EQUAL
JMPTRUE @2f54e // 2f546h
DLOAD 0 // 2f54bh
STORE 0
JUMP @2f28f
@2f54e:
ZERO
IMM 358 // 2f550h
IMM 3 // 2f553h
LIBCALL Action_isAction
STORE 0 // 2f555h
LOAD 0 // 2f55dh
ZERO
EQUAL
JMPTRUE @2f568 // 2f55fh
DLOAD 0 // 2f564h
STORE 0
JUMP @2f28f
@2f568:
ZERO
IMM 202 // 2f56ah
IMM 3 // 2f56dh
LIBCALL Action_isAction
STORE 0 // 2f56fh
LOAD 0 // 2f577h
ZERO
EQUAL
JMPTRUE @2f582 // 2f579h
DLOAD 0 // 2f57eh
STORE 0
JUMP @2f28f
@2f582:
ZERO
IMM 99 // 2f584h
IMM 3 // 2f586h
LIBCALL Action_isAction
STORE 0 // 2f588h
LOAD 0 // 2f590h
ZERO
EQUAL
JMPTRUE @2f59a // 2f592h
DLOAD 0 // 2f597h
STORE 0
JUMP @2f28f
@2f59a:
ZERO
IMM 235 // 2f59ch
IMM 3 // 2f59fh
LIBCALL Action_isAction
STORE 0 // 2f5a1h
LOAD 0 // 2f5a9h
ZERO
EQUAL
JMPTRUE @2f5b4 // 2f5abh
DLOAD 0 // 2f5b0h
STORE 0
JUMP @2f28f
@2f5b4:
ZERO
IMM 120 // 2f5b6h
IMM 3 // 2f5b8h
LIBCALL Action_isAction
STORE 0 // 2f5bah
LOAD 0 // 2f5c2h
ZERO
EQUAL
JMPTRUE @2f5cc // 2f5c4h
DLOAD 0 // 2f5c9h
STORE 0
JUMP @2f28f
@2f5cc:
ZERO
IMM 400 // 2f5ceh
IMM 3 // 2f5d1h
LIBCALL Action_isAction
STORE 0 // 2f5d3h
LOAD 0 // 2f5dbh
ZERO
EQUAL
JMPTRUE @2f5e6 // 2f5ddh
DLOAD 0 // 2f5e2h
STORE 0
JUMP @2f28f
@2f5e6:
ZERO
IMM 312 // 2f5e8h
IMM 3 // 2f5ebh
LIBCALL Action_isAction
STORE 0 // 2f5edh
LOAD 0 // 2f5f5h
ZERO
EQUAL
JMPTRUE @2f600 // 2f5f7h
DLOAD 0 // 2f5fch
STORE 0
JUMP @2f28f
@2f600:
ZERO
IMM 273 // 2f602h
IMM 4 // 2f605h
LIBCALL Action_isAction
STORE 0 // 2f607h
LOAD 0 // 2f60fh
ZERO
EQUAL
JMPTRUE @2f61a // 2f611h
DLOAD 0 // 2f616h
STORE 0
JUMP @2f28f
@2f61a:
ZERO
IMM 145 // 2f61ch
IMM 4 // 2f61fh
LIBCALL Action_isAction
STORE 0 // 2f621h
LOAD 0 // 2f629h
ZERO
EQUAL
JMPTRUE @2f634 // 2f62bh
DLOAD 0 // 2f630h
STORE 0
JUMP @2f28f
@2f634:
ZERO
IMM 99 // 2f636h
IMM 6 // 2f638h
LIBCALL Action_isAction
STORE 0 // 2f63ah
LOAD 0 // 2f642h
ZERO
EQUAL
JMPTRUE @2f64c // 2f644h
DLOAD 0 // 2f649h
STORE 0
JUMP @2f28f
@2f64c:
ZERO
IMM 96 // 2f64eh
IMM 6 // 2f650h
LIBCALL Action_isAction
STORE 0 // 2f652h
LOAD 0 // 2f65ah
ZERO
EQUAL
JMPTRUE @2f664 // 2f65ch
DLOAD 0 // 2f661h
STORE 0
JUMP @2f28f
@2f664:
ZERO
IMM 96 // 2f666h
IMM 11 // 2f668h
LIBCALL Action_isAction
STORE 0 // 2f66ah
LOAD 0 // 2f672h
ZERO
EQUAL
JMPTRUE @2f67c // 2f674h
DLOAD 0 // 2f679h
STORE 0
JUMP @2f28f
@2f67c:
ZERO
IMM 3 // 2f67eh
LIBCALL Action_isAction
STORE 0 // 2f680h
LOAD 0 // 2f688h
ZERO
NEQUAL
JMPTRUE @2f69c // 2f68ah
LOAD 0 // 2f68ch
IMM 274 // 2f68dh
LIBCALL Action_isAction
STORE 0 // 2f690h
LOAD 0 // 2f698h
ZERO
EQUAL
JMPTRUE @2f6ba // 2f69ah
@2f69c:
ZERO
IMM 382 // 2f69eh
LIBCALL Action_isAction
STORE 0 // 2f6a1h
LOAD 0 // 2f6a9h
ZERO
EQUAL
JMPTRUE @2f6ba // 2f6abh
DLOAD 0 // 2f6b0h
STORE 0
JUMP @2f28f
@2f6b4:
ZERO
DSTORE $5768 // 2f6b4h
@2f6ba:
RET
end
|