-
Notifications
You must be signed in to change notification settings - Fork 27
/
globals.zap
2131 lines (1978 loc) · 52 KB
/
globals.zap
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
.SEGMENT "0"
.FUNCT INTNUM-F,X
EQUAL? HERE,CONSTRUCTION \FALSE
CALL NOUN-USED?,INTNUM,W?NUMBER
ZERO? STACK /FALSE
PRINTI "The number engraved on the wall is """
PRINTN CONSTRUCTION-LOC
PRINTR "."""
.ENDSEG
.SEGMENT "0"
.FUNCT LEFT-RIGHT-F
EQUAL? PRSA,V?CHASTISE \?CCL3
PRINTR "You see nothing unusual."
?CCL3: EQUAL? PRSA,V?ENTER,V?WALK-TO,V?WALK \?CCL5
EQUAL? HERE,WEIRD \?CCL8
CALL NOUN-USED?,LEFT-RIGHT,W?LEFT
ZERO? STACK /?CCL8
EQUAL? TOWER-BEATEN,PYRAMID-L \?CCL8
CALL2 DO-WALK,P?WEST
RSTACK
?CCL8: EQUAL? HERE,WEIRD \?CCL13
CALL NOUN-USED?,LEFT-RIGHT,W?RIGHT
ZERO? STACK /?CCL13
EQUAL? TOWER-BEATEN,PYRAMID-R \?CCL13
CALL2 DO-WALK,P?EAST
RSTACK
?CCL13: EQUAL? HERE,TESTING-ROOM \?CCL18
CALL NOUN-USED?,LEFT-RIGHT,W?RIGHT
ZERO? STACK /?CCL21
PUSH RIGHT-BOOTH
JUMP ?CND19
?CCL21: PUSH LEFT-BOOTH
?CND19: CALL PERFORM,V?ENTER,STACK
RSTACK
?CCL18: CALL1 V-WALK-AROUND
RSTACK
?CCL5: EQUAL? PRSA,V?SET \FALSE
PRINTR "You turn ninety degrees, with little effect."
.ENDSEG
.SEGMENT "0"
.FUNCT GRUE-F
EQUAL? PRSA,V?FIND,V?EXAMINE \FALSE
FSET? LANTERN,TRYTAKEBIT \?CCL6
PRINTR "Don't be silly! There haven't been grues around for centuries!"
?CCL6: PRINTI "There is no grue here, but I'm sure there is at least one lurking in the darkness nearby."
CALL FIND-IN,PROTAGONIST,ONBIT
ZERO? STACK /FALSE
FSET? HERE,ONBIT /FALSE
PRINTR " I wouldn't let my light go out if I were you!"
.FUNCT SAILOR-F,ARG
EQUAL? ARG,M-WINNER \?CCL3
EQUAL? PRSA,V?HELLO \?CCL6
PRINTR "Nothing happens here."
?CCL6: CALL2 CANT-SEE,SAILOR
RSTACK
?CCL3: EQUAL? PRSA,V?WAIT-FOR \?CCL8
PRINTR "You are liable to be waiting for several sequels."
?CCL8: CALL2 HANDLE,SAILOR
ZERO? STACK /FALSE
EQUAL? PRSA,V?HELLO,V?TELL /FALSE
CALL2 CANT-SEE,SAILOR
RSTACK
.FUNCT GLOBAL-SLEEP-F
EQUAL? PRSA,V?TAKE,V?WALK-TO \?CCL3
CALL1 V-SLEEP
RSTACK
?CCL3: EQUAL? PRSA,V?PUT-TO \FALSE
EQUAL? PRSI,GLOBAL-SLEEP \FALSE
EQUAL? PRSO,BEDBUG \?CCL10
PRINTI "You sing a brief lullaby. "
CALL2 REMOVE-BEDBUG,STR?194
RSTACK
?CCL10: PRINTR "You're not a hypnotist."
.FUNCT LULLABY-F,ACTOR
EQUAL? PRSA,V?SING \?CCL3
ZERO? PRSI \?CND4
IN? BEDBUG,HERE \?CCL8
SET 'PRSI,BEDBUG
JUMP ?CND4
?CCL8: CALL FIND-IN,HERE,ACTORBIT >ACTOR
ZERO? ACTOR /?CCL10
SET 'PRSI,ACTOR
?CND4: EQUAL? PRSI,BEDBUG \?CCL13
ICALL PERFORM,V?PUT-TO,BEDBUG,GLOBAL-SLEEP
RTRUE
?CCL10: PRINTR "[If you put me to sleep, you'd have a heck of a time communicating with the game! By the way, don't expect any offers from the Borphee Opera Company.]"
?CCL13: FSET? PRSI,ACTORBIT \?CCL15
PRINTI "Despite your best rendition,"
ICALL1 TPRINT-PRSI
PRINTR " remains awake."
?CCL15: PRINTI "Amazingly,"
ICALL1 TPRINT-PRSI
PRINTR " is now motionless! You must have put it right to sleep! Incredible! What a talent!"
?CCL3: EQUAL? PRSA,V?PLAY \FALSE
IN? BEDBUG,HERE \?CCL20
CALL NOUN-USED?,LULLABY,W?LULLABY,W?LULLABYE
ZERO? STACK /?CCL20
ICALL PERFORM,V?PUT-TO,BEDBUG,GLOBAL-SLEEP
RTRUE
?CCL20: CALL ULTIMATELY-IN?,VIOLIN,PROTAGONIST
ZERO? STACK /?CCL24
PRINTI "[with"
ICALL2 TPRINT,VIOLIN
PRINTC 93
CRLF
CALL2 PERFORM-PRSA,VIOLIN
RSTACK
?CCL24: IN? HARMONICA,PROTAGONIST \?CCL26
PRINTI "[with"
ICALL2 TPRINT,HARMONICA
PRINTC 93
CRLF
CALL2 PERFORM-PRSA,HARMONICA
RSTACK
?CCL26: PRINTR "You have no instrument to play it on."
.FUNCT GROUND-F
ICALL1 SET-GROUND-DESC
EQUAL? PRSA,V?EXAMINE \?CCL3
EQUAL? HERE,OUBLIETTE \?CCL6
PRINTR "Mud. Squishy mud."
?CCL6: EQUAL? HERE,PITS \?CCL8
ICALL PERFORM,V?EXAMINE,PITS-OBJECT
RTRUE
?CCL8: EQUAL? HERE,TIGHT-SQUEEZE \FALSE
PRINTR "You see a man-sized opening through which cool air seems to flow."
?CCL3: EQUAL? PRSA,V?LOOK-UNDER \?CCL12
CALL1 IMPOSSIBLES
RSTACK
?CCL12: EQUAL? PRSA,V?CLIMB,V?CLIMB-ON,V?CLIMB-UP /?CTR13
EQUAL? PRSA,V?ENTER \?CCL14
?CTR13: CALL1 WASTES
RSTACK
?CCL14: EQUAL? PRSA,V?LEAVE \FALSE
CALL2 DO-WALK,P?UP
RSTACK
.FUNCT SET-GROUND-DESC
FSET? HERE,OUTSIDEBIT \?CCL3
PUTP GROUND,P?SDESC,STR?195
RTRUE
?CCL3: FSET? HERE,DESERTBIT \?CCL5
PUTP GROUND,P?SDESC,STR?196
RTRUE
?CCL5: PUTP GROUND,P?SDESC,STR?197
RTRUE
.FUNCT GLOBAL-HOLE-F
EQUAL? PRSA,V?DIG \?CCL3
EQUAL? PRSO,GLOBAL-HOLE \?CCL3
ZERO? PRSI /?CCL8
EQUAL? PRSI,SHOVEL \?CCL11
CALL PERFORM-PRSA,GROUND,SHOVEL
RSTACK
?CCL11: CALL2 ULTIMATELY-IN?,SHOVEL
ZERO? STACK /?CCL13
PRINTI "[with the shovel]"
CRLF
CALL PERFORM-PRSA,PRSI,SHOVEL
RSTACK
?CCL13: PRINTI "[with your hands]"
CRLF
CALL PERFORM-PRSA,PRSI,HANDS
RSTACK
?CCL8: CALL2 ULTIMATELY-IN?,SHOVEL
ZERO? STACK /?CCL15
PRINTI "[with the shovel]"
CRLF
CALL PERFORM-PRSA,GROUND,SHOVEL
RSTACK
?CCL15: PRINTI "[with your hands]"
CRLF
CALL PERFORM-PRSA,GROUND,HANDS
RSTACK
?CCL3: CALL2 HANDLE,GLOBAL-HOLE
ZERO? STACK /FALSE
CALL2 CANT-SEE,GLOBAL-HOLE
RSTACK
.FUNCT WALL-F,CNT
EQUAL? PRSA,V?EXAMINE,V?READ \?CCL3
EQUAL? HERE,CHURCH \?CCL6
ICALL PERFORM,V?READ,TENET
RTRUE
?CCL6: EQUAL? HERE,CELL \FALSE
IN? COBWEBS,CELL \FALSE
PRINT CELL-WALL-DESC
CRLF
RTRUE
?CCL3: EQUAL? PRSA,V?CLEAN \?CCL12
EQUAL? HERE,CELL \?CCL12
CALL ADJ-USED?,WALL,W?REAR
ZERO? STACK /?CCL12
IN? COBWEBS,CELL \?CCL12
ICALL PERFORM,V?CLEAN,COBWEBS
RTRUE
?CCL12: EQUAL? PRSA,V?THROW-OVER \?CCL18
EQUAL? HERE,PERIMETER-WALL \?CCL21
PRINTR "Babe Flathead himself couldn't toss something over this towering wall!"
?CCL21: PRINTR "The wall joins the ceiling!"
?CCL18: EQUAL? PRSA,V?PUT-ON,V?PUT \FALSE
EQUAL? PRSO,NW-SE-PASSAGE,N-S-PASSAGE \FALSE
CALL ADJ-USED?,WALL,FALSE-VALUE
ZERO? STACK /?CCL28
SET 'P-WON,FALSE-VALUE
PRINTR "[You didn't specify which wall you meant: EAST WALL for example.]"
?CCL28: EQUAL? PRSO,N-S-PASSAGE \?PRD32
CALL ADJ-USED?,WALL,W?NORTH,W?N
ZERO? STACK \?PRD32
CALL ADJ-USED?,WALL,W?SOUTH,W?S
ZERO? STACK /?CTR29
?PRD32: EQUAL? PRSO,NW-SE-PASSAGE \?CCL30
CALL ADJ-USED?,WALL,W?NORTHWEST,W?NW
ZERO? STACK \?CCL30
CALL ADJ-USED?,WALL,W?SOUTHEAST,W?SE
ZERO? STACK \?CCL30
?CTR29: PRINT YOU-CANT
PRINTI "install the passage on that wall--it's"
CALL2 ARPRINT,PRSO
RSTACK
?CCL30: CALL1 PASSAGE-THERE
ZERO? STACK \TRUE
EQUAL? HERE,GONDOLA,HOLD /?CTR41
LOC PROTAGONIST
EQUAL? STACK,YACHT,DB \?CCL42
?CTR41: PRINTR "A built-in safety feature prevents the passage from being installed in a vehicle."
?CCL42: MOVE PRSO,HERE
FCLEAR PRSO,TAKEBIT
SET 'COMPASS-CHANGED,TRUE-VALUE
PUTP PRSO,P?OWNER,WALL
PRINTI "There's now a passage leading "
EQUAL? PRSO,N-S-PASSAGE \?CCL47
EQUAL? HERE,CONSTRUCTION \?CND48
SET 'N-S-PASSAGE-LOC,CONSTRUCTION-LOC
?CND48: CALL ADJ-USED?,WALL,W?NORTH,W?N
ZERO? STACK /?CCL52
SET 'N-S-PASSAGE-DIR,P?NORTH
EQUAL? HERE,CONSTRUCTION \?CND53
LESS? CONSTRUCTION-LOC,8 /?CND53
ADD CONSTRUCTION-LOC,100
PUT NORTH-EXITS,0,STACK
?PRG57: GET STORAGE-TABLE,CNT
ZERO? STACK \?CCL61
SUB CONSTRUCTION-LOC,8
ADD STACK,CONSTRUCTION-OFFSET
PUT STORAGE-TABLE,CNT,STACK
ADD CNT,1
PUT STORAGE-TABLE,STACK,N-S-PASSAGE
?CND53: PRINTI "nor"
JUMP ?CND50
?CCL61: ADD CNT,2 >CNT
JUMP ?PRG57
?CCL52: SET 'N-S-PASSAGE-DIR,P?SOUTH
EQUAL? HERE,CONSTRUCTION \?CND62
GRTR? CONSTRUCTION-LOC,55 /?CND62
ADD CONSTRUCTION-LOC,108
PUT NORTH-EXITS,0,STACK
?PRG66: GET STORAGE-TABLE,CNT
ZERO? STACK \?CCL70
ADD CONSTRUCTION-LOC,8
ADD STACK,CONSTRUCTION-OFFSET
PUT STORAGE-TABLE,CNT,STACK
ADD CNT,1
PUT STORAGE-TABLE,STACK,N-S-PASSAGE
?CND62: PRINTI "sou"
?CND50: PRINTR "th from the room."
?CCL70: ADD CNT,2 >CNT
JUMP ?PRG66
?CCL47: EQUAL? HERE,CONSTRUCTION \?CND71
SET 'NW-SE-PASSAGE-LOC,CONSTRUCTION-LOC
?CND71: CALL ADJ-USED?,WALL,W?NORTHWEST,W?NW
ZERO? STACK /?CCL75
SET 'NW-SE-PASSAGE-DIR,P?NW
EQUAL? HERE,CONSTRUCTION \?CND76
MOD CONSTRUCTION-LOC,8
ZERO? STACK /?CND76
LESS? CONSTRUCTION-LOC,8 /?CND76
ADD CONSTRUCTION-LOC,91
PUT SE-EXITS,0,STACK
?PRG82: GET STORAGE-TABLE,CNT
ZERO? STACK \?CCL86
SUB CONSTRUCTION-LOC,9
ADD STACK,CONSTRUCTION-OFFSET
PUT STORAGE-TABLE,CNT,STACK
ADD CNT,1
PUT STORAGE-TABLE,STACK,NW-SE-PASSAGE
?CND76: PRINTI "northwe"
JUMP ?CND73
?CCL86: ADD CNT,2 >CNT
JUMP ?PRG82
?CCL75: SET 'NW-SE-PASSAGE-DIR,P?SE
EQUAL? HERE,CONSTRUCTION \?CND87
MOD CONSTRUCTION-LOC,8
EQUAL? STACK,7 /?CND87
GRTR? CONSTRUCTION-LOC,55 /?CND87
ADD CONSTRUCTION-LOC,100
PUT SE-EXITS,0,STACK
?PRG93: GET STORAGE-TABLE,CNT
ZERO? STACK \?CCL97
ADD CONSTRUCTION-LOC,9
ADD STACK,CONSTRUCTION-OFFSET
PUT STORAGE-TABLE,CNT,STACK
ADD CNT,1
PUT STORAGE-TABLE,STACK,NW-SE-PASSAGE
?CND87: PRINTI "southea"
?CND73: PRINTR "st from the room."
?CCL97: ADD CNT,2 >CNT
JUMP ?PRG93
.FUNCT PASSAGE-THERE,PASSAGE?
CALL ADJ-USED?,WALL,W?NORTH,W?N
ZERO? STACK /?CCL3
EQUAL? HERE,PEG-ROOM \?CCL6
ZERO? PEG-PASSAGE-OPENED \?CCL9
ICALL2 REPELLED,STR?198
SET 'PASSAGE?,M-FATAL
JUMP ?CND1
?CCL9: SET 'PASSAGE?,FALSE-VALUE
JUMP ?CND1
?CCL6: EQUAL? HERE,SECRET-PASSAGE \?CCL11
ZERO? SECRET-PASSAGE-OPEN \?CCL14
ICALL2 REPELLED,STR?198
SET 'PASSAGE?,M-FATAL
JUMP ?CND1
?CCL14: SET 'PASSAGE?,FALSE-VALUE
JUMP ?CND1
?CCL11: EQUAL? HERE,CONSTRUCTION \?CCL16
INTBL? NORTH-EXITS,CONSTRUCTION-LOC,11 \?CND1
SET 'PASSAGE?,TRUE-VALUE
JUMP ?CND1
?CCL16: EQUAL? HERE,WEIRD \?CCL20
EQUAL? TOWER-BEATEN,PYRAMID /?CCL20
ICALL2 REPELLED,STR?198
SET 'PASSAGE?,M-FATAL
JUMP ?CND1
?CCL20: EQUAL? HERE,G-U-MOUNTAIN \?CCL24
IN? BOULDER,HERE \?CCL27
ICALL2 REPELLED,STR?198
SET 'PASSAGE?,M-FATAL
JUMP ?CND1
?CCL27: SET 'PASSAGE?,FALSE-VALUE
JUMP ?CND1
?CCL24: GETPT HERE,P?NORTH
ZERO? STACK /?CND1
SET 'PASSAGE?,TRUE-VALUE
JUMP ?CND1
?CCL3: CALL ADJ-USED?,WALL,W?SOUTH,W?S
ZERO? STACK /?CCL30
EQUAL? HERE,CONSTRUCTION \?CCL33
ADD CONSTRUCTION-LOC,8
INTBL? NORTH-EXITS,STACK,11 \?CND1
SET 'PASSAGE?,TRUE-VALUE
JUMP ?CND1
?CCL33: EQUAL? HERE,THRONE-ROOM \?CCL37
ZERO? SECRET-PASSAGE-OPEN \?CCL40
ICALL2 REPELLED,STR?199
SET 'PASSAGE?,M-FATAL
JUMP ?CND1
?CCL40: SET 'PASSAGE?,FALSE-VALUE
JUMP ?CND1
?CCL37: GETPT HERE,P?SOUTH
ZERO? STACK /?CND1
SET 'PASSAGE?,TRUE-VALUE
JUMP ?CND1
?CCL30: CALL ADJ-USED?,WALL,W?NORTHWEST,W?NW
ZERO? STACK /?CCL43
EQUAL? HERE,CONSTRUCTION \?CCL46
SUB CONSTRUCTION-LOC,9
INTBL? SE-EXITS,STACK,7 \?CND1
SET 'PASSAGE?,TRUE-VALUE
JUMP ?CND1
?CCL46: EQUAL? HERE,PERIMETER-WALL \?CCL50
SET 'PASSAGE?,FALSE-VALUE
JUMP ?CND1
?CCL50: GETPT HERE,P?NW
ZERO? STACK /?CND1
SET 'PASSAGE?,TRUE-VALUE
JUMP ?CND1
?CCL43: CALL ADJ-USED?,WALL,W?SOUTHEAST,W?SE
ZERO? STACK /?CND1
EQUAL? HERE,CONSTRUCTION \?CCL55
INTBL? SE-EXITS,CONSTRUCTION-LOC,7 \?CND1
SET 'PASSAGE?,TRUE-VALUE
JUMP ?CND1
?CCL55: GETPT HERE,P?SE
ZERO? STACK /?CND1
SET 'PASSAGE?,TRUE-VALUE
?CND1: EQUAL? PASSAGE?,M-FATAL /TRUE
ZERO? PASSAGE? /FALSE
PRINTR "There's already an exit in that direction!"
.FUNCT REPELLED,STRING
PRINTI "Strangely, the passage seems repelled by the "
PRINT STRING
PRINTR " wall, as though two inconsistent types of magic were at work in the same place."
.FUNCT GLOBAL-PASSAGE-F
EQUAL? PRSA,V?ENTER \FALSE
CALL1 V-WALK-AROUND
RSTACK
.FUNCT CEILING-F
CALL NOUN-USED?,CEILING,W?ROOF
ZERO? STACK /?CCL3
EQUAL? HERE,ROOF,PARAPET \?CCL3
EQUAL? PRSA,V?THROW-FROM \?CCL8
REMOVE PRSO
EQUAL? PRSO,PERCH /?CCL10
CALL ULTIMATELY-IN?,PERCH,PRSO
ZERO? STACK /?CND9
?CCL10: SET 'REMOVED-PERCH-LOC,GROUND
?CND9: PRINTI "You hear a ""splat"" as"
ICALL1 TPRINT-PRSO
PRINTR " sinks into the ground far below."
?CCL8: EQUAL? PRSO,CEILING \?CCL14
CALL PERFORM-PRSA,GLOBAL-HERE,PRSI
RSTACK
?CCL14: CALL PERFORM-PRSA,PRSO,GLOBAL-HERE
RSTACK
?CCL3: FSET? HERE,OUTSIDEBIT \?CCL16
CALL2 HANDLE,CEILING
ZERO? STACK /?CCL16
CALL2 CANT-SEE,CEILING
RSTACK
?CCL16: EQUAL? PRSA,V?EXAMINE \?CCL20
EQUAL? HERE,BARBICAN \?CCL23
PRINTR "It's too gloomy in here to make out any of the features of the ceiling."
?CCL23: EQUAL? HERE,MEGABOZ-HUT \FALSE
PRINT MEGABOZ-CEILING-DESC
CRLF
RTRUE
?CCL20: EQUAL? PRSA,V?LOOK-UNDER \FALSE
ICALL2 PERFORM,V?LOOK
RTRUE
.FUNCT SLIME-F
EQUAL? PRSA,V?EAT,V?TOUCH,V?TASTE \FALSE
PRINTR "Mega-yucko!"
.FUNCT WATER-F,X
CALL1 FIND-WATER >X
ZERO? X \?CND1
CALL2 VISIBLE?,LARGE-VIAL
ZERO? STACK /?CCL5
CALL2 VISIBLE?,SMALL-VIAL
ZERO? STACK /?CCL5
GRTR? LARGE-VIAL-GLOOPS,0 \?CCL5
GRTR? SMALL-VIAL-GLOOPS,0 \?CCL5
PRINT WHICH-WATER
RTRUE
?CCL5: CALL2 VISIBLE?,LARGE-VIAL
ZERO? STACK /?CCL11
GRTR? LARGE-VIAL-GLOOPS,0 \?CCL11
SET 'X,LARGE-VIAL
JUMP ?CND1
?CCL11: CALL2 VISIBLE?,SMALL-VIAL
ZERO? STACK /?CCL15
GRTR? SMALL-VIAL-GLOOPS,0 \?CCL15
SET 'X,SMALL-VIAL
?CND1: EQUAL? PRSA,V?COUNT \?CCL22
CALL NOUN-USED?,WATER,W?GLOOPS
ZERO? STACK /?CCL22
CALL2 VISIBLE?,LARGE-VIAL
ZERO? STACK /?CND25
PRINTI "The large vial "
ZERO? LARGE-VIAL-GLOOPS \?CCL29
PRINTI "is empty"
JUMP ?CND27
?CCL15: CALL2 HANDLE,WATER
ZERO? STACK /FALSE
PRINT YOU-CANT-SEE-ANY
PRINTR "water here.]"
?CCL29: PRINTI "contains "
PRINTN LARGE-VIAL-GLOOPS
PRINTI " gloop"
EQUAL? LARGE-VIAL-GLOOPS,1 /?CND27
PRINTC 115
?CND27: CALL2 VISIBLE?,SMALL-VIAL
ZERO? STACK /?CCL34
PRINTI ". "
JUMP ?CND25
?CCL34: PRINT PERIOD-CR
?CND25: CALL2 VISIBLE?,SMALL-VIAL
ZERO? STACK /FALSE
PRINTI "The small vial "
ZERO? SMALL-VIAL-GLOOPS \?CCL40
PRINTI "is empty"
JUMP ?CND38
?CCL40: PRINTI "contains "
PRINTN SMALL-VIAL-GLOOPS
PRINTI " gloop"
EQUAL? SMALL-VIAL-GLOOPS,1 /?CND38
PRINTC 115
?CND38: PRINT PERIOD-CR
RTRUE
?CCL22: EQUAL? PRSA,V?FILL \?CCL44
EQUAL? PRSI,WATER \?CCL44
EQUAL? PRSO,LARGE-VIAL,SMALL-VIAL \?CCL49
EQUAL? X,LARGE-VIAL \?CCL52
ICALL PERFORM,V?FILL,PRSO,LARGE-VIAL
RTRUE
?CCL52: EQUAL? X,SMALL-VIAL \FALSE
ICALL PERFORM,V?FILL,PRSO,SMALL-VIAL
RTRUE
?CCL49: EQUAL? PRSO,CUP \?CCL56
PRINTR "The water evaporates in a puff of smoke as soon as it touches the cup. A strong magic is at work here!"
?CCL56: CALL1 IMPOSSIBLES
RSTACK
?CCL44: EQUAL? PRSA,V?EMPTY,V?REMOVE \?CCL58
ZERO? PRSI \?CCL58
CALL NOUN-USED?,WATER,W?GLOOP,W?GLOOPS
ZERO? STACK /?CCL58
CALL2 VISIBLE?,LARGE-VIAL
ZERO? STACK \?CTR57
CALL2 VISIBLE?,SMALL-VIAL
ZERO? STACK /?CCL58
?CTR57: CALL2 VISIBLE?,LARGE-VIAL
ZERO? STACK /?CCL67
CALL2 VISIBLE?,SMALL-VIAL
ZERO? STACK /?CCL67
ZERO? LARGE-VIAL-GLOOPS /?CCL72
ZERO? SMALL-VIAL-GLOOPS /?CCL72
PRINTR "There's water in both vials."
?CCL72: ZERO? LARGE-VIAL-GLOOPS /?CCL76
SET 'PRSI,LARGE-VIAL
JUMP ?CND65
?CCL76: ZERO? SMALL-VIAL-GLOOPS /?CCL78
SET 'PRSI,SMALL-VIAL
JUMP ?CND65
?CCL78: PRINTR "Neither vial contains water!"
?CCL67: CALL2 VISIBLE?,LARGE-VIAL
ZERO? STACK /?CCL80
SET 'PRSI,LARGE-VIAL
JUMP ?CND65
?CCL80: SET 'PRSI,SMALL-VIAL
?CND65: ICALL PERFORM,V?EMPTY-FROM,WATER,PRSI
RTRUE
?CCL58: EQUAL? PRSA,V?DRINK \?CCL82
PRINTR "You're not thirsty."
?CCL82: EQUAL? PRSA,V?EXAMINE,V?LOOK-UNDER,V?LOOK-INSIDE \?CCL84
PRINTR "You see nothing of interest."
?CCL84: EQUAL? PRSA,V?TOUCH,V?REACH-IN \?CCL86
PRINTI "Your hand is now wet"
EQUAL? HERE,OASIS \?CND87
PRINTI " and cold"
?CND87: PRINT PERIOD-CR
RTRUE
?CCL86: EQUAL? PRSA,V?PUT-ON,V?PUT \?CCL90
EQUAL? PRSI,WATER \?CCL90
IN? PROTAGONIST,DB \?CCL95
PRINTR "You can't reach the water -- the bathysphere is closed! (Fortunately.)"
?CCL95: EQUAL? HERE,PARLOR \?CCL97
MOVE PRSO,FISH-TANK
JUMP ?CND93
?CCL97: EQUAL? HERE,LAKE-FLATHEAD \?CCL99
FSET? PRSO,ANIMATEDBIT \?CCL102
REMOVE PRSO
JUMP ?CND93
?CCL102: MOVE PRSO,LAKE-BOTTOM
JUMP ?CND93
?CCL99: EQUAL? PRSO,PERCH /?CCL104
CALL ULTIMATELY-IN?,PERCH,PRSO
ZERO? STACK /?CND103
?CCL104: SET 'REMOVED-PERCH-LOC,WATER
?CND103: REMOVE PRSO
?CND93: PRINTI "With a ""p"
EQUAL? PRSO,FLICKERING-TORCH,GUTTERING-TORCH,CANDLE \?CCL109
FSET? PRSO,ONBIT \?CCL109
FCLEAR PRSO,ONBIT
FCLEAR PRSO,FLAMEBIT
EQUAL? PRSO,GUTTERING-TORCH \?CCL114
ICALL2 DEQUEUE,I-GUTTERING-TORCH
JUMP ?CND112
?CCL114: EQUAL? PRSO,FLICKERING-TORCH \?CND112
ICALL2 DEQUEUE,I-FLICKERING-TORCH
?CND112: PRINTI "ffft"
JUMP ?CND107
?CCL109: PRINTI "lunk"
?CND107: PRINTI ","""
ICALL1 TPRINT-PRSO
PRINTI " sinks into the water"
EQUAL? PRSO,FOX,ROOSTER \?CND116
PRINTI ", you heartless animal drowner, you"
?CND116: PRINT PERIOD-CR
RTRUE
?CCL90: EQUAL? PRSA,V?SWIM,V?ENTER \?CCL119
EQUAL? X,SWAMP \?CCL122
PRINTR "You're already ankle-deep in the swampy water, which is yucky enough."
?CCL122: EQUAL? X,FRIGID-RIVER \?CCL124
PRINTR "The Frigid River is known for its unpredictable currents."
?CCL124: EQUAL? X,FLATHEAD-OCEAN \?CCL126
PRINTR "The pounding surf would kill you in a moment."
?CCL126: EQUAL? X,LAKE-FLATHEAD \?CCL128
ZERO? ALLIGATOR /?CCL131
CALL2 JIGS-UP,STR?200
RSTACK
?CCL131: PRINTR "These waters are known for their hungry denizens."
?CCL128: EQUAL? X,STREAM-OBJECT \?CCL133
CALL2 DO-WALK,P?WEST
RSTACK
?CCL133: EQUAL? X,OASIS-OBJECT \?CCL135
PRINTR "Only a Polar Gumffbeast could swim in such cold water!"
?CCL135: EQUAL? X,FISH-TANK \?CCL137
ZERO? DESCRIBED-TANK-AS-LARGE /?CCL140
PRINTR "There's no way you could fit into this fish tank! [All right, I'll admit that I went a little overboard when I described the fish tank as ""bigger than a swimming pool.""]"
?CCL140: SET 'DESCRIBED-TANK-AS-SMALL,TRUE-VALUE
PRINTR "What? Swim in an itsy-bitsy fish tank like this one?!?"
?CCL137: EQUAL? X,MOAT \FALSE
ZERO? ALLIGATOR /?CCL145
CALL2 JIGS-UP,STR?201
RSTACK
?CCL145: PRINTR "Not recommended. Moats tend to be populated with big, nasty alligators."
?CCL119: EQUAL? PRSO,WATER \?CCL147
CALL PERFORM-PRSA,X,PRSI
RSTACK
?CCL147: CALL PERFORM-PRSA,PRSO,X
RSTACK
.FUNCT FIND-WATER
CALL GLOBAL-IN?,MOAT,HERE
ZERO? STACK /?CCL3
RETURN MOAT
?CCL3: EQUAL? HERE,STREAM \?CCL5
RETURN STREAM-OBJECT
?CCL5: EQUAL? HERE,PARLOR \?CCL7
RETURN FISH-TANK
?CCL7: EQUAL? HERE,RIVERS-END \?CCL9
RETURN FRIGID-RIVER
?CCL9: CALL GLOBAL-IN?,FLATHEAD-OCEAN,HERE
ZERO? STACK /?CCL11
RETURN FLATHEAD-OCEAN
?CCL11: EQUAL? HERE,LAKE-FLATHEAD /?CTR12
CALL GLOBAL-IN?,LAKE-FLATHEAD,HERE
ZERO? STACK /?CCL13
?CTR12: RETURN LAKE-FLATHEAD
?CCL13: CALL GLOBAL-IN?,SWAMP,HERE
ZERO? STACK /?CCL17
RETURN SWAMP
?CCL17: CALL GLOBAL-IN?,FJORD,HERE
ZERO? STACK /?CCL19
RETURN FJORD
?CCL19: EQUAL? HERE,OASIS \FALSE
RETURN OASIS-OBJECT
.FUNCT VIAL-WATER-F
EQUAL? PRSA,V?TAKE \FALSE
EQUAL? P-PRSA-WORD,W?REMOVE \FALSE
EQUAL? PRSO,LARGE-VIAL-WATER \?CCL8
PUSH LARGE-VIAL
JUMP ?CND6
?CCL8: PUSH SMALL-VIAL
?CND6: CALL PERFORM,V?EMPTY-FROM,WATER,STACK
RSTACK
.FUNCT G-VIAL-WATER-F,SR,F,ADJ,VB
GET F,5 >ADJ
ZERO? ADJ /?CND1
CALL2 CONVERT-NUMBER,ADJ >ADJ
?CND1: LESS? LARGE-VIAL-GLOOPS,ADJ \?CCL5
LESS? SMALL-VIAL-GLOOPS,ADJ /FALSE
RETURN SMALL-VIAL-WATER
?CCL5: LESS? SMALL-VIAL-GLOOPS,ADJ \FALSE
RETURN LARGE-VIAL-WATER
.FUNCT HANDS-F,ACTOR
EQUAL? PRSA,V?CLEAN \?CCL3
CALL1 WASTES
RSTACK
?CCL3: EQUAL? PRSA,V?SHAKE \?CCL5
CALL FIND-IN,HERE,ACTORBIT,STR?202 >ACTOR
ZERO? ACTOR /?CCL8
ICALL PERFORM,V?SHAKE-WITH,HANDS,ACTOR
RTRUE
?CCL8: PRINTR "There's no one here to shake hands with."
?CCL5: EQUAL? PRSA,V?COUNT \?CCL10
CALL NOUN-USED?,HANDS,W?FINGER,W?FINGERS
ZERO? STACK /?CCL13
PRINTI "Ten"
JUMP ?CND11
?CCL13: PRINTI "Two"
?CND11: PRINTR ", as usual."
?CCL10: EQUAL? PRSA,V?CLOSE,V?OPEN \?CCL15
ZERO? HAND-IN-WALDO /?CCL15
ICALL2 PERFORM-PRSA,WALDO
RTRUE
?CCL15: EQUAL? PRSA,V?TAKE-OFF,V?REMOVE \?CCL19
ZERO? HAND-IN-WALDO /?CCL22
SET 'HAND-IN-WALDO,FALSE-VALUE
PRINTR "You withdraw your hand."
?CCL22: ZERO? FINGER-ON-STRAW /?CCL24
SET 'FINGER-ON-STRAW,FALSE-VALUE
SET 'ELIXIR-TRAPPED,FALSE-VALUE
PRINTR "You remove your finger from the end of the straw."
?CCL24: PRINTR "To quote an old song, ""The hand bone's connected to the wrist bone..."""
?CCL19: EQUAL? PRSA,V?PUT-ON \?CCL26
EQUAL? PRSO,GLOVE \?CCL26
ICALL PERFORM,V?WEAR,GLOVE
RTRUE
?CCL26: EQUAL? PRSA,V?TAKE-WITH \?CCL30
EQUAL? PRSI,HANDS \?CCL30
ICALL PERFORM,V?TAKE,PRSO
RTRUE
?CCL30: EQUAL? PRSA,V?SNAP \FALSE
CALL NOUN-USED?,HANDS,W?FINGER,W?FINGERS
ZERO? STACK /FALSE
ZERO? TIME-STOPPED \FALSE
IN? PROTAGONIST,SMALL-THRONE \?CCL40
CALL1 OPEN-SECRET-PASSAGE?
RSTACK
?CCL40: PRINTR """Snap!"""
.FUNCT OPEN-SECRET-PASSAGE?
ZERO? SECRET-PASSAGE-OPEN /?CCL3
SET 'SECRET-PASSAGE-OPEN,FALSE-VALUE
SET 'COMPASS-CHANGED,TRUE-VALUE
PRINTR "The secret passage closes!"
?CCL3: ZERO? SECRET-PASSAGE-DISCOVERED /?CCL5
SET 'SECRET-PASSAGE-OPEN,TRUE-VALUE
SET 'COMPASS-CHANGED,TRUE-VALUE
PRINTR "The secret passage opens once again."
?CCL5: SET 'SECRET-PASSAGE-OPEN,TRUE-VALUE
SET 'SECRET-PASSAGE-DISCOVERED,TRUE-VALUE
SET 'COMPASS-CHANGED,TRUE-VALUE
PRINTI "Behind the throne, accompanied by a puff of dust, a secret passage grinds open, leading south into darkness!"
IN? JESTER,HERE \?CND6
PRINTI " The jester applauds you, howling with mysterious delight."
?CND6: CRLF
ICALL2 INC-SCORE,SECRET-PASSAGE-SCORE
SET 'SECRET-PASSAGE-SCORE,0
RTRUE
.FUNCT FEET-F
EQUAL? PRSA,V?ENTER \FALSE
EQUAL? P-PRSA-WORD,W?GET \FALSE
SET 'P-PRSA-WORD,W?STAND
SET 'PRSO,FALSE-VALUE
CALL1 V-STAND
RSTACK
.FUNCT EYES-F,WHOSE-EYE
CALL ADJ-USED?,EYES,W?MY,W?MINE
ZERO? STACK /?CCL3
SET 'WHOSE-EYE,PROTAGONIST
JUMP ?CND1
?CCL3: CALL ADJ-USED?,EYES,W?ORACLE'S
ZERO? STACK /?CCL5
SET 'WHOSE-EYE,ORACLE-OBJECT
JUMP ?CND1
?CCL5: CALL ADJ-USED?,EYES,W?AMULET'S
ZERO? STACK /?CCL7
SET 'WHOSE-EYE,AMULET
JUMP ?CND1
?CCL7: EQUAL? HERE,ORACLE \?CCL9
SET 'WHOSE-EYE,ORACLE-OBJECT
JUMP ?CND1
?CCL9: CALL2 VISIBLE?,AMULET
ZERO? STACK /?CCL11
SET 'WHOSE-EYE,AMULET
JUMP ?CND1
?CCL11: SET 'WHOSE-EYE,PROTAGONIST
?CND1: CALL ADJ-USED?,EYES,W?THREE,W?FOUR
ZERO? STACK \?PRD16
CALL ADJ-USED?,EYES,W?THIRD,W?FOURTH
ZERO? STACK /?CCL14
?PRD16: EQUAL? WHOSE-EYE,PROTAGONIST \?CCL14
CALL2 CANT-SEE,EYES
RSTACK
?CCL14: EQUAL? PRSA,V?COUNT \?CCL20
EQUAL? WHOSE-EYE,PROTAGONIST \?CCL23
PRINTR "Two, unless you've been careless with pointy sticks lately."
?CCL23: PRINTR "Four."
?CCL20: EQUAL? PRSA,V?CLOSE,V?OPEN \?CCL25
EQUAL? WHOSE-EYE,ORACLE-OBJECT,AMULET \?CCL25
PRINTR "There's no way to do that yourself."
?CCL25: EQUAL? PRSA,V?CLOSE \?CCL29
ICALL2 PERFORM,V?SLEEP
RTRUE
?CCL29: EQUAL? PRSA,V?OPEN \FALSE
PRINTR "Your eyes ARE open!"
.FUNCT NOSE-F
EQUAL? PRSA,V?PICK \FALSE
PRINTR "Oh, gross!"
.FUNCT MOUTH-F
EQUAL? PRSA,V?PUT \?CCL3
EQUAL? PRSI,MOUTH \?CCL3
EQUAL? PRSO,STRAW \?CCL8
PRINTR "Other than perhaps satisfying some primitive phallic urge of yours, this accomplishes nothing. [If you want to drink something with the straw, just try DRINK THING WITH STRAW!]"
?CCL8: ICALL PERFORM,V?EAT,PRSO
RTRUE
?CCL3: EQUAL? PRSA,V?ENTER \FALSE
PRINTR "That would involve quite a contortion!"
.ENDSEG
.SEGMENT "0"
.FUNCT ME-F
EQUAL? PRSA,V?CALL,V?YELL,V?TELL \?CCL3
PRINTI "Talking to yourself is a sign of impending mental collapse."
CRLF
CALL1 STOP
RSTACK
?CCL3: EQUAL? PRSA,V?ALARM \?CCL5
PRINTR "You are already awake."
?CCL5: EQUAL? PRSA,V?EAT \?CCL7
PRINTR "Auto-cannibalism is not the answer."
?CCL7: EQUAL? PRSA,V?EXAMINE \?CCL9
CALL1 V-DIAGNOSE
RSTACK
?CCL9: EQUAL? PRSA,V?GIVE \?CCL11
EQUAL? PRSI,ME \?CCL11
ICALL PERFORM,V?TAKE,PRSO
RTRUE
?CCL11: EQUAL? PRSA,V?SHOW \?CCL15
EQUAL? PRSI,ME \?CCL15
ICALL PERFORM,V?EXAMINE,PRSO
RTRUE
?CCL15: EQUAL? PRSA,V?MOVE \?CCL19
CALL1 V-WALK-AROUND
RSTACK
?CCL19: EQUAL? PRSA,V?SEARCH \?CCL21
ICALL1 V-INVENTORY
RTRUE
?CCL21: EQUAL? PRSA,V?KICK,V?MUNG,V?KILL \?CCL23
EQUAL? P-PRSA-WORD,W?KILL,W?MURDER \?CCL26
CALL2 JIGS-UP,STR?204
RSTACK
?CCL26: PRINTI "[If you're really into masochistic fantasies, perhaps you'd be more at home playing Infocom's "
HLIGHT H-ITALIC
PRINTI "LEATHER GODDESSES OF PHOBOS"
HLIGHT H-NORMAL
PRINTR " (tm).]"
?CCL23: EQUAL? PRSA,V?FIND \FALSE
PRINTI "You're in"
CALL2 TRPRINT,HERE
RSTACK
.FUNCT GLOBAL-HERE-F
EQUAL? PRSA,V?EXAMINE,V?LOOK-INSIDE,V?LOOK \?CCL3
CALL1 V-LOOK
RSTACK
?CCL3: EQUAL? PRSA,V?WALK-TO,V?ENTER \?CCL5
EQUAL? HERE,LAKE-FLATHEAD \?CCL8
ICALL PERFORM,V?SWIM,LAKE-FLATHEAD
RTRUE
?CCL8: PRINT LOOK-AROUND
RTRUE
?CCL5: EQUAL? PRSA,V?EXIT,V?LEAVE \?CCL10
CALL2 DO-WALK,P?OUT
RSTACK
?CCL10: EQUAL? PRSA,V?SEARCH \?CCL12
PRINT NOTHING-NEW
RTRUE
?CCL12: EQUAL? PRSA,V?PUT-ON,V?PUT \FALSE
EQUAL? PRSI,GLOBAL-HERE \FALSE
EQUAL? P-PRSA-WORD,W?THROW \?CCL19
ICALL PERFORM,V?THROW,PRSO
RTRUE
?CCL19: ICALL PERFORM,V?DROP,PRSO
RTRUE
.FUNCT GLOBAL-BLDG-F
EQUAL? PRSA,V?ENTER \?CCL3
EQUAL? HERE,FISHING-VILLAGE,WHARF \?CCL3
CALL2 DO-WALK,P?NORTH
RSTACK
?CCL3: EQUAL? PRSA,V?LEAVE,V?EXIT \FALSE
CALL2 DO-WALK,P?OUT
RSTACK
.FUNCT ARCH-F
EQUAL? PRSA,V?ENTER \FALSE
CALL1 V-WALK-AROUND
RSTACK
.FUNCT WINDOW-F
EQUAL? PRSA,V?LOOK-INSIDE \?CCL3
EQUAL? HERE,GONDOLA \?CCL6
ZERO? DIRIGIBLE-COUNTER \?CCL9
PRINTR "The dirigible is moored in a hangar."
?CCL9: EQUAL? DESTINATION,SMALLER-HANGAR \?CCL11
SUB DIRIGIBLE-COUNTER,2
GET DIRIGIBLE-TRIP-DESCS,STACK
PRINT STACK
CRLF
RTRUE
?CCL11: SUB 5,DIRIGIBLE-COUNTER
GET DIRIGIBLE-TRIP-DESCS,STACK
PRINT STACK
CRLF
RTRUE
?CCL6: EQUAL? HERE,DIMWITS-ROOM,BASTION,SOLAR \?CCL13
PRINTR "The window offers a splendid view of the castle grounds."
?CCL13: EQUAL? HERE,HOTHOUSE \?CCL15
PRINTR "You see a ruined castle."
?CCL15: EQUAL? HERE,FR-PENTHOUSE,OFFICES-NORTH,OFFICES-SOUTH /?CTR16
EQUAL? HERE,OFFICES-EAST,OFFICES-WEST \?CCL17
?CTR16: EQUAL? HERE,FR-PENTHOUSE /?CTR21
GRTR? FLOOR-NUMBER,20 \?CCL22
?CTR21: PRINTR "You can't see much; the air is pretty smoggy today."
?CCL22: PRINTR "The window offers a good view of Flatheadia."
?CCL17: PRINTR "Bug 29."
?CCL3: EQUAL? PRSA,V?CLOSE,V?OPEN \?CCL26
EQUAL? HERE,HOTHOUSE \?CCL29
PRINTR "There's not much left of the windows."
?CCL29: EQUAL? HERE,DIMWITS-ROOM,BASTION,SOLAR \?CCL31
PRINTR "The window is just a narrow slit in the stone wall; there's no way to open or close it."
?CCL31: PRINTR "The window is unopenable."
?CCL26: EQUAL? PRSA,V?LEAP-OFF,V?EXIT,V?ENTER \?CCL33
EQUAL? HERE,HOTHOUSE \?CCL36
PRINTR "You cut yourself to ribbons on the broken glass."
?CCL36: EQUAL? HERE,DIMWITS-ROOM,BASTION,SOLAR \?CCL38
PRINTR "These slitted windows are narrower than your body."
?CCL38: CALL DO-FIRST,STR?140,WINDOW
RSTACK
?CCL33: EQUAL? PRSA,V?PUT-THROUGH \?CCL40
EQUAL? HERE,HOTHOUSE,DIMWITS-ROOM,SOLAR /?CTR42
EQUAL? HERE,BASTION \?CCL43
?CTR42: REMOVE PRSO
PRINTI "You hear a ""splat"" as"
ICALL1 TPRINT-PRSO
PRINTI " sinks into the "
EQUAL? HERE,HOTHOUSE \?CCL48
EQUAL? PRSO,PERCH /?CCL50
CALL ULTIMATELY-IN?,PERCH,PRSO
ZERO? STACK /?CND49
?CCL50: SET 'REMOVED-PERCH-LOC,WATER
?CND49: PRINTI "swamp outside"
JUMP ?CND46
?CCL48: EQUAL? PRSO,PERCH /?CCL54
CALL ULTIMATELY-IN?,PERCH,PRSO
ZERO? STACK /?CND53
?CCL54: SET 'REMOVED-PERCH-LOC,GROUND
?CND53: PRINTI "ground far below"
?CND46: PRINT PERIOD-CR
RTRUE
?CCL43: CALL DO-FIRST,STR?140,WINDOW
RSTACK
?CCL40: EQUAL? PRSA,V?EXAMINE \FALSE
EQUAL? HERE,HOTHOUSE \FALSE
PRINTR "Many of the window panes are shattered."
.FUNCT LOCK-OBJECT-F
CALL NOUN-USED?,LOCK-OBJECT,W?KEYHOLE
ZERO? STACK /?CCL3
EQUAL? HERE,LOWEST-HALL \?CCL3
CALL2 CANT-SEE,LOCK-OBJECT
RSTACK
?CCL3: EQUAL? PRSA,V?EXAMINE \?CCL7
EQUAL? HERE,LOWEST-HALL \?CCL10
PRINTR "It's a large combination dial lock."
?CCL10: PRINTR "It's your basic keyhole lock."
?CCL7: EQUAL? PRSA,V?LOOK-INSIDE \?CCL12
PRINTR "You see nothing of interest, you shameless Peeping Tom you."
?CCL12: EQUAL? PRSA,V?PICK \?CCL14
PRINTR "You have neither the tools nor the expertise."