-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpuzzles.zap
1800 lines (1667 loc) · 54.2 KB
/
puzzles.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
.FUNCT RT-EXAMINE-GEM,GEM
EQUAL? GEM,TH-SAPPHIRE \?CCL3
IN? TH-SAPPHIRE,TH-CLAPPER \?CCL3
PRINTR "The sapphire is hanging from the end of the clapper."
?CCL3: LOC GEM
EQUAL? STACK,CH-PLAYER \?CCL7
EQUAL? GL-PRSA,V?EXAMINE,V?LOOK-ON \?CCL10
PRINTI "It looks as if there is a scratch on "
ICALL1 RT-THEO-PRINT
PRINTR "."
?CCL10: EQUAL? GL-PRSA,V?READ \?CCL12
PRINTI "All you can see on "
ICALL1 RT-THEO-PRINT
PRINTR " is a scratch."
?CCL12: EQUAL? GL-PRSA,V?LOOK-THRU \FALSE
EQUAL? GL-PRSI,TH-MAGNIFYING-GLASS \FALSE
IN? TH-MAGNIFYING-GLASS,GL-WINNER \?CCL19
PRINTI "You see """
EQUAL? GEM,TH-SAPPHIRE \?CCL22
PRINTI "2:00 a.m."
JUMP ?CND20
?CCL22: EQUAL? GEM,TH-EMERALD \?CCL24
PRINTI "20/6/87"
JUMP ?CND20
?CCL24: EQUAL? GEM,TH-OPAL \?CCL26
PRINTI "Password: Swordfish"
JUMP ?CND20
?CCL26: EQUAL? GEM,TH-RUBY \?CCL28
PRINTI "Wear a carnation"
JUMP ?CND20
?CCL28: EQUAL? GEM,TH-TOPAZ \?CCL30
PRINTI "Bar of Gold"
JUMP ?CND20
?CCL30: EQUAL? GEM,TH-GARNET \?CND20
PRINTI "Give me to Akbar"
?CND20: PRINTI """ scratched into the surface of "
ICALL1 RT-THEO-PRINT
PRINTC 46
CRLF
BTST CH-HOLMES-AUX1,2 /TRUE
BOR CH-HOLMES-AUX1,K-HOLMES-GEM? >CH-HOLMES-AUX1
MOVE TH-RING,CH-PLAYER
FSET TH-RING,FL-SEEN
FSET TH-RING,FL-TOUCHED
FCLEAR TH-RING,FL-NODESC
CRLF
PRINTI "Holmes"
ICALL1 RT-HOLMES-SAYS-AGRA-MSG
GETP TH-RING,P?VALUE
ICALL2 RT-UPDATE-SCORE,STACK
PUTP TH-RING,P?VALUE,0
RTRUE
?CCL19: ICALL RT-YOUD-HAVE-TO-MSG,STR?738,TH-MAGNIFYING-GLASS
RTRUE
?CCL7: EQUAL? GL-PRSA,V?READ \?CCL36
ICALL1 RT-CYOU-MSG
ICALL RT-WOULD-HAVE-TO-MSG,STR?738,GL-PRSO
PRINTI " to read "
ICALL2 RT-SAY-HIM-HER-THEM-IT-MSG,GL-PRSO
PRINTR "."
?CCL36: EQUAL? GL-PRSA,V?LOOK-THRU \?CCL38
EQUAL? GL-PRSI,TH-MAGNIFYING-GLASS \?CCL38
ICALL1 RT-CYOU-MSG
ICALL RT-WOULD-HAVE-TO-MSG,STR?738,GL-PRSO
PRINT K-GOOD-LOOK-MSG
CRLF
RTRUE
?CCL38: EQUAL? GL-PRSA,V?EXAMINE,V?LOOK-ON \FALSE
ICALL1 RT-CYOU-MSG
ICALL RT-WOULD-HAVE-TO-MSG,STR?738,GL-PRSO
PRINT K-GOOD-LOOK-MSG
CRLF
RTRUE
.FUNCT RT-HANDLE-SCRATCH,GEM,CONTEXT
EQUAL? CONTEXT,K-M-SDESC \?CCL3
PUTP GEM,P?OBJ-NOUN,0
ICALL2 DPRINT,GEM
PUTP GEM,P?OBJ-NOUN,W?SCRATCH
PRINTI "'s scratch"
RTRUE
?CCL3: EQUAL? CONTEXT,K-M-DESCFCN /?CND1
?CND1: LOC GEM
EQUAL? STACK,CH-PLAYER \?CCL7
EQUAL? GL-PRSA,V?EXAMINE \?CCL10
PRINTR "It looks like very tiny writing."
?CCL10: EQUAL? GL-PRSA,V?READ \?CCL12
PRINTR "It is too tiny."
?CCL12: EQUAL? GL-PRSA,V?LOOK-THRU \FALSE
EQUAL? GL-PRSI,TH-MAGNIFYING-GLASS \FALSE
IN? TH-MAGNIFYING-GLASS,GL-WINNER \?CCL19
PRINTI "You see """
EQUAL? GEM,TH-SAPPHIRE \?CCL22
PRINTI "2:00 a.m"
JUMP ?CND20
?CCL22: EQUAL? GEM,TH-EMERALD \?CCL24
PRINTI "20/6/87"
JUMP ?CND20
?CCL24: EQUAL? GEM,TH-OPAL \?CCL26
PRINTI "Password: Swordfish"
JUMP ?CND20
?CCL26: EQUAL? GEM,TH-RUBY \?CCL28
PRINTI "Wear a carnation"
JUMP ?CND20
?CCL28: EQUAL? GEM,TH-TOPAZ \?CCL30
PRINTI "Bar of Gold"
JUMP ?CND20
?CCL30: EQUAL? GEM,TH-GARNET \?CND20
PRINTI "Give me to Akbar"
?CND20: PRINTI "."""
CRLF
BTST CH-HOLMES-AUX1,2 /TRUE
BOR CH-HOLMES-AUX1,K-HOLMES-GEM? >CH-HOLMES-AUX1
MOVE TH-RING,CH-PLAYER
FSET TH-RING,FL-SEEN
FSET TH-RING,FL-TOUCHED
FCLEAR TH-RING,FL-NODESC
CRLF
PRINTI "Holmes"
ICALL1 RT-HOLMES-SAYS-AGRA-MSG
GETP TH-RING,P?VALUE
ICALL2 RT-UPDATE-SCORE,STACK
PUTP TH-RING,P?VALUE,0
RTRUE
?CCL19: ICALL RT-YOUD-HAVE-TO-MSG,STR?738,TH-MAGNIFYING-GLASS
RTRUE
?CCL7: EQUAL? GL-PRSA,V?LOOK-THRU \?PRD38
EQUAL? GL-PRSI,TH-MAGNIFYING-GLASS /?CCL36
?PRD38: EQUAL? GL-PRSA,V?EXAMINE,V?READ \FALSE
?CCL36: ICALL1 RT-CYOU-MSG
ICALL RT-WOULD-HAVE-TO-MSG,STR?738,GEM
EQUAL? GL-PRSA,V?READ \?CCL43
PRINTR " to read the scratch."
?CCL43: PRINT K-GOOD-LOOK-MSG
CRLF
RTRUE
.FUNCT RT-HOLE?,OBJ,OFF,CNT,NUM,PLACE
?PRG1: MUL NUM,2 >OFF
GET GL-HOLES,0
EQUAL? NUM,STACK /?REP2
ADD OFF,1
GET GL-HOLES,STACK
EQUAL? OBJ,STACK \?CND3
ADD OFF,2
GET GL-HOLES,STACK >PLACE
ZERO? PLACE /?CCL8
EQUAL? GL-PLACE-CUR,PLACE \?CND3
?CCL8: INC 'CNT
?CND3: INC 'NUM
JUMP ?PRG1
?REP2: RETURN CNT
.FUNCT RT-WASTE-OF-BULLETS-MSG,WHO
CALL1 RT-WHO-SAYS? >WHO
EQUAL? WHO,CH-HOLMES \?CCL3
PRINTR "Holmes glances at you and says, ""Save your ammunition, Watson. More danger may lie ahead."""
?CCL3: EQUAL? WHO,CH-WIGGINS \?CCL5
PRINTI "Wiggins looks at you impatiently and says, ""'Ow in the name of Dick Whittington is shooting "
ICALL1 RT-A-PRINT
PRINTR " going to help Mr 'Olmes?"""
?CCL5: PRINTR "That would be a waste of bullets."
.FUNCT RT-SHOOT-DEAD-MSG,WHO
CALL1 RT-WHO-SAYS? >WHO
EQUAL? WHO,CH-HOLMES \?CCL3
PRINTR "Holmes lifts an eyebrow and says sardonically, ""Is shooting dead people a new trend in medical research, Doctor?"""
?CCL3: EQUAL? WHO,CH-WIGGINS \?CCL5
PRINTR "Wiggins tugs at your sleeve and whispers nervously, ""Everyone here is already dead... aren't they?"""
?CCL5: PRINTR "Have you no decency? Have you no shame? No? Then a bright future awaits you in the legal profession. Apply now to the law school of your choice."
.FUNCT RT-READ-NEWSPAPER
PRINTR "It's the newspaper that came in your game package."
.FUNCT RT-WAKE-UP-HOLMES
FCLEAR CH-HOLMES,FL-ASLEEP
FSET LG-PARLOUR-DOOR,FL-OPENED
REMOVE TH-PHIAL
REMOVE TH-MOROCCO-CASE
REMOVE TH-SYRINGE
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
ICALL RT-ALARM-SET-REL,RT-I-PM-HALL,STACK
ICALL2 RT-ALARM-CLR,RT-I-PM-QUITS
PRINTI "Holmes "
EQUAL? TH-NEWSPAPER,GL-PRSO,GL-PRSI \?CND1
PRINTI "glances at the paper and his eye falls on the notice about the Tower of London. He "
?CND1: PRINTI "immediately leaps to his feet and hurls the phial and the case into the fireplace. The phial and the syringe shatter, and the liquid evaporates instantly, but the detective does not even notice. "
EQUAL? GL-PRSI,CH-PRIME-MINISTER \?CCL5
PRINTI """A client?"" he exclaims. ""On government business? Most interesting."""
JUMP ?CND3
?CCL5: PRINTI """They've closed the Tower?"" he exclaims. ""Most singular."""
?CND3: CRLF
ICALL2 RT-UPDATE-SCORE,5
CRLF
PRINTI "Holmes strides to the door and calls down to Mrs Hudson to bring up a tray of food. Then he plops back down on the sofa, "
EQUAL? GL-PRSI,CH-PRIME-MINISTER \?CND6
CALL RT-META-IN?,TH-NEWSPAPER,CH-PLAYER
ZERO? STACK \?CND6
CALL2 RT-META-LOC,TH-NEWSPAPER
EQUAL? STACK,RM-HOLMES-STUDY \?CND6
PRINTI "glances at the newspaper, and then "
?CND6: PRINTR "makes a steeple of his fingertips and focuses his intense gaze upon you."
.FUNCT RT-I-PM-HALL
FSET CH-HUDSON,FL-NODESC
MOVE CH-PRIME-MINISTER,RM-ENTRY-HALL
MOVE CH-HUDSON,RM-ENTRY-HALL
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
ICALL RT-ALARM-SET-REL,RT-I-PM-VESTIBULE,STACK
EQUAL? GL-PLACE-CUR,RM-VESTIBULE \FALSE
CRLF
PRINTR "Mrs Hudson and the visitor emerge from the parlour and appear to be on their way upstairs."
.FUNCT RT-I-PM-VESTIBULE
MOVE CH-PRIME-MINISTER,RM-VESTIBULE
MOVE CH-HUDSON,RM-VESTIBULE
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
ICALL RT-ALARM-SET-REL,RT-I-HUDSON,STACK
EQUAL? GL-PLACE-CUR,RM-VESTIBULE \?CCL3
EQUAL? GL-PLACE-PRV,RM-ENTRY-HALL /?CCL3
CRLF
PRINTR "Mrs Hudson and the visitor arrive at the top of the stairs on their way into Holmes's study."
?CCL3: EQUAL? GL-PLACE-CUR,RM-ENTRY-HALL \FALSE
EQUAL? GL-PLACE-PRV,RM-VESTIBULE \FALSE
CRLF
PRINTR "Mrs Hudson and the visitor passed you on the stairs."
.FUNCT RT-I-HUDSON,NUM
MOVE CH-PRIME-MINISTER,RM-HOLMES-STUDY
REMOVE CH-HUDSON
FCLEAR CH-HUDSON,FL-NODESC
SET 'NUM,RM-HOLMES-STUDY-AUX1
ZERO? NUM \?CND1
EQUAL? GL-PLACE-CUR,RM-VESTIBULE \?CCL5
CRLF
PRINTI "Mrs Hudson ushers the visitor into "
ICALL2 RT-THEO-PRINT,RM-HOLMES-STUDY
PRINTI " and goes downstairs."
CRLF
JUMP ?CND1
?CCL5: EQUAL? GL-PLACE-CUR,RM-ENTRY-HALL \?CND1
CRLF
PRINTI "You see Mrs Hudson come down the stairway."
CRLF
?CND1: EQUAL? GL-PLACE-CUR,RM-HOLMES-STUDY /?CTR8
EQUAL? RM-HOLMES-STUDY-AUX1,3 \?CCL9
?CTR8: MOVE TH-WESTMINSTER-CLUE,CH-PLAYER
FSET TH-WESTMINSTER-CLUE,FL-SEEN
FSET CH-PRIME-MINISTER,FL-SEEN
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,3,0
ICALL RT-ALARM-SET-REL,RT-I-PM-LEAVE,STACK
EQUAL? GL-PLACE-CUR,RM-HOLMES-STUDY \?CCL14
ZERO? NUM \?CCL14
CRLF
PRINTI "Mrs Hudson appears at the door, accompanied by a worried-looking gentleman."
CRLF
CRLF
PRINTI "Holmes jumps up and ushers the gentleman to the armchair, dismissing Mrs Hudson at the same time. ""Watson,"" he says, ""I am sure you recognize our distinguished visitor. "
JUMP ?CND12
?CCL14: EQUAL? GL-PLACE-CUR,RM-HOLMES-STUDY \?CCL18
EQUAL? NUM,1,2 \?CCL18
CRLF
PRINTI "Holmes has seated his visitor and is exchanging pleasantries with him. As you walk in Holmes looks up and says, ""Ah, here you are Watson. Now we can get down to business."" He turns to the gentleman seated in the armchair and says, """
JUMP ?CND12
?CCL18: CRLF
PRINTI "Holmes appears and says, ""Come with me, Watson. We have an important visitor."" He takes you by the arm and ushers you back to his study. Once inside, he gestures to the guest seated in the armchair and says, """
MOVE CH-PLAYER,RM-HOLMES-STUDY
SET 'GL-PLACE-PRV,GL-PLACE-CUR
SET 'GL-PLACE-CUR,RM-HOLMES-STUDY
?CND12: PRINTI "I presume, sir, that you have come about the Jewels."""
CRLF
CRLF
PRINTI "The visitor half rises from his chair in protest and sputters, ""But...but, how...?"""
CRLF
CRLF
PRINTI "Holmes calms him with a glance. ""Come, sir. What else could it be? The Tower is suddenly closed, and within hours I receive a call from the highest official of Her Majesty's government. A simple deduction. Now then, tell me about the theft."""
CRLF
CRLF
PRINTI "The visitor settles back into his chair and says, ""We know very little. Only that the Crown Jewels were stolen from the Tower sometime Thursday night. The theft was discovered Friday morning, and we immediately closed and searched the Tower. All we found was this verse which was left behind in the empty jewel case."""
CRLF
CRLF
PRINTI "The visitor removes a folded piece of paper from his pocket and gives it to Holmes, who glances at it and passes it on to you."
CRLF
ICALL2 RT-THIS-IS-IT,TH-WESTMINSTER-CLUE
ICALL2 RT-THIS-IS-IT,CH-PRIME-MINISTER
RTRUE
?CCL9: CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
ICALL RT-ALARM-SET-REL,RT-I-HUDSON,STACK
ADD NUM,1 >RM-HOLMES-STUDY-AUX1
ZERO? NUM \TRUE
CRLF
PRINTR "You hear Holmes call you to come back into his study..."
.FUNCT RT-I-PM-LEAVE
FCLEAR LG-HOLMES-BEDROOM-DOOR,FL-LOCKED
FSET LG-HOLMES-BEDROOM-DOOR,FL-OPENED
REMOVE CH-PRIME-MINISTER
MOVE CH-HOLMES,RM-221B-BAKER-ST
LOC CH-PLAYER
EQUAL? STACK,RM-HOLMES-STUDY \?CCL3
CRLF
PRINTI "The visitor looks at his pocket watch and stands up. ""Thank you, gentlemen. I must go now. Remember, this calamity can only be hidden from the public until Monday morning at nine o'clock. If the Regalia is not at Buckingham Palace in time for the Coronation Day festivities, then all is lost."""
CRLF
CRLF
PRINTI "The gentleman leaves, and Holmes unlocks the door to the bedroom, goes in, and reappears moments later wearing his Inverness cape and deerstalker hat."
CRLF
CRLF
PRINTR """Come when you're ready, Watson. I'll wait for you outside."""
?CCL3: EQUAL? GL-PLACE-CUR,RM-221B-BAKER-ST \?CCL5
CRLF
PRINTR "You see Holmes and the visitor emerge from the house. They confer briefly, shake hands, and then the Minister walks off into the fog."
?CCL5: CRLF
PRINTR "Holmes and the visitor brush past you as they leave the house. Holmes says to you, ""Come when you're ready, Watson. I'll wait for you outside."""
.FUNCT RT-I-PM-QUITS
CRLF
EQUAL? GL-PLACE-CUR,RM-221B-BAKER-ST \?CCL3
PRINTI "You see "
ICALL2 RT-THEO-PRINT,LG-BAKER-ST-DOOR
PRINTI " open, and a dejected-looking man comes out. He slowly walks away into the fog."
CRLF
CRLF
JUMP ?CND1
?CCL3: EQUAL? GL-PLACE-CUR,RM-HOLMES-STUDY,RM-VESTIBULE \?CCL5
PRINTI "From downstairs you hear the sound of a door closing. You go down and open "
ICALL2 RT-THEO-PRINT,LG-BAKER-ST-DOOR
PRINTI " in time to see a dejected-looking man disappearing into the fog."
CRLF
CRLF
JUMP ?CND1
?CCL5: EQUAL? GL-PLACE-CUR,RM-ENTRY-HALL \?CND1
PRINTI "Suddenly "
ICALL2 RT-THEO-PRINT,LG-PARLOUR-DOOR
PRINTI " opens and a dejected-looking man appears. ""Thank you for trying, Mrs Hudson, but without Sherlock Holmes, there is no hope."" He opens "
ICALL2 RT-THEO-PRINT,LG-BAKER-ST-DOOR
PRINTI " and disappears into the fog."
CRLF
CRLF
?CND1: PRINTI "Moments later you see newsboys running through the streets shouting, ""Crown Jewels stolen! Prime Minister resigns in disgrace!"""
CRLF
CRLF
CALL1 RT-QSR
RSTACK
.FUNCT RT-GET-PIGEON,OBJ,WHO
BTST CH-TRAINED-PIGEON-AUX1,4 \?CCL3
PRINTI """He's too young to fly too often."
SET 'OBJ,CH-TRAINED-PIGEON-AUX3
IN? OBJ,CH-SHERMAN \?CCL6
PRINTI " He did come back with "
ICALL2 RT-A-PRINT,OBJ
PRINTI ", however,"" he says, giving it to you."
CRLF
MOVE OBJ,CH-PLAYER
ICALL2 RT-THIS-IS-IT,OBJ
FSET OBJ,FL-SEEN
FSET OBJ,FL-TOUCHED
FCLEAR OBJ,FL-NODESC
GETP OBJ,P?VALUE
ZERO? STACK /FALSE
CALL1 RT-WHO-SAYS? >WHO
EQUAL? WHO,CH-HOLMES \?CND10
CRLF
PRINT K-BRAVO-MSG
CRLF
?CND10: GETP OBJ,P?VALUE
ICALL2 RT-UPDATE-SCORE,STACK
PUTP OBJ,P?VALUE,0
RTRUE
?CCL6: PRINTR " Come back next week."""
?CCL3: IN? CH-TRAINED-PIGEON,CH-SHERMAN \?CCL13
PRINTI "Sherman hands you the bird. ""Take good care of him, now. I've grown fond of him."""
CRLF
MOVE CH-TRAINED-PIGEON,CH-PLAYER
FSET CH-TRAINED-PIGEON,FL-SEEN
FSET CH-TRAINED-PIGEON,FL-TOUCHED
FCLEAR CH-TRAINED-PIGEON,FL-NODESC
GETP CH-TRAINED-PIGEON,P?VALUE
ICALL2 RT-UPDATE-SCORE,STACK
PUTP CH-TRAINED-PIGEON,P?VALUE,0
RTRUE
?CCL13: PRINTR """I've already given him to you."""
.FUNCT RT-PIGEON-INTEREST,ATT-BIT
EQUAL? ATT-BIT,K-PIGEON-GET-RUBY \?CND1
BTST CH-TRAINED-PIGEON-AUX1,1 /?CND1
ICALL2 RT-CTHEO-PRINT,CH-TRAINED-PIGEON
PRINTR " doesn't seem to see the object to which you are referring."
?CND1: BOR CH-TRAINED-PIGEON-AUX1,ATT-BIT >CH-TRAINED-PIGEON-AUX1
ICALL2 RT-AC-CH-TRAINED-PIGEON,K-M-DESCFCN
ICALL2 RT-ALARM-CLR,RT-I-PIGEON-LOSE-INTEREST
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,3,0
ICALL RT-ALARM-SET-REL,RT-I-PIGEON-LOSE-INTEREST,STACK
BTST CH-TRAINED-PIGEON-AUX1,1 \FALSE
BTST CH-TRAINED-PIGEON-AUX1,2 \FALSE
CALL2 RT-ALARM-SET?,RT-I-PIGEON-IMPATIENT
ZERO? STACK /?CND10
ICALL2 RT-ALARM-CLR,RT-I-PIGEON-IMPATIENT
?CND10: CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
CALL RT-ALARM-SET-REL,RT-I-PIGEON-IMPATIENT,STACK
RSTACK
.FUNCT RT-KILL-PIGEON
FCLEAR CH-TRAINED-PIGEON,FL-ALIVE
SET 'CH-TRAINED-PIGEON-AUX2,0
LOC CH-TRAINED-PIGEON
ZERO? STACK /?CND1
LOC CH-TRAINED-PIGEON
MOVE TH-DEAD-PIGEON,STACK
REMOVE CH-TRAINED-PIGEON
?CND1: ICALL2 RT-ALARM-CLR,RT-I-PIGEON-LOSE-INTEREST
ICALL2 RT-ALARM-CLR,RT-I-PIGEON-IMPATIENT
EQUAL? GL-PLACE-CUR,RM-SHERMANS-HOUSE \?CCL5
CALL2 RT-SHERMAN-RAGE,FALSE-VALUE
RSTACK
?CCL5: CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,30,0
CALL RT-ALARM-SET-REL,RT-I-SHERMANS-REVENGE,STACK
RSTACK
.FUNCT RT-PIGEON-OBJ,P-OBJ,WHO
MOVE P-OBJ,CH-PLAYER
ICALL2 RT-THIS-IS-IT,P-OBJ
FSET P-OBJ,FL-SEEN
FSET P-OBJ,FL-TOUCHED
FCLEAR P-OBJ,FL-NODESC
GETP P-OBJ,P?VALUE
ZERO? STACK /TRUE
CALL1 RT-WHO-SAYS? >WHO
EQUAL? WHO,CH-HOLMES \?CND3
CRLF
PRINT K-BRAVO-MSG
CRLF
?CND3: GETP P-OBJ,P?VALUE
ICALL2 RT-UPDATE-SCORE,STACK
PUTP P-OBJ,P?VALUE,0
RTRUE
.FUNCT RT-SHERMAN-RAGE,WALK
CRLF
ZERO? WALK /?CND1
PRINTI "As you walk into the shop, "
?CND1: PRINTI "Sherman sees you and flies into a rage. ""Animal hater!"" he cries. ""You killed my bird! How could you do such a thing?"""
CRLF
CRLF
PRINTI "With a strength you didn't know he possessed, Sherman wrestles you into one of the larger cages that line the walls of his shop."
CRLF
CRLF
PRINTI "Over the next few days, no customers buy you. But then on Monday morning Inspector Lestrade comes in looking for a pet for his wife. ""Did you you hear about the Crown Jewels?"" he asks. ""I'm looking into it personally and I don't mind telling you I've a few theories of my own. By the way, isn't it a little cramped in there?"""
CRLF
CRLF
PRINTI "Lestrade leaves and you decide that with him handling the case, you'd just as soon stay in the cage."
CRLF
CRLF
CALL1 RT-QSR
RSTACK
.FUNCT RT-I-PIGEON-LOSE-INTEREST
SET 'CH-TRAINED-PIGEON-AUX1,0
CALL2 RT-VISIBLE?,CH-TRAINED-PIGEON
ZERO? STACK /FALSE
CRLF
ICALL2 RT-CTHEO-PRINT,CH-TRAINED-PIGEON
PRINTR " seems to lose interest."
.FUNCT RT-I-PIGEON-IMPATIENT
CALL2 RT-VISIBLE?,CH-TRAINED-PIGEON
ZERO? STACK /FALSE
CRLF
ICALL2 RT-CTHEO-PRINT,CH-TRAINED-PIGEON
PRINTR " looks at you as if waiting for you to let him go."
.FUNCT RT-I-PIGEON-CIRCLE,CIRCLE,L
SET 'CIRCLE,CH-TRAINED-PIGEON-AUX2
LOC CH-TRAINED-PIGEON >L
EQUAL? GL-WINNER,CH-PLAYER \?PRD5
EQUAL? GL-PRSA,V?WALK /?CTR2
?PRD5: EQUAL? CIRCLE,3 \?CCL3
?CTR2: MOVE CH-TRAINED-PIGEON,CH-SHERMAN
SET 'CH-TRAINED-PIGEON-AUX1,K-PIGEON-TIRED
SET 'CH-TRAINED-PIGEON-AUX2,0
MOVE CH-TRAINED-PIGEON-AUX3,CH-SHERMAN
EQUAL? L,GL-PLACE-CUR \FALSE
EQUAL? GL-WINNER,CH-PLAYER \?CCL10
EQUAL? GL-PRSA,V?WALK /FALSE
?CCL10: CRLF
ICALL2 RT-CTHEO-PRINT,CH-TRAINED-PIGEON
PRINTR " circles above you for the last time, and flies out of sight."
?CCL3: EQUAL? CIRCLE,1,2 \FALSE
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
ICALL RT-ALARM-SET-REL,RT-I-PIGEON-CIRCLE,STACK
ADD CIRCLE,1 >CH-TRAINED-PIGEON-AUX2
EQUAL? L,GL-PLACE-CUR \FALSE
CRLF
ICALL2 RT-CTHEO-PRINT,CH-TRAINED-PIGEON
PRINTR " circles above you."
.FUNCT RT-I-SHERMANS-REVENGE
FSET? GL-PLACE-CUR,FL-INDOORS \?CCL3
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
ICALL RT-ALARM-SET-REL,RT-I-SHERMANS-REVENGE,STACK
RFALSE
?CCL3: CRLF
PRINTI "Suddenly, you see Sherman the animal trainer running towards you. He is accompanied by a constable. Sherman is beside himself with rage. ""There they are, constable. They killed my bird. Arrest them."" The constable takes both you and Sherlock into custody, and although everything is eventually straightened out, it takes far too long for you to have enough time left to solve the mystery."
CRLF
CRLF
CALL1 RT-QSR
RSTACK
.FUNCT RT-IMPOLITE-MSG,STR1,STR2
PRINTI "It isn't polite to "
PRINT STR1
PRINTI " without "
PRINT STR2
PRINTR "."
.FUNCT RT-I-BIGBEN,HRS,MIN,SEC,YRS,MON,DAY,RET,?TMP1,?TMP2,?TMP3
FSET? CH-PLAYER,FL-ASLEEP /FALSE
ZERO? GL-WAIT-BELL /?CCL5
EQUAL? GL-PRSA,V?WAIT-FOR,V?WAIT \?CCL5
SET 'RET,TRUE-VALUE
JUMP ?CND3
?CCL5: EQUAL? GL-PRSA,V?WAIT-FOR,V?WAIT \?CCL9
EQUAL? GL-PLACE-CUR,RM-CLOCK-TOWER /?CCL9
ICALL RT-DO-CLOCK-SET,GL-TIME-UPDT-INC,1,0,0
ICALL1 RT-CLOCK-INC
GETB GL-TEMP-TIME,K-HRS >?TMP3
GETB GL-TEMP-TIME,K-MIN >?TMP2
GETB GL-TEMP-TIME,K-SEC >?TMP1
GETB GL-TEMP-TIME,K-DAY
CALL RT-CLOCK-CMP,?TMP3,?TMP2,?TMP1,STACK
EQUAL? STACK,1 \?CND12
ZERO? GL-WAIT-BELL \?CND14
CRLF
PRINTI "While you wait, you hear Big Ben strike each hour."
CRLF
?CND14: SET 'RET,TRUE-VALUE
?CND12: ICALL RT-DO-CLOCK-SET,GL-TIME-UPDT-INC,-1,0,0
ICALL1 RT-CLOCK-INC
SET 'GL-WAIT-BELL,TRUE-VALUE
JUMP ?CND3
?CCL9: SET 'GL-WAIT-BELL,FALSE-VALUE
?CND3: CALL RT-DO-CLOCK-SET,GL-TIME-PARM,1,0,0
ICALL RT-ALARM-SET-REL,RT-I-BIGBEN,STACK
ZERO? RET \FALSE
GETB GL-TIME,K-HRS >HRS
EQUAL? GL-PLACE-CUR,RM-CLOCK-TOWER /?CCL20
CRLF
PRINTI "In the distance, you hear Big Ben strike the hour."
CRLF
ZERO? SOUND-QUEUED? \FALSE
GRTR? HRS,12 \?CCL26
SUB HRS,12 >TH-BELL-AUX1
JUMP ?CND24
?CCL26: SET 'TH-BELL-AUX1,HRS
?CND24: CALL SOUNDS,S-FARBEN,S-START,3,TH-BELL-AUX1
RSTACK
?CCL20: GRTR? HRS,12 \?CCL29
SUB HRS,12 >TH-BELL-AUX1
JUMP ?CND27
?CCL29: SET 'TH-BELL-AUX1,HRS
?CND27: CALL1 RT-I-SWING-BELL
RSTACK
.FUNCT RT-I-SWING-BELL,OBJ,NUM,POS,WHO
SET 'NUM,TH-BELL-AUX1
SET 'POS,TH-BELL-AUX2
EQUAL? GL-PLACE-CUR,RM-CLOCK-TOWER /?CND1
ICALL1 RT-RELIEF
SET 'HEARD-SWING?,FALSE-VALUE
SET 'TH-BELL-AUX1,0
SET 'TH-BELL-AUX2,K-BELL-AWAY
ICALL1 RT-ZERO-SECONDS
RFALSE
?CND1: GRTR? NUM,0 \?CND3
ICALL RT-DO-CLOCK-SET,GL-TIME-UPDT-INC,0,0,2
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,0,2
ICALL RT-ALARM-SET-REL,RT-I-SWING-BELL,STACK
?CND3: ZERO? HEARD-SWING? \?CND5
ICALL SOUNDS,S-CLOCK,S-INIT
?CND5: CRLF
PRINTI "The bell swings "
ZERO? POS \?CCL9
SET 'TH-BELL-AUX2,K-BELL-TOWARDS
PRINTI "towards you, "
FSET? TH-COTTON-BALLS,FL-WORN \?CCL12
PRINTI "ringing loudly, but the cotton protects your ears"
CALL1 RT-WHO-SAYS? >WHO
ZERO? WHO /?CND13
ZERO? HEARD-SWING? \?CND13
PRINTI ". "
ICALL2 RT-CTHEO-PRINT,WHO
PRINTI " claps his hands to his ears in an attempt to protect them"
FIRST? WHO \?CND13
ICALL RT-MOVE-ALL,WHO,RM-CLOCK-TOWER
PRINTI ", dropping everything he was carrying in the process"
?CND13: PRINTI ". The clapper swings up within reach."
CRLF
ICALL SOUNDS,S-CLOCK,S-START,6
SET 'HEARD-SWING?,TRUE-VALUE
JUMP ?CND10
?CCL12: PRINTI "ringing unbearably loud. BONG!"
ICALL2 SOUNDS,S-CLOCK
ZERO? HEARD-SWING? \?CND19
FSET? TH-HANDS,FL-LOCKED /?CND19
SET 'HEARD-SWING?,TRUE-VALUE
CALL1 RT-WHO-SAYS? >WHO
FSET TH-HANDS,FL-LOCKED
ICALL RT-MOVE-ALL-BUT-WORN,CH-PLAYER,RM-CLOCK-TOWER
PRINTI " You "
ZERO? WHO /?CND23
ICALL RT-MOVE-ALL,WHO,RM-CLOCK-TOWER
PRINTI "and "
ICALL2 DPRINT,WHO
PRINTC 32
?CND23: PRINTI "clap your hands to your ears in an attempt to protect them, dropping everything you are carrying in the process."
?CND19: CRLF
?CND10: SUB NUM,1 >TH-BELL-AUX1
RETURN TH-BELL-AUX1
?CCL9: SET 'TH-BELL-AUX2,K-BELL-AWAY
PRINTI "away from you"
ZERO? NUM \?CCL27
PRINTI ", finishing the ringing of the hour."
CRLF
ICALL1 RT-RELIEF
CALL1 RT-ZERO-SECONDS
RSTACK
?CCL27: PRINTR "."
.FUNCT RT-RELIEF
SET 'HEARD-SWING?,FALSE-VALUE
FSET? TH-HANDS,FL-LOCKED \FALSE
FCLEAR TH-HANDS,FL-LOCKED
PRINTR "You breath a sigh of relief as you take your hands away from your ears."
.FUNCT RT-ZERO-SECONDS,SEC
GETB GL-TIME,K-SEC >SEC
ZERO? SEC /FALSE
SUB 60,SEC
ICALL RT-DO-CLOCK-SET,GL-TIME-UPDT-INC,0,0,STACK
ICALL1 RT-CLOCK-INC
CALL RT-COPY-TIME,GL-TIME,GL-TEMP-TIME
RSTACK
.FUNCT RT-I-EXHALE
FSET? TH-BREATH,FL-LOCKED \FALSE
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,0,1,0
ICALL RT-ALARM-SET-REL,RT-I-INHALE,STACK
CRLF
PRINTR "You can't hold your breath much longer..."
.FUNCT RT-I-INHALE
FSET? TH-BREATH,FL-LOCKED \FALSE
CRLF
PRINTI "Your lungs scream for air. You take a deep breath."
CRLF
FCLEAR TH-BREATH,FL-LOCKED
SET 'RUN-SMELL-ETHERIUM?,TRUE-VALUE
RTRUE
.FUNCT RT-I-TAKE-WATSONS-STUFF
FSET? CH-AKBAR,FL-ASLEEP /FALSE
CRLF
PRINTI "Akbar"
FSET? TH-WATSONS-HAT,FL-WORN \?CND3
PRINTI " apologizes to you,"
?CND3: PRINTI " removes everything from your hands, and then hits you over the head. The last thing you see before losing consciousness is the look of defeat on Holmes's face."
CRLF
CRLF
PRINTI "You awake sometime later to find yourself bound hand and foot. Moriarty is standing over you with a newspaper in his hand."
CRLF
CRLF
PRINT K-FOUGHT-WELL-MSG
CRLF
CRLF
PRINTI "Moriarty takes the Crown Jewels and departs, leaving you to ponder your defeat and the inevitable demise of the British Empire."
CRLF
CRLF
ICALL1 RT-QSR
RFALSE
.FUNCT RT-I-OUT-OF-TIME
CRLF
FSET? GL-PLACE-CUR,FL-INDOORS \?CCL3
PRINTI "Outside you hear"
JUMP ?CND1
?CCL3: PRINTI "You see"
?CND1: PRINTI " the paper boy run through the streets shouting out, ""Crown Jewels stolen... the end is near."""
CRLF
CRLF
EQUAL? GL-PLACE-CUR,RM-LAIR \?CND4
ICALL2 DPRINT,CH-MORIARTY
FSET? CH-MORIARTY,FL-ASLEEP \?CND6
FCLEAR CH-MORIARTY,FL-ASLEEP
PRINTI " awakens from his stupor and"
?CND6: PRINTI " says, "
PRINT K-FOUGHT-WELL-MSG
CRLF
CRLF
?CND4: CALL1 RT-QSR
RSTACK
.FUNCT RT-ETHERIUM-EFFECT,ASLEEP?,OBJ,TOP,CNT
ASSIGNED? 'TOP /?CND1
SET 'TOP,TRUE-VALUE
?CND1: ZERO? OBJ \?PRG5
SET 'OBJ,GL-PLACE-CUR
?PRG5: ZERO? OBJ /?REP6
FSET? OBJ,FL-ALIVE \?CCL11
EQUAL? OBJ,CH-PLAYER \?CTR10
FSET? TH-BREATH,FL-LOCKED /?CCL11
?CTR10: ZERO? ASLEEP? /?CCL18
EQUAL? OBJ,CH-HOLMES \?CCL20
FSET? TH-BREATH,FL-LOCKED /?CND7
?CCL20: FSET OBJ,FL-ASLEEP
INC 'CNT
EQUAL? GL-PUPPY,OBJ \?CND7
SET 'GL-FORMER-PUPPY,OBJ
SET 'GL-PUPPY,FALSE-VALUE
JUMP ?CND7
?CCL18: FCLEAR OBJ,FL-ASLEEP
INC 'CNT
JUMP ?CND7
?CCL11: FIRST? OBJ \?CND7
FIRST? OBJ /?BOGUS26
?BOGUS26: CALL RT-ETHERIUM-EFFECT,ASLEEP?,STACK,FALSE-VALUE
ADD CNT,STACK >CNT
?CND7: ZERO? TOP \?REP6
NEXT? OBJ >OBJ /?PRG5
JUMP ?PRG5
?REP6: RETURN CNT
.FUNCT RT-I-WAKE-UP,OBJ
LOC TH-ETHERIUM-GAS
ICALL RT-ETHERIUM-EFFECT,FALSE-VALUE,STACK
REMOVE TH-ETHERIUM-GAS
RTRUE
.FUNCT RT-SMELL-ETHERIUM?
LOC TH-ETHERIUM-GAS
EQUAL? GL-PLACE-CUR,STACK \FALSE
FSET? TH-BREATH,FL-LOCKED /?CCL5
REMOVE TH-ETHERIUM-GAS
CRLF
PRINTI "The etherium knocks you out."
CRLF
CRLF
FSET CH-PLAYER,FL-ASLEEP
EQUAL? GL-PLACE-CUR,RM-LAIR \?CCL8
ICALL2 RT-ALARM-CLR,RT-I-WAKE-UP
ICALL1 RT-DOES-MORIARTY-WIN
RTRUE
?CCL8: CALL2 RT-ALARM-SET?,RT-I-WAKE-UP
ZERO? STACK /?CCL11
COPYT GL-TIME-PARM,GL-TIME,K-A-TWDTH
ICALL2 RT-ALARM-CHK,FALSE-VALUE
SET 'GL-CLOCK-WAIT,TRUE-VALUE
PRINT K-WAKE-UP-MSG
CRLF
JUMP ?CND9
?CCL11: ICALL RT-CLOCK-JMP,6,0,0
PRINT K-WAKE-UP-MSG
CRLF
?CND9: ZERO? GL-FORMER-PUPPY /TRUE
IN? GL-FORMER-PUPPY,GL-PLACE-CUR \TRUE
ZERO? GL-PUPPY \TRUE
FCLEAR GL-FORMER-PUPPY,FL-ASLEEP
SET 'GL-PUPPY,GL-FORMER-PUPPY
SET 'GL-FORMER-PUPPY,FALSE-VALUE
RTRUE
?CCL5: ZERO? GL-PUPPY /TRUE
EQUAL? GL-PUPPY,CH-HOLMES /TRUE
CALL RT-ETHERIUM-EFFECT,TRUE-VALUE,GL-PUPPY
ZERO? STACK /TRUE
ICALL2 RT-CTHEO-PRINT,GL-FORMER-PUPPY
PRINTR " passes out."
.FUNCT RT-FIND-FLAME,OBJ,TOP,FST
ASSIGNED? 'TOP /?CND1
SET 'TOP,TRUE-VALUE
?CND1: ZERO? OBJ \?PRG5
SET 'OBJ,GL-PLACE-CUR
?PRG5: ZERO? OBJ /FALSE
FSET? OBJ,FL-BURNABLE \?CND7
FSET? OBJ,FL-LIGHTED /TRUE
?CND7: FIRST? OBJ >FST /?BOGUS13
?BOGUS13: ZERO? FST /?CND14
CALL RT-FIND-FLAME,FST,FALSE-VALUE
ZERO? STACK \TRUE
?CND14: ZERO? TOP \FALSE
NEXT? OBJ >OBJ /?PRG5
JUMP ?PRG5
.FUNCT RT-DOES-MORIARTY-WIN
FSET? CH-MORIARTY,FL-LOCKED \?CCL3
FSET? CH-AKBAR,FL-LOCKED \?CCL3
ICALL RT-DO-CLOCK-SET,GL-TIME,8,30,0,20
ICALL2 RT-ALARM-CLR,RT-I-OUT-OF-TIME
ICALL2 RT-ALARM-CHK,FALSE-VALUE
SET 'GL-CLOCK-WAIT,TRUE-VALUE
CALL RT-DO-CLOCK-SET,GL-TIME-PARM,9,0,0,20
ICALL RT-ALARM-SET-ABS,RT-I-OUT-OF-TIME,STACK
PRINTI "You awaken slowly and stumble to your feet. Moriarty and Akbar have already recovered, and they are struggling fiercely to free themselves. It seems as if you were unconscious for quite a while, but it's hard to tell. You probably don't have a lot of time."
CRLF
FCLEAR CH-PLAYER,FL-ASLEEP
FCLEAR CH-HOLMES,FL-ASLEEP
FCLEAR CH-AKBAR,FL-ASLEEP
FCLEAR CH-MORIARTY,FL-ASLEEP
RTRUE
?CCL3: PRINTI "Unfortunately, Moriarty and Akbar recovered before you did. You find yourself bound securely to Holmes."
CRLF
CRLF
PRINTI "Moriarty looks at you and says, "
PRINT K-FOUGHT-WELL-MSG
CRLF
CRLF
CALL1 RT-QSR
RSTACK
.FUNCT RT-PROCESS-PASSWORD
EQUAL? GL-PLACE-CUR,RM-BAR-OF-GOLD \?CCL3
ICALL2 RT-CTHEO-PRINT,CH-DENKEEPER
IN? TH-CARNATION,TH-LAPEL \?CCL6
FSET? CH-AKBAR,FL-SEEN /?CCL6
CALL RT-CLOCK-CMP,2,0,0,20
EQUAL? STACK,-1,0 \?CCL6
FSET CH-AKBAR,FL-SEEN
MOVE CH-AKBAR,RM-BAR-OF-GOLD
PRINTI " disappears into a back room and reappears moments later, accompanied by a tall, silent man who has dark skin and wears a white turban."
CRLF
CRLF
PRINTI "The Indian glances at your "
FSET? TH-WATSONS-HAT,FL-WORN /?CND10
PRINTI "uncovered "
?CND10: PRINTI "head and then intones, ""I am Akbar"
FSET? TH-WATSONS-HAT,FL-WORN \?CND12
PRINTI ", honourable sir"
?CND12: PRINTR ". What is it that you wish?"""
?CCL6: PRINTR " says, ""Not now, mate. Can't you see I'm busy?"""
?CCL3: EQUAL? GL-PLACE-CUR,RM-BYWARD-TOWER \?CCL15
ICALL2 RT-CTHEO-PRINT,CH-TOWER-GUARD
PRINTR " pauses and looks at you strangely. Then he says, ""An interesting guess. But wrong."""
?CCL15: PRINTR "Thatsa no swordfish. Thatsa duck."
.FUNCT V-SWORDFISH
CALL1 RT-PROCESS-PASSWORD
RSTACK
.FUNCT RT-ROPE-MSG
PRINTI "As"
ICALL RT-YOU-MSG,STR?769,STR?770
PRINTI "for "
ICALL2 RT-THEO-PRINT,TH-ROPE
PRINTI ", Akbar"
FSET? TH-WATSONS-HAT,FL-WORN \?CND1
PRINTI " says, ""Pardon me, honourable sir,"" and"
?CND1: PRINTI " hits you over the head."
CRLF
CRLF
PRINTI "When you regain consciousness, you find that your hands and feet are bound. Outside you hear the paper boy run through the streets shouting out ""Crown Jewels stolen! Prime Minister resigns in disgrace!"""
CRLF
CALL1 RT-QSR
RSTACK
.FUNCT RT-INSCRIPTION-APPEARS-MSG
PRINTR "After a few moments, the tomb's inscription comes through onto the piece of paper."
.FUNCT RT-PROCESS-TOMB,TOMB-NUMBER
EQUAL? GL-PRSA,V?READ \?CCL3
CALL2 RT-READ-INSCRIPTION,TOMB-NUMBER
RSTACK
?CCL3: EQUAL? GL-PRSA,V?TRANSLATE \?CCL5
PRINTR "Unfortunately, what little Latin you remember from your school days is limited to medical matters."
?CCL5: EQUAL? GL-PRSA,V?RUB-WITH \?CCL7
PRINTR "Rubbing the paper with the crayon would probably yield better results."
?CCL7: EQUAL? GL-PRSA,V?LOOK-INSIDE,V?SEARCH \?CCL9
ICALL1 RT-CYOU-MSG
ICALL RT-WOULD-HAVE-TO-MSG,STR?227,TH-IT
PRINTR " first."
?CCL9: EQUAL? GL-PRSA,V?OPEN \?CCL11
PRINTR "Getting just a little bit morbid, aren't we?"
?CCL11: EQUAL? GL-PRSA,V?TOUCH \?CCL13
EQUAL? TOMB-NUMBER,1,2,3 \?CCL16
PRINTR "It feels a little sticky."
?CCL16: ICALL RT-CYOU-MSG,STR?655,STR?656
PRINTI "not feel anything "
CALL2 RT-PICK-NEXT,GL-BORING-TXT
PRINT STACK
PRINTR "."
?CCL13: EQUAL? GL-PRSA,V?SHOOT \FALSE
CALL1 RT-SHOOT-DEAD-MSG
RSTACK
.FUNCT RT-READ-INSCRIPTION,NUM
PRINTI "The inscription"
EQUAL? 2,NUM \?CCL3
PRINTI " reads, ""ISAACVS NEWTON Eques Auratus"
JUMP ?CND1
?CCL3: EQUAL? 1,NUM \?CCL5
PRINTI " reads, ""REGNO CONSORTES & VRNA HIC OBDOR MIMVS ELIZABETHA ET MARIA SORORES IN SPE RESVRRECTIONIS"
JUMP ?CND1
?CCL5: EQUAL? 7,NUM \?CCL7
PRINTI " is a long one, but in the middle of it you see the name ""GALFRIDVS CHAVCER"
JUMP ?CND1
?CCL7: EQUAL? 9,NUM \?CCL9
PRINTI "s are written in Latin, but you can make out the names ""Edward V"" and ""Richard, Duke of York"
JUMP ?CND1
?CCL9: PRINTI " is written in Latin, but you can make out the name """
EQUAL? 3,NUM \?CCL12
PRINTI "Henry V"
JUMP ?CND1
?CCL12: EQUAL? 4,NUM \?CCL14
PRINTI "Edward the Confessor"
JUMP ?CND1
?CCL14: EQUAL? 5,NUM \?CCL16
PRINTI "Alexander Pope"
JUMP ?CND1
?CCL16: EQUAL? 6,NUM \?CCL18
PRINTI "Charles Dickens"
JUMP ?CND1
?CCL18: EQUAL? 8,NUM \?CCL20
PRINTI "Anne of Cleves"
JUMP ?CND1
?CCL20: EQUAL? 10,NUM \?CCL22
PRINTI "Mary, Queen of Scots"
JUMP ?CND1
?CCL22: EQUAL? 11,NUM \?CCL24
PRINTI "Henry VII"
JUMP ?CND1
?CCL24: EQUAL? 12,NUM \?CCL26
PRINTI "Pitt"
JUMP ?CND1
?CCL26: EQUAL? 13,NUM \?CND1
PRINTI "Francis Vere"
?CND1: PRINTR "."""
.FUNCT RT-READ-PAPER,PAPER-NAME,WRITING,PHEAT
ZERO? WRITING \?CCL3
PRINTR "The paper appears to be blank."
?CCL3: GETP PAPER-NAME,P?FLIPPED
ZERO? STACK \?CCL6
ICALL2 RT-READ-INSCRIPTION,WRITING
RTRUE
?CCL6: ZERO? PHEAT \?CCL9
PRINTR "This side appears to be blank."
?CCL9: EQUAL? 1,PHEAT \?CCL11
PRINTR "You see a faint discolouration."
?CCL11: EQUAL? 2,PHEAT \TRUE
EQUAL? 1,WRITING \?CCL15
ICALL1 RT-INDENT-PRINT
PRINTI "Hickory Dickory Dock."
CRLF
ICALL1 RT-INDENT-PRINT
PRINTI "Your enemy is the clock."
CRLF
ICALL1 RT-INDENT-PRINT
PRINTI "When it strikes nine,"
CRLF