Sherlock: annotated disassembly

Memory map

Page Byte Address Description
93 128 5D80
Dictionary index: where each letter's words start
93 192 5DC0
The dictionary: 592 words
103 183 67B7
Message bytecode: everything the game prints
103 247 67F7
Message: "YOU SAY"
103 255 67FF
Message: "YOU SAY""
104 4 6804
Message: "YOU SAY TO THE OIL LAMP""
104 11 680B
Message: "ONLY AN IDIOT WOULD TRY THAT."
104 23 6817
Message: "THE OIL LAMP IS"
104 26 681A
Message: "YOU SAY" SORRY, I CANNOT DO THAT NOW.""
104 42 682A
Message: "YOU SAY TO THE OIL LAMP" HAIL THE HANSOM CAB."."
104 48 6830
Message: "YOU SAY TO THE OIL LAMP""
104 54 6836
Message: "IT TOTALS"
104 63 683F
Message: "YOU DO NOT HAVE ENOUGH."
104 69 6845
Message: "DON'T BE SILLY."
104 85 6855
Message: "DON'T BE SILLY."
104 89 6859
Message: "I DO NOT KNOW THE WORD""
104 102 6866
Message: "WHAT ?"
104 106 686A
Message: "I DO NOT KNOW THE VERB" ‹word›""
104 124 687C
Message: "‹word› THE ‹word› WHAT ?"
104 128 6880
Message: "‹word› WHAT ?"
104 136 6888
Message: "WHICH ‹word› ?"
104 148 6894
Message: "I SEE ‹word› THAT YOU CAN ‹word›"
104 162 68A2
Message: "YOU CANNOT ‹word› THE ‹word›"
104 173 68AD
Message: "YOU ARE CARRYING"
104 177 68B1
Message: "THE TRASH PILE IS CARRYING"
104 181 68B5
Message: "WHAT"
104 183 68B7
Message: "YOU ARE CARRYING THE OIL LAMP."
104 188 68BC
Message: "TO THE"
104 191 68BF
Message: "WHAT"
104 193 68C1
Message: "IT IS TOO DARK TO SEE MUCH ELSE."
104 209 68D1
Message: "SORRY IT IS TOO DARK."
104 217 68D9
Message: "THERE ‹word›"
104 221 68DD
Message: "YOU ARE IN"
104 225 68E1
Message: "YOU SEE"
104 228 68E4
Message: "YOU CAN SEE"
104 233 68E9
Message: "THERE IS"
104 237 68ED
Message: "THE ENTERS."
104 241 68F1
Message: "VISIBLE EXITS ARE"
105 0 6900
Message: "NOTHING"
105 2 6902
Message: "GOOD MORNING"
105 21 6915
Message: "HI."
105 24 6918
Message: "HELLO"
105 32 6920
Message: "YOU SAY" GOOD MORNING "."
105 41 6929
Message: "YOU SAY TO THE OIL LAMP" GOOD MORNING "."
105 49 6931
Message: ""
105 58 693A
Message: "I DO NOT THINK YOU ARE DOING TOO WELL, SURELY SHERLOCK HOLMES COULD..."
105 117 6975
Message: "AS THE MAJOR ENTERS LESTRADE ATTEMPTS TO ARREST HIM. THE MAJOR DRAW..."
105 191 69BF
Message: "INSPECTOR LESTRADE SAYS TO YOU" WELL HOLMES THAT WRAPS UP THIS CASE..."
106 38 6A26
Message: "INSPECTOR LESTRADE ENTERS AND SAYS TO YOU" WELL HOLMES THAT WRAPS U..."
106 51 6A33
Message: "NOT ONLY HAVE YOU FAILED TO SOLVE THE CRIMES AT HAND BUT THE MORNIN..."
106 189 6ABD
Message: "YOU HAVE DONE EXTREMELY WELL TO SOLVE THE CASE AT HAND BUT THE MORN..."
106 219 6ADB
Message: "AS BASIL ENTERS HE SEES YOU AND PULLS A GUN."
106 243 6AF3
Message: "AS BASIL ENTERS HE SEES YOU AND PULLS A GUN. WITH SUPRISING AGILITY..."
107 121 6B79
Message: "AS BASIL ENTERS HE SEES YOU AND PULLS A GUN. WITH HIS USUAL SKILL H..."
107 158 6B9E
Message: "YOU HAVE TO GET INTO THE CAB FIRST."
107 172 6BAC
Message: "GOOD MORNING GUV'NOR."
107 183 6BB7
Message: "YOU SAY TO THE OIL LAMP" RIGHT GUV'NOR THAT WILL BE"
107 199 6BC7
Message: "YOU, WHO NOW APPEARS TO BE GETTING QUITE AGITATED, SAYS" WHAT ABOUT..."
107 246 6BF6
Message: "WITH A PRACTISED FLICK OF THE REINS, YOU MOVES ON DOWN THE STREET I..."
108 27 6C1B
Message: "WELL ARE WE GOIN' ANYWHERE GUV'NOR?"
108 52 6C34
Message: "YOU REPLIES" SORRY GUV'NOR I CANNOT GET THERE FROM'ERE"."
108 84 6C54
Message: "YOU SHOUTS" YOU BLOODY SNOB, WATCH OUT IF WE EVER MEET AGAIN"."
108 118 6C76
Message: "WHAT"
108 120 6C78
Message: "WELL HOLMES YOU HAVE FOUND OUT MY SHAMEFUL SECRET, I AM ADDICTED TO..."
108 185 6CB9
Message: "UPON SEEING THE BODY MAJOR FFOULKES TURNS DEATHLY PALE, THEN, RECOV..."
108 245 6CF5
Message: "PLEASE LET ME PAST OFFICER, I MUST SEE"
109 6 6D06
Message: "YOU CANNOT BLOCK MY WAY OFFICER, I AM A CLOSE FRIEND OF"
109 32 6D20
Message: "PLEASE LET ME PAST OFFICER, I MUST SEE MRS JONES."
109 46 6D2E
Message: "INSPECTOR I AM YOU A VERY CLOSE AQUAINTANCE OF MRS JONES AND I DEMA..."
109 91 6D5B
Message: "WHAT"
109 93 6D5D
Message: "YOU KNOCKS THE POLICE MAN UNCONSCIOUS FROM BEHIND."
109 106 6D6A
Message: "SEEING THE UNCONSCIOUS POLICE MAN, YOU ATTEMPTS TO REVIVE HIM. AS H..."
109 154 6D9A
Message: "YOU SAY TO THE OIL LAMP" I AM SORRY SIR BUT I HAVE MY ORDERS, NO ON..."
109 191 6DBF
Message: "INSPECTOR, THIS GENTLEMAN INSISTS HE KNOWS MRS JONES AND WISHES TO..."
109 233 6DE9
Message: "WHAT"
109 235 6DEB
Message: "WATSON LOOKS UP FROM THE PAPER AND SAYS" GOOD MORNING HOLMES.""
110 2 6E02
Message: "WITH AN EXCITED LOOK ON HIS FACE YOU SAYS" WELL HERE IS A CASE THAT..."
110 252 6EFC
Message: "YOU LOOKS UP AS YOU ENTER SAYING" HELLO THERE HOLMES, JUST A MINUTE..."
111 34 6F22
Message: "THAT IS BRILLIANT HOLMES"
111 41 6F29
Message: "THAT IS BRILLIANT HOLMES, I DO NOT KNOW HOW YOU DO IT"
111 44 6F2C
Message: ", I DO NOT KNOW HOW YOU DO IT"
111 57 6F39
Message: "WHY DO YOU THINK THAT YOU AND YOU"
111 68 6F44
Message: "HOW DID YOU EVER DEDUCE THAT YOU AND YOU"
111 84 6F54
Message: "YOU SAY" THAT IS BRILLIANT HOLMES."."
111 98 6F62
Message: "YOU SAY" WELL DO YOU THINK THERE IS SOME CONNECTION BETWEEN THE AND"
111 128 6F80
Message: "YOU SAY" WHY DO YOU THINK THAT YOU AND YOU?"."
111 142 6F8E
Message: "WHAT"
111 144 6F90
Message: "KEEP ME POSTED ON ANY NEW EVENTS."
111 171 6FAB
Message: "SO MRS BROWN KILLED HERSELF, EXCELLENT HOLMES, ANOTHER BRILLIANT CO..."
111 202 6FCA
Message: "BRILLIANT HOLMES, I DO NOT KNOW HOW YOU DO IT.". HE CALLS FOR A CON..."
112 8 7008
Message: "WELL IT LOOKS AS THOUGH THE MAJOR IS OUR MAN."
112 32 7020
Message: "WELL IT LOOKS AS THOUGH THE MAJOR IS OUR MAN. MY MEN ARE OUT LOOKIN..."
112 52 7034
Message: "WELL THEN CONSTABLE I SHALL RETURN TO THE YARD AND APPREHEND THIS M..."
112 117 7075
Message: "YOU ARE FREE TO GO."
112 121 7079
Message: "RIGHT THEN HOLMES WE MUST HURRY IF WE ARE TO CATCH THEM."
112 153 7099
Message: "VERY GOOD HOLMES, BASIL WILL LIKELY TRY TO SELL THEM, WE MUST FIND..."
112 192 70C0
Message: "HAVE YOU FOUND WHERE THE SALE LOCATION IS."
112 199 70C7
Message: "I AM AFRAID THAT BASIL HAS ELUDED US HOLMES."
112 227 70E3
Message: "I DO NOT SEE THE IMPORTANCE OF THAT HOLMES."
112 240 70F0
Message: "VERY GOOD HOLMES, I SHALL RETURN TO LEATHER HEAD TOMORROW TO HAVE A..."
113 18 7112
Message: "WHAT IS GOING ON HERE CONSTABLE?"
113 29 711D
Message: "COME WITH ME PLEASE."
113 38 7126
Message: "YOU SAY" I WOULD LIKE YOU TO REMAIN HERE PLEASE.""
113 57 7139
Message: "MAKE SURE THE MAJOR DOES NOT LEAVE CONSTABLE."
113 80 7150
Message: "HAVE YOUR MEN SEARCHED THE RIVER FOR THE GUN YET?"
113 99 7163
Message: "NOW WHAT SEEMS TO BE THE PROBLEM HERE?"
113 117 7175
Message: "WELL THEN SHOW ME TO THE BROWN'S ESTATE PLEASE."
113 137 7189
Message: "RIGHT THEN CONSTABLE WILL YOU SHOW ME TO MISS STRACHAN AND MR PHIPP..."
113 164 71A4
Message: "CHIEF CONSTABLE I WILL SEE THE STAFF NOW."
113 183 71B7
Message: "WELL I MUST SAY THIS IS ALL VERY CONFUSING, PERHAPS I SHOULD VISIT..."
113 224 71E0
Message: "WELL, HOLMES FANCY SEEING YOU HERE."
113 237 71ED
Message: "YOU WITH A SURPRISED LOOK ON HIS FACE, SAYS" WELL, HOLMES FANCY SEE..."
114 7 7207
Message: "YOU SAY" THE OIL LAMP I WOULD LIKE YOU TO MEET MR SHERLOCK HOLMES,..."
114 36 7224
Message: "YOU SAY" WELL, HOLMES FANCY SEEING YOU HERE. THE OIL LAMP I WOULD L..."
114 45 722D
Message: "YOU SAY" WELL CAN YOU PROVE THAT YOU AND YOU YET, HOLMES ?"."
114 67 7243
Message: "YOU SAY" WHAT"."
114 73 7249
Message: "YOU SAY" THAT MAY WELL BE, HOLMES, I WILL THINK ABOUT IT"
114 95 725F
Message: "YOU SAY" THAT MAY WELL BE, HOLMES, I WILL THINK ABOUT IT.""
114 101 7265
Message: "YOU SAY" THAT MAY WELL BE, HOLMES, I WILL THINK ABOUT IT, BUT I HAV..."
114 126 727E
Message: "YOU SAY" THATS FINE HOLMES BUT WHAT DOES IT PROVE"."
114 149 7295
Message: "YOU SAY" WHAT PROOF DO YOU HAVE THAT YOU AND YOU"."
114 166 72A6
Message: "YOU SAY" I DO NOT BELIEVE THAT YOU HAVE THE EVIDENCE TO PROVE THAT..."
114 189 72BD
Message: "YOU SAY" THAT IS WELL AND GOOD, BUT I DO NOT SEE HOW IT PROVES THAT..."
114 214 72D6
Message: "ONE THING AT A TIME HOLMES"
114 225 72E1
Message: "I CANNOT ACCEPT THAT YOU AND YOU."
114 238 72EE
Message: "WHAT"
114 240 72F0
Message: "INSPECTOR I WOULD LIKE YOU TO MEET BASIL PHIPPS AND DAPHNE STRACHAN..."
115 25 7319
Message: "YES INSPECTOR, UNFORTUNATELY NOTHING WAS FOUND."
115 41 7329
Message: "HELLO INSPECTOR, GOOD OF YOU TO COME SO QUICKLY."
115 59 733B
Message: "" MEET ME BY THE BRIDGE AT"
115 71 7347
Message: "" MEET ME BY THE BRIDGE AT HALF PAST TWELVE. I HAVE SOME VERY IMPOR..."
115 113 7371
Message: "DAMNED STICKY BUSINESS THIS, WE RECIEVED A REPORT EARLY THIS MORNIN..."
117 82 7552
Message: "YOU SEEMS AT A LOSS, LOOKING FORLORN AND CRYING QUIETLY TO HERSELF."
117 113 7571
Message: "WHAT"
117 115 7573
Message: "AS YOU ENTER YOU WHIPS HIS HORSES INTO ACTION AND SPEEDS OFF DOWN T..."
117 156 759C
Message: "BASIL ENTERS AND SAYS" HOLMES, YOUR INTERFERENCE IS BECOMING ANNOYI..."
117 210 75D2
Message: "BASIL SAYS" HOLMES, YOUR INTERFERENCE IS BECOMING ANNOYING.". PULLI..."
117 215 75D7
Message: "A MESSENGER ARRIVES AT THE DOOR,"
117 232 75E8
Message: "A MESSENGER ARRIVES AT THE DOOR, TAKES A NOTE FROM BASIL AND DISSAP..."
118 3 7603
Message: "A MESSENGER ARRIVES AT THE DOOR, GIVES A NOTE TO BASIL AND DISSAPEA..."
118 17 7611
Message: "THE TRAIN PULLS OUT OF THE STATION."
118 27 761B
Message: "WHAT"
118 29 761D
Message: "I AM SORRY I CANNOT HELP YOU WITH THAT."
118 45 762D
Message: "TRICIA WAS BLACKMAILING MRS BROWN ABOUT SOMETHING."
118 68 7644
Message: "TRICIA WAS BLACKMAILING MRS BROWN ABOUT SOMETHING. I JUST COULD NOT..."
118 135 7687
Message: "OH MY GOD, YOU FOUND OUT, I AM REALLY MRS JONES. TRICIA WAS BLACKMA..."
119 34 7722
Message: "I LIVE IN SIDMOUTH STREET."
119 44 772C
Message: "IN LONDON I LIVE IN CAMDEN STREET. AT LEATHER HEAD I STAY AT A RENT..."
119 79 774F
Message: "MRS BROWN'S HUSBAND WAS KILLED ABOUT FIVE YEARS AGO, HE WAS A TOP S..."
119 201 77C9
Message: "MRS JONES WAS A WIDOW, HER HUSBAND HAVING DIED ABOUT EIGHT YEARS AG..."
120 12 780C
Message: "I AM SORRY BUT I AM NOT AT LIBERTY TO SAY WHAT I WAS DOING AT THE T..."
120 70 7846
Message: "I WAS ASLEEP LAST NIGHT WHEN THE SOUND OF A GUN SHOT WOKE ME, WHEN..."
120 212 78D4
Message: "HE WAS A GOOD FRIEND OF POOR MRS JONES, AN EX INDIAN ARMY MAN I BEL..."
120 248 78F8
Message: "I ALWAYS THOUGHT THAT HE WAS SUCH A NICE FELLOW, BUT LAST WEEK I WA..."
121 79 794F
Message: "I WAS WOKEN LAST NIGHT AS MY HUSBAND AROSE AND LEFT THE ROOM, BEING..."
121 196 79C4
Message: "WELL I DO NOT LIKE TO SPEAK ILL OF ANYONE BUT I DID OVERHEAR BASIL..."
122 53 7A35
Message: "I GOT WOKEN BY A LOT OF NOISE OUT IN THE HALL AND WHEN I WENT OUT T..."
122 185 7AB9
Message: "WELL I WAS IN MY BEDROOM AT THE HOUSE I AM RENTING DOWN THE ROAD. I..."
122 246 7AF6
Message: "UNFORTUNATELY I DO NOT KNOW VERY MUCH SINCE THE FIRST I KNEW OF THI..."
123 88 7B58
Message: "WHAT"
123 90 7B5A
Message: "AS YOU SEARCH THE RIVER LESTRADE COMES OVER TO HELP. HE STUMBLES AN..."
123 194 7BC2
Message: "IN ONE CORNER OF THE SHEET IS A VERY SMALL TEAR."
123 215 7BD7
Message: "A VERY SMALL PIECE OF CLOTH IS CAUGHT ON THE WINDOW FRAME."
123 247 7BF7
Message: "IT HAS BEEN SWUNG AWAY FROM THE WALL REVEALING A SMALL ROOM BEHIND."
124 19 7C13
Message: "AS YOU RUN YOUR HANDS OVER THE BOOKS YOU TOUCH A HIDDEN SPRING AND..."
124 119 7C77
Message: "STRANGELY THERE ARE NO SIGNS OF RINGS OR JEWELLERY ON EITHER HAND."
124 158 7C9E
Message: "CLOSE INSPECTION REVEALS A SMALL CHIP IN THE STONE WORK THAT IS EVI..."
124 231 7CE7
Message: "CAREFUL EXAMINATION SHOWS THAT THE DRAWER HAS A FALSE BOTTOM."
124 250 7CFA
Message: "WHAT"
124 252 7CFC
Message: "THE TWO BROAD WINDOWS IN"
125 5 7D05
Message: "THE FIRST RAYS OF LIGHT FILTER THEIR WAY THROUGH THE TWO BROAD WIND..."
125 31 7D1F
Message: "THE SUN STREAMS IN THE TWO BROAD WINDOWS IN"
125 43 7D2B
Message: "TWO BROAD WINDOWS ILLUMINATE"
125 59 7D3B
Message: "THE SUNLIGHT FADES THROUGH THE TWO BROAD WINDOWS IN"
125 78 7D4E
Message: "YOU CAN SEE THE LIGHT OF A FLICKERING GAS LAMP THROUGH THE TWO BROA..."
125 98 7D62
Message: "THE SUN STREAMS IN THE TWO BROAD WINDOWS IN YOUR SITTING ROOM. THER..."
125 193 7DC1
Message: "FLICKERING GAS LAMPS PROVIDE ENOUGH LIGHT TO CAST SHADOWS."
125 225 7DE1
Message: "YOU ARE TRAVELLING THE STREETS OF LONDON IN A HANSOM CAB, THE SUN S..."
126 11 7E0B
Message: "YOU ARE IN A CAB TRAVELLING MADLY ALONG ROUGH COUNTRY ROADS."
126 39 7E27
Message: "YOU ARE TRAVELLING ALONG THE LONDON UNDERGROUND RAILWAY IN A STEAM..."
126 69 7E45
Message: "YOU ARE RIDING IN A STEAM TRAIN THROUGH THE PICTURESQUE ENGLISH COU..."
126 101 7E65
Message: "YOU ARE RIDING IN A STEAM TRAIN BEING SHUNTED BETWEEN PLATFORMS."
126 127 7E7F
Message: "YOU ARE IN MAJOR FFOULKES ROOM IN THE BOARDING HOUSE. IT IS SMALL A..."
126 183 7EB7
Message: "YOU ARE IN A LARGE LAVISHLY DECORATED BEDROOM, A BROAD WINDOW OVERL..."
126 234 7EEA
Message: "YOU ARE AT PLATFORM ONE OF"
126 242 7EF2
Message: "YOU ARE AT PLATFORM TWO OF"
126 250 7EFA
Message: "YOU ARE AT PLATFORM ONE OF ALDERGATE STATION."
127 3 7F03
Message: "YOU ARE AT PLATFORM TWO OF ALDERGATE STATION."
127 9 7F09
Message: "YOU ARE AT PLATFORM ONE OF KINGS CROSS STATION."
127 20 7F14
Message: "YOU ARE AT PLATFORM TWO OF KINGS CROSS STATION."
127 26 7F1A
Message: "YOU ARE AT PLATFORM THREE OF KINGS CROSS STATION."
127 36 7F24
Message: "YOU ARE AT PLATFORM FOUR OF KINGS CROSS STATION."
127 46 7F2E
Message: "YOU ARE AT PLATFORM ONE OF PADDINGTON STATION."
127 55 7F37
Message: "YOU ARE AT PLATFORM TWO OF PADDINGTON STATION."
127 61 7F3D
Message: "YOU ARE AT PLATFORM ONE OF VICTORIA STATION."
127 70 7F46
Message: "YOU ARE AT PLATFORM TWO OF VICTORIA STATION."
127 76 7F4C
Message: "YOU ARE AT PLATFORM ONE OF LEATHER HEAD STATION."
127 87 7F57
Message: "YOU ARE AT PLATFORM TWO OF LEATHER HEAD STATION."
127 95 7F5F
Message: "WHAT"
127 97 7F61
Message: "THEY ARE TO MRS BROWN FROM TRICIA AND APPEAR TO BE BLACKMAIL LETTERS."
127 119 7F77
Message: "THEY ARE LABELLED" TRICIA. FENDER."."
127 137 7F89
Message: "THE BED IS UNMADE AND ONE SHEET IS CRUMPLED UP ON TOP."
127 162 7FA2
Message: "THE MUSIC ON THE PIANO IS BAROQUE."
127 178 7FB2
Message: "ON THE GRAMAPHONE IS A RECORD OF CHOPIN NOCTURNES."
127 197 7FC5
Message: "IT IS ADDRESSED TO MRS BROWN AND READS" MEET ME BY THE BRIDGE AT..."."
127 218 7FDA
Message: "THE FOLDER IS EMPTY BUT THE LABEL READS" TOP SECRET. MILITARY PLANS."."
127 249 7FF9
Message: "APART FROM A FAIRLY NEW AND UNUSED BLOTTING PAD THE DESK TOP IS EMPTY."
128 29 801D
Message: "WHILE THE BALANCE IN THE ACCOUNT IS VERY HIGH THE ENTRIES IN THE BO..."
128 122 807A
Message: "DEAR SHERLOCK, I HAVE GONE BACK TO THE PRACTICE TO SEE A FEW PATIEN..."
128 171 80AB
Message: "S. V. A BLV SNIH USH YWNBK. XLET YTAQH AK NQQHYUNRWH. WHU FH MBLV V..."
128 248 80F8
Message: "VAKS USH KNWH UL UNMH YWNQH. UNMH QNTH FTK RTLVBK GHNUS SNK KUNTUHG..."
129 88 8158
Message: "DSWYP. GSUV CUVKSUP CSUX GSIC PPYA GPI UVK KS ZKCYVK ILK KS WXSPO U..."
129 183 81B7
Message: "THE NOTE READS" I HAVE SOME NEWS OF VITAL IMPORTANCE THAT I WOULD L..."
129 245 81F5
Message: "YOU SEE THE BODY OF A MIDDLE AGED WOMAN. HER FACE IS STREAKED WITH..."
130 32 8220
Message: "IT READS" MEET ME BY THE BRIDGE AT HALF PAST TWELVE. I HAVE SOME VE..."
130 89 8259
Verb patterns: the verb number is the position in this table
132 11 840B
Room table: room number -> room record
132 225 84E1
Room records (rooms 0-105)
139 111 8B6F
Entity index: id -> record address
140 186 8CBA
Entity records: every person, object and door
149 112 9570
The node heap: 752 bytes for the engine's linked lists
152 96 9860
The actor table: who acts, and where each is in its plan script
153 33 9921
Plan script: you (actor 0) - read, parse and do the player's commands
153 77 994D
The case's relation words
153 101 9965
The case: statements about the crime, and the evidence each needs
153 252 99FC
Routines run when a statement of the case is proven
154 125 9A7D
Three bytes ($FF, 0, 0) referenced from $BD4D
154 126 9A7E
Action record: default for verb 32 (HELLO)
154 128 9A80
Print one of two messages, depending on who is acting
154 153 9A99
Shared action 1: the police cab, GO TO (Leatherhead routes, $9AA3)
154 203 9ACB
Shared action 2: the police cab, GO FURIOUSLY TO - 20 minutes quicker
154 225 9AE1
Shared action 15: GO FURIOUSLY TO in a hansom cab - dearer, two minutes quicker
154 244 9AF4
Shared action 14: GO TO in a hansom cab
155 37 9B25
Price a cab ride from its journey time
155 80 9B50
A cabbie told where to go: can he get there from here?
155 127 9B7F
Cab journeys: which cab stands a hansom cab runs between, and how long it takes
156 7 9C07
Find the cab journey between two rooms
156 65 9C41
Action record: move the vehicle the actor is in to the direct object's room
156 86 9C56
Set an object's 'revealed' flag (+5 bit 7)
156 96 9C60
Clear an object's 'revealed' flag (+5 bit 7)
156 106 9C6A
Look up the actor's after-turn routine
156 119 9C77
Run the current actor's own after-turn routine
156 133 9C85
After-turn routines for nine characters
156 162 9CA2
Phipps's after-turn routine
156 206 9CCE
Is thing C in the same room as the current actor, and visible to the player?
156 233 9CE9
Say good morning to C, if just met
157 16 9D10
Watson's greeting countdowns: the player, Lestrade, Straker
157 19 9D13
Watson's after-turn routine
157 46 9D2E
Straker's greeting countdowns: the player, Watson
157 48 9D30
Chief Constable Straker's after-turn routine
157 69 9D45
A police man's warning countdowns: the player, Watson, the Major
157 72 9D48
A police man's after-turn routine: 'no one is to get by'
157 112 9D70
The other police man's warning countdowns
157 115 9D73
The other police man's after-turn routine
157 144 9D90
Lestrade's flags
157 149 9D95
Lestrade's after-turn routine, after the introduction
157 198 9DC6
Lestrade greets you: 'WELL, HOLMES FANCY SEEING YOU HERE.' the first time
157 216 9DD8
Lestrade asks whether you can prove a waiting statement yet
157 255 9DFF
Lestrade's after-turn routine, until the introduction
158 72 9E48
The last scene: Basil arrives at Victoria (the winning ending)
158 106 9E6A
Game-over record: 'I do not think you are doing too well'
158 116 9E74
End the game with the message in HL
158 133 9E85
Game-over record: the Major is arrested
158 162 9EA2
Game-over record: the morning papers
158 192 9EC0
Strachan's after-turn state
158 193 9EC1
After-turn routines for Strachan, the cook and the gardener: bedtime
158 202 9ECA
The cook's after-turn state
158 203 9ECB
After-turn routine: the cook
158 208 9ED0
The gardener's after-turn state
158 209 9ED1
After-turn routine: the gardener
159 30 9F1E
Store A at HL, put the actor in room B, and its next turn DE minutes on
159 56 9F38
Each verb's default action record
159 171 9FAB
Verbs 128-140: the verbs only plan scripts use
159 197 9FC5
Default action: KILL (also BREAK and a profane synonym)
159 212 9FD4
Unused
159 214 9FD6
Game variables
160 64 A040
Start the game
160 100 A064
The main loop: one minute of game time per pass
160 247 A0F7
Move IX to the next node of a list
161 4 A104
Find the node before node DE in the list at IY
161 26 A11A
$A11C: the free-list link before the best block so far
161 28 A11C
Allocate A + 3 bytes from the free list, cleared
161 175 A1AF
Free every node of the list starting at IX
161 199 A1C7
Free node IX back to the heap
162 12 A20C
Join free block IX to the next one if they touch
162 77 A24D
Articles: A / AN / SOME, or THE
162 93 A25D
Is thing B in the list at ($A0D8)? (only when $A011 is set)
162 119 A277
Describe a room's picture
162 150 A296
Print 18 newlines
162 162 A2A2
Print a newline (A kept)
162 170 A2AA
Use THE: a flag for the article printer ($A7F2)
162 171 A2AB
Fill B bytes at HL with zero (or, from $A2AC, with A)
162 177 A2B1
HL = verb A's record in the verb table
162 189 A2BD
Gather a verb record's flag nibbles into $A01D and $A01E
162 228 A2E4
Narrate a command as a sentence ('You take the oil lamp.')
163 93 A35D
A remembered command: verb, direct object, indirect object
163 96 A360
Code $18: narrate the remembered command
163 125 A37D
Print the rest of a narrated command: verb words, objects, numbers
164 25 A419
Print an amount of money
164 118 A476
Divide HL by DE: A = quotient, HL = remainder
164 128 A480
Print one digit of HL / DE, skipping leading zeros (C)
164 144 A490
Print the number B (0-255) in decimal
164 171 A4AB
HL = room A's record + 1
164 188 A4BC
HL = thing A's record + 7
164 205 A4CD
Do the pattern words at IY name the words at HL? ($A4CD, $A4E0)
165 27 A51B
Does the word reference at HL match the one at IY? (Z)
165 54 A536
Wait for a key, but not for ever
165 93 A55D
Routines for the message control codes $00-$1F
165 157 A59D
Where the message's stack parameters end
165 159 A59F
Print the message at HL
165 196 A5C4
Interpret message bytes until the end of the message
165 205 A5CD
Interpret one message element at IX
166 33 A621
Run control code A
166 58 A63A
Codes $08 and $0D: print the code itself
166 63 A63F
Codes $1D and $1E (and $A647): finish a sentence
166 90 A65A
Code $1F: end of message
166 92 A65C
Code $12: does nothing
166 93 A65D
Code $00: print the thing whose address is the next parameter
166 108 A66C
Code $01: print the next parameter as a word (and: fetch the next parameter)
166 121 A679
Code $02: jump within the message
166 130 A682
Code $1C: does nothing
166 132 A684
Code $1A: carry on with the message at the next parameter
166 140 A68C
Codes $0F, $14-$17: only in one part of the day
166 187 A6BB
Skip one message element at IX
166 209 A6D1
Code $0A: the count, then the choice
166 211 A6D3
Code $0A: one of the next n elements, at random
167 2 A702
Code $03: print the word reference in $A00D
167 9 A709
Code $04: print the next parameter as a word or number
167 17 A711
Code $05: print the case statement at the next parameter
167 32 A720
Code $06: name the actor
167 44 A72C
Code $07: name the direct object
167 54 A736
Code $08: print the code itself
167 59 A73B
Code $09: name the indirect object
167 69 A745
Name room or thing A
167 91 A75B
Code $0B: print a message at an offset from here
167 113 A771
Code $19: print the message at the next parameter
167 128 A780
Codes $0C and $0E: YOUR or HIS
167 147 A793
Codes $10, $11 and $13: name someone, then ARE or IS
167 186 A7BA
Print the name of the thing at HL (as $D405)
167 197 A7C5
Print the name of the thing at HL (as $D3E8)
167 208 A7D0
Print an article, or note whether the word is YOU
167 234 A7EA
$A7D0: set when the word was not YOU
167 235 A7EB
Print the article for article code DE
168 14 A80E
Print word reference DE (code $04's printer)
168 47 A82F
Name actor A ($FF: SOMEONE)
168 58 A83A
Message bytes $60 and up: a common word
168 81 A851
Code $1B: the all-capitals flag (read at $AA59)
168 82 A852
Code $1B: capitals on/off
168 92 A85C
Word suffixes
168 128 A880
Print the dictionary word that HL refers to
169 47 A92F
Add a dictionary word's suffix to the spelling at IX
169 77 A94D
Spell dictionary record HL into the buffer at $5C42
169 91 A95B
Unpack a dictionary record's letters (front-coded)
169 144 A990
Unpack the next five-bit letter (C = bit position)
169 181 A9B5
Word buffer pointer for $A9B7
169 183 A9B7
Print character A, a word at a time (word wrap)
170 20 AA14
Send one character to the screen layer
170 113 AA71
Shared action records, used through objects' own action lists
170 178 AAB2
Parse the next sentence from the word list
171 145 AB91
Read a sentence's verb words into the node at IY
172 36 AC24
Read a noun phrase into the pattern at $AAA8
172 143 AC8F
Put word BC in the first empty pair at $AAA8 (NZ if both are taken)
172 148 AC94
Put word BC in the first empty pair at $AAAE (NZ if both are taken)
172 166 ACA6
Copy the noun-phrase pattern into the node: first or second object
172 204 ACCC
Note where this sentence started, so it can be read again
172 251 ACFB
After a sentence: copy the objects on, or rewind to read it again
173 87 AD57
Count the sentence, then on to the next or finish
174 89 AE59
Fill in a word reference at HL from DE, unless HL already has one
174 106 AE6A
Add a new node to the end of the sentence list
174 127 AE7F
Read the next token of the typed line
174 169 AEA9
IY = the next node in the list (Z at the end)
174 182 AEB6
Step forward over nodes marked with bit 6 of +1
174 197 AEC5
IY = the node before IY in the sentence list ($9FF0)
174 234 AEEA
IY = the last node of the sentence list
174 241 AEF1
Merge parse node IX into node IY
175 56 AF38
Z if the ten bytes at IY + A are all zero
175 78 AF4E
Copy 6, 10 or 2 bytes from IX + DE to IY + DE
175 103 AF67
Not a special word: NZ
175 107 AF6B
Special words and their handlers
175 179 AFB3
Is word BC a special word? Then run its handler
175 225 AFE1
Handler guards: only at the start of a sentence
175 250 AFFA
Handlers for BECAUSE / THEREFORE, PRINT and NOPRINT
176 28 B01C
Handlers for BUT, ALL and a quote mark
176 172 B0AC
After a game-over message: get ready to load a saved game
176 198 B0C6
Handler for SAVE
176 215 B0D7
Load a saved game from tape
176 238 B0EE
The block a saved game holds: $840B up to $A01F
176 253 B0FD
Handlers for THATS, HE, IT and THEY
177 109 B16D
Parser variables
177 145 B191
Match the typed command against the verb patterns
178 223 B2DF
Choose the indirect object: the candidate that passes the record's checks
179 3 B303
HL = $B6AE (ask which one), Z
179 8 B308
Count the candidates for the direct object
179 45 B32D
Count the candidates for the indirect object
179 79 B34F
Start the direct-object search afresh
179 107 B36B
Start the indirect-object search afresh
179 135 B387
Test the verb record's flags against the indirect-object slot
179 156 B39C
$B39D: bit 7 of the verb's first word reference
179 157 B39D
Look the typed verb up in the verb table ($8259)
180 5 B405
Copy the typed objects into the two object slots, in the verb's order
180 131 B483
Copy the word pair at IY + E to HL, if B is not 0
180 160 B4A0
Call the search routine in IY
180 162 B4A2
$B4C1: $FF until the number in the direct-object slot has been used
180 163 B4A3
The direct object is a number: use it once
180 193 B4C1
The next candidate for the direct object ($A034)
180 253 B4FD
Next thing or room the direct-object slot names, skipping those $B517 rejects
181 23 B517
ALL BUT: is the candidate one of the things after BUT?
181 73 B549
$B568: $FF until the number in the indirect-object slot has been used
181 74 B54A
The indirect object is a number: use it once
181 104 B568
The next candidate for the indirect object ($A035)
181 164 B5A4
Next thing or room the indirect-object slot names
181 182 B5B6
Move on to the next sentence of the typed line
181 211 B5D3
Ask the player which object, or what
182 174 B6AE
No indirect object: DON'T BE SILLY, or YOU CANNOT ... THE ...
182 214 B6D6
$B6FD's working pointers
182 218 B6DA
If the slot names scenery: 'YOU CANNOT <verb> THE <word>'
182 253 B6FD
Do the slot's words name some of the room's scenery?
183 114 B772
A = the class of dictionary word DE
183 126 B77E
$B6FD's flag
183 127 B77F
Fetch the next word for $B6FD's name match
184 60 B83C
Push the three words at HL as message parameters
184 76 B84C
I DO NOT KNOW THE VERB "<word>"
184 99 B863
JP $C929 (check the record)
184 102 B866
Speech hand-over variables
184 106 B86A
Hand quoted words to the person spoken to (SAY TO / TALK TO)
185 14 B90E
Find the current actor's waiting order or remark
185 31 B91F
Is an order or a remark waiting for the current actor?
185 52 B934
The actor an order is for (two copies)
185 54 B936
Deal with an order or remark addressed to the current actor
185 140 B98C
Take the command out of an ASK order
185 250 B9FA
Remove node IX from the order/remark list and free it
186 19 BA13
Variables used by the code at $BA20-$BF58
186 32 BA20
A remark for Watson or Inspector Lestrade: let them reply
186 96 BA60
More variables for $BA67-$BB5C
186 103 BA67
Watson's reply to something the player says
187 70 BB46
Remember a choice (A) and the 3 bytes at $BA19
187 92 BB5C
Jump to the handler of the record at ($BA65)
187 103 BB67
Lestrade's reply to something the player says
188 70 BC46
Check every statement that is waiting to be proven
188 116 BC74
Count the waiting statements that can now be proven
188 156 BC9C
Find the first waiting statement that cannot be proven yet
188 201 BCC9
Try to prove statement IX
189 81 BD51
Find the statement $BA19-$BA1B in the case table
189 194 BDC2
Turn the player's remark into a statement
190 90 BE5A
Step IX over one case record (4 bytes, or 6 with a routine)
190 114 BE72
Step IX over a whole group of case records
190 145 BE91
Check one piece of evidence (NZ if it holds)
191 8 BF08
Check every piece of evidence in the group after IX (Z if one fails)
191 28 BF1C
Print a case statement: thing, relation, thing
191 69 BF45
DE = the words for a statement's relation (+1)
191 89 BF59
Day names, and the clock text being built
191 121 BF79
Print the clock: day, hour, minute, a or p
191 217 BFD9
Advance the clock by one minute
192 12 C00C
What part of the day is it? (A = 1-5)
192 59 C03B
Read the ZX Printer's status (port $FB, bit 6)
192 64 C040
Save the game to tape, then verify it
192 165 C0A5
Tape message: 'REWIND TAPE.'
192 177 C0B1
Tape message: 'TAPE ERROR.'
192 188 C0BC
Tape message: 'PLAY SAVED GAME TAPE TO BE LOADED', newline, '.'
192 223 C0DF
Load the saved-game block from tape
192 254 C0FE
The saved game's tape header: a CODE file 'SHD V2.0'
193 15 C10F
Set the border, then clear the screen and attributes
193 40 C128
Flag: text lines are narrow (a picture is showing)
193 41 C129
Narrow the text lines to the left half (a picture is showing)
193 66 C142
Text lines full width again (36 characters)
193 74 C14A
Set up the screen at the start of the game
193 144 C190
The chain strip that holds the clock: a 32-pixel pattern, six lines deep
193 168 C1A8
Print the clock line: B characters from HL at screen address $5041
193 192 C1C0
Print a prompt at HL, wait for a key, newline
193 203 C1CB
Print a message: plain ASCII, last byte has bit 7 set
193 225 C1E1
Print gatekeeper: check two flags, then dispatch
193 244 C1F4
Command-window state
193 252 C1FC
Echo a typed character in the command window
194 64 C240
Upper-case A if it is a lower-case letter
194 73 C249
Rub out the last character in the command window
194 103 C267
Step the print position back one 7-pixel character
194 113 C271
Scroll the command window up one line and clear the bottom line
194 156 C29C
Move part of the command window down a row and clear the gap
194 186 C2BA
Print one character (or handle a newline) at the cursor
195 6 C306
Page-wait: flash the cursor, wait for a key, clear
195 22 C316
Scroll the text up a line, printing the line that goes if printing is on
195 125 C37D
Swap DE and HL, then move HL down a character row
195 136 C388
PLOT-CHAR: draw one character glyph at HL, shifted by C
195 228 C3E4
Send the screen's top character row to the ZX Printer, if printing is on
196 0 C400
The end of $C3E4 (POP DE, POP HL, RET)
196 3 C403
Print one pixel line on the ZX Printer
196 21 C415
GET-KEY, but block until a key is actually pressed
196 31 C41F
GET-KEY: has the player pressed a key?
196 94 C45E
Is B below the last number for this object slot?
196 113 C471
Words for a +5 flag that should be set but is not
196 129 C481
Words for a +5 flag that is set but should not be
196 145 C491
Rooms saved before an action
196 147 C493
Set the direct object's requirement from the parsed words
196 178 C4B2
Set the indirect object's requirement from the parsed words
196 209 C4D1
Carry out the command in $A033-$A035 for the current actor
197 66 C542
Should the indirect object be guessed?
197 90 C55A
Guess the indirect object: try each one until the record's checks pass
197 113 C571
$A00F = an action record's requirement code (header byte 0, low nibble)
197 122 C57A
$A010 = the record's header byte 1, low nibble (the indirect object's requirement)
197 131 C583
Pick one of the 13 numbered action records
197 252 C5FC
Should the indirect object be guessed? (numbered records)
198 13 C60D
Guess the indirect object for a numbered record
198 40 C628
Check the direct object against the action record's requirement
198 190 C6BE
Check the indirect object against the action record's requirement
199 78 C74E
Test object C's +5 flags against a record's masks
199 166 C7A6
Check object C against requirement code A (7-15)
200 33 C821
Can the current actor ($A036) see thing A?
200 99 C863
Is thing number A here? ($C86E)
200 110 C86E
Follow an object's containment chain to its root
200 152 C898
Follow IY's containment chain
200 167 C8A7
How many locations has object A? (Z if exactly one)
200 175 C8AF
Is object A held, at any depth, by a person?
200 190 C8BE
Is object A a person? (NZ if so)
200 198 C8C6
Can the actor carry object A as well as what it holds?
200 239 C8EF
Point $A013 and $A015 at the direct and indirect objects' records
201 41 C929
Check the action record against the command's objects
201 51 C933
Find the action record for the current command
201 96 C960
Look up a numbered entry in the table at $AA71
201 137 C989
Run the numbered action record IX
201 150 C996
Run a numbered action record; a script record becomes the actor's plan
201 191 C9BF
Run an action record (HL = the record)
202 96 CA60
Run the action body, then report what the player saw
202 118 CA76
Narrate the action, unless the verb is script-only
202 127 CA7F
If the player's own view changed, describe the room
202 158 CA9E
Describe the player's room: in full the first time, briefly after
202 174 CAAE
Flag: the player's view has changed
202 175 CAAF
Announce a character coming into the player's room
203 40 CB28
The saved IX and IY for $CB2C's calls
203 44 CB2C
Dispatch to a handler routine via a computed jump
203 64 CB40
Jump to HL
203 65 CB41
Return Z (does nothing)
203 67 CB43
End of an actor's go: hand the turn back to the player
203 121 CB79
The flags $CB7B is to name
203 123 CB7B
Refuse by naming the flag that failed: "THE ... IS <word>"
203 167 CBA7
Refuse if the character is busy: 'SORRY, I CANNOT DO THAT NOW.'
203 187 CBBB
Refusal: "SORRY IT IS TOO DARK."
203 194 CBC2
Print message DE about thing A, if it is in the player's room
204 11 CC0B
Bytes for the actor's turn ($CC37)
204 14 CC0E
Find the actor record whose id matches C
204 41 CC29
Set up the current actor: its record and room
204 55 CC37
Start an actor's turn
204 120 CC78
Run one step of the current actor's plan script
205 36 CD24
Plan opcode 8, SIGNAL: leave a token for another actor
205 71 CD47
Plan opcode 9, AWAIT: wait for a token from another actor
205 130 CD82
Plan opcodes 13 and 15, PASS; and giving up for the turn
205 149 CD95
Plan opcode 6, PRINT: print a message
205 161 CDA1
Plan opcode 5, SAY TO: say something to someone
205 191 CDBF
Plan opcode 4, ASK: order another character to do something
206 24 CE18
Plan opcodes 1, 2, 3 and 7: DO a command or RUN a record
206 131 CE83
Point IX and HL at the current plan instruction
206 143 CE8F
A plan instruction succeeded: move on
206 184 CEB8
A plan instruction failed: move on and try again now
206 222 CEDE
Resolve a plan argument byte
206 254 CEFE
Skip past a plan instruction
207 67 CF43
Erase a spent one-shot plan instruction
207 128 CF80
Save a sub-script call frame
208 8 D008
Load the current actor's plan registers
208 69 D045
Note the room the player is in ($A009)
208 79 D04F
IX = just before the start of the thing index ($8B6F)
208 90 D05A
How a room is entered in words: 'You are ON Baker Street'
208 106 D06A
Direction words, continued: WEST to DOWN
208 120 D078
Is it too dark for the actor to see? (carry if so)
208 208 D0D0
Put word HL into the 'YOU ARE ...' message
208 220 D0DC
Set to use 'YOU CAN SEE' instead of 'YOU ARE ...'
208 221 D0DD
Get the room's opening: 'YOU ARE ON/IN/AT ...' or 'YOU CAN SEE'
209 2 D102
Describe room A in full (the first visit)
209 19 D113
Describe room A in full
209 130 D182
Print a room's description
209 178 D1B2
Describe room A briefly (a room seen before)
209 198 D1C6
Print room IX's name (its name words at +1)
209 219 D1DB
Jump to HL
209 220 D1DC
Does this object list verb A in its own action list?
210 6 D206
Step to the next 3-byte entry
210 28 D21C
Step to the next thing's record ($D206), keeping A
210 36 D224
Find a room record
210 55 D237
Resolve an id (in A) to its full entity record
210 73 D249
Move everything inside thing A, at any depth, to room B
210 108 D26C
Is the direct object carried by the actor? (carry = yes)
210 117 D275
Is thing A carried by the actor, perhaps inside something? (carry = yes)
210 157 D29D
A random number from 1 to 100
210 164 D2A4
A random number from 0 to A
210 173 D2AD
The random number generator
210 237 D2ED
Total size (+2) of the things directly in thing A
210 242 D2F2
Total weight (+3) of everything in thing A, at any depth
211 5 D305
Add up a byte of the things in thing A (the work of $D2ED/$D2F2)
211 60 D33C
IX = record of the actor's room
211 73 D349
Search a table of two-byte entries for A
211 78 D34E
Find a 3-byte record by id, in a sentinel-terminated table
211 106 D36A
Find the next thing that matches a word slot of the parse
211 155 D39B
Find the next room that matches a word slot of the parse
211 213 D3D5
Print thing IX's name
211 232 D3E8
Print the name words at IY
212 5 D405
Print a thing's name with its adjectives (IY = its name words)
212 72 D448
Find the actor's exit in a direction
212 108 D46C
Find the exit from the actor's room through door A ($D46C) or to room A ($D471)
212 149 D495
GET-ACTOR-ROOM: what room is actor A currently in?
212 167 D4A7
List the people here: 'YOU CAN SEE ...'
212 204 D4CC
Count the things in place B that should be listed (B)
212 239 D4EF
Should this thing be listed here?
213 26 D51A
List the things in a place, with commas and AND
213 38 D526
List the things in place A, then what each of them holds
213 124 D57C
The next listable thing in place A (carry at the end)
213 144 D590
Say what a person is carrying, or what is on or in a thing
213 201 D5C9
Where a thing is: IN, ON, BEHIND, UNDER, TIED
213 211 D5D3
Print how a thing is held: IN, ON, BEHIND, UNDER or TIED TO
213 239 D5EF
IX = room A's exits (record + 6), BC = 3 (their size)
213 251 D5FB
DE = the word for direction A (NORTH ... DOWN)
214 11 D60B
Describe the ways out through things: 'TO THE NORTH THERE IS THE FRONT DOOR'
214 113 D671
Step IX to the room's next plain exit (Z at the end)
214 140 D68C
List the plain exits: 'VISIBLE EXITS ARE ...'
214 184 D6B8
A flag of the player's script step, and spare bytes
214 191 D6BF
Player's turn: read a line from the keyboard (RUN at $9923)
214 206 D6CE
Read one word and classify it as noun or verb
214 229 D6E5
Say 'I DO NOT KNOW THE WORD "..."'
215 20 D714
Flag: repeat the last command ('@')
215 21 D715
Player's turn: split the typed line into words (RUN at $9928)
215 105 D769
Player's turn: stop when the line has no more words (RUN at $992D)
215 112 D770
Fail if the next token is of class $C0
215 126 D77E
Player's turn: parse the next sentence (RUN at $9932)
215 217 D7D9
Player's turn: another sentence waiting? (RUN at $9937)
215 224 D7E0
A flag for $D7E1
215 225 D7E1
More of the typed line to do?
215 250 D7FA
Player's turn: turn the sentence into a command (RUN at $993C)
216 125 D87D
Free the current sentence's word list ($9FF0)
216 138 D88A
Free the rest of the typed line's word list ($9FF2)
216 151 D897
The line editor's inside-quotes flag
216 152 D898
Read a line from the keyboard, with a time limit
216 173 D8AD
The line editor
217 92 D95C
Close a quotation: a full stop if needed, then the closing quote mark
217 104 D968
End the typed line with a full stop if it has none
217 120 D978
A cursor key on an empty line is a compass move
217 158 D99E
The '@' key on an empty line: do the last command again
217 183 D9B7
Rub out the typed line
217 195 D9C3
The tokenizer's current dictionary candidate
217 197 D9C5
Tokenizer: read and classify the next word from input
218 50 DA32
The tokenizer's word pointer
218 52 DA34
Look up this word's first letter in the dictionary index
218 125 DA7D
Compare the typed word against one dictionary candidate
218 198 DAC6
Read a token that is not a word: money, a number or punctuation
218 232 DAE8
Is A a digit? (carry if not)
218 239 DAEF
Read a time, or a number that may turn out to be money
219 86 DB56
Is A a separator (full stop, comma or space)? Z if so
219 95 DB5F
Step HL back one and return Z with A = $F0
219 100 DB64
Pounds, shillings and pence
219 103 DB67
Read an amount of pre-decimal money
219 247 DBF7
Read a decimal number at HL into A
220 19 DC13
The number reader's working bytes
220 21 DC15
Fail: A = 0, HL = 0, Z set
220 25 DC19
Action record: default for verb 35 (LOOK THROUGH)
220 87 DC57
Action record: default for verb 28 (GO THROUGH)
220 123 DC7B
Action record: default for verb 34 (LOOK)
220 141 DC8D
Action record: default for verb 16 (DROP)
220 187 DCBB
Refusal: "YOU ARE CARRYING THE ..."
220 193 DCC1
Default action: take (TAKE, GET, CARRY, TAKE FROM, TAKE OUT OF)
220 210 DCD2
Pre-check for moving in a direction (verbs 1-10)
221 3 DD03
Default action: move in a direction (verbs 1-10)
221 53 DD35
Can the actor get past the thing in an exit?
221 82 DD52
Sub-script: RUN at $E460; RUN at $E7BE; default for verb 18 (ENTER); default for verb 27 (GO INTO)
221 97 DD61
Action record: find the exit to a room next door (RUN at $DD54)
221 132 DD84
Action record: remember what holds the direct object (RUN at $E476, $E7CF)
221 158 DD9E
Action record: default for verb 46 (TALK TO)
221 180 DDB4
Action record: default for verb 49 (WAIT HERE)
221 190 DDBE
Script helper: wait n minutes
221 208 DDD0
Default action: WAIT UNTIL (verb 50)
222 111 DE6F
Action record: default for verb 33 (INVENTORY)
222 157 DE9D
Shared OPEN action ($AA71 entry #6, CLOSE is #7)
222 175 DEAF
Shared CLOSE action ($AA71 entry #7)
222 193 DEC1
Default action: put something into something (PUT IN, PUT ON, DROP IN)
222 217 DED9
Pre-check for PUT IN: will the thing fit in the container?
223 2 DF02
Action record: default for verb 26 (GIVE TO): hand the object over
223 64 DF40
Action record: default for verb 19 (EXAMINE)
223 126 DF7E
Sub-script: shared action 20, TAKE the burning note
223 139 DF8B
Action record: singe the note when it is picked up (RUN at $DF85)
223 167 DFA7
Sub-script: shared action 21, OPEN a wall safe
223 182 DFB6
Action record: opening the wall safe on Monday (RUN at $DFAB)
223 202 DFCA
Action record: Basil shoots you (RUN at $EF99, and from $DFB6)
223 234 DFEA
Action record: shared 24 (TAKE OFF (used by the old man's disguise))
223 240 DFF0
Action record: shared 23 (WEAR (used by the old man's disguise))
224 3 E003
Shared TAKE OFF action ($AA71 entry #5)
224 34 E022
Shared WEAR action ($AA71 entry #4)
224 58 E03A
Set the worn state of the actor (A = 1 wear, 0 take off)
224 141 E08D
Sub-script: shared action 13, GO TO in a cab
224 160 E0A0
Sub-script: shared action 16, EXAMINE CLOSELY the deep stream
224 173 E0AD
Action record: Lestrade finds the large rock in the stream (RUN at $E0A2)
224 224 E0E0
Sub-script: shared action 19, EXAMINE CLOSELY the trash pile
224 235 E0EB
Action record: the trash pile gives up the torn note (RUN at $E0E7)
224 242 E0F2
Sub-script: shared action 17, EXAMINE CLOSELY the drawer
224 253 E0FD
Action record: the drawer's false bottom (RUN at $E0F9)
225 4 E104
Action record: the bookcase swings away (shared 18)
225 53 E135
Action record: RUN at $E0A7; RUN at $E0E2; RUN at $E0F4; default for verb 20 (EXAMINE CLOSELY)
225 123 E17B
Sub-script: shared 22 (no object uses it)
225 136 E188
Action record: Mrs Jones is asked what happened or about her alibi (RUN at $E17D)
225 163 E1A3
Sub-script: shared 3 (no object uses it)
225 178 E1B2
Action record: asked about the bloodstained clothes, Tricia Fender becomes Mrs Jones (RUN at $E1A5)
225 214 E1D6
Action record: default for TELL and TELL ABOUT (verbs 47 and 48)
226 42 E22A
A table searched by $E207 (part of TELL)
226 141 E28D
Refuse if the actor is the direct object
226 152 E298
Can this hansom cab be hailed here?
226 198 E2C6
HAIL: the cab hailed, plus one
226 199 E2C7
Shared HAIL action ($AA71 entry #11)
226 238 E2EE
Start actor A on the script at DE, with objects B and C
227 28 E31C
COUNT's pre-check: is the thing countable?
227 40 E328
Action record: shared 10 (COUNT the money)
227 106 E36A
Refusal: "YOU DO NOT HAVE ENOUGH."
227 112 E370
Action record: RUN at $E510; default for verb 37 (PAY TO)
227 143 E38F
Store HL as the money a thing holds (+9/+10)
227 156 E39C
HL = the money a thing holds (+9/+10)
227 169 E3A9
DE = the sum of money in the command ($A02F)
227 184 E3B8
Pre-check for getting into a cab
227 234 E3EA
Shared GET INTO a cab ($AA71 entry #12)
227 245 E3F5
Pre-check for sitting on or getting into something
228 10 E40A
Shared SIT implementation ($AA71 entry #9)
228 50 E432
Shared GET-OUT implementation ($AA71 entry #8)
228 82 E452
Sub-script: default for verb 21 (FOLLOW); default for verb 22 (COME WITH)
228 136 E488
Action record: where is the person I follow? (RUN at $E45B, $E7B9)
228 151 E497
Verb 128 (scripts only): put a thing in a room
228 201 E4C9
Action record: put a train in a room (internal verb 140, RUN at $F2A7)
229 6 E506
Sub-script: pay the cab fare
229 24 E518
Action record: pay everything in the purse (RUN at $E508)
229 47 E52F
Script helper: start a countdown for the actor
229 122 E57A
Script helper: tick the countdown (fail when it runs out)
229 136 E588
Script helper: cancel the actor's countdown
229 168 E5A8
Script helper: idle for a minute
229 173 E5AD
Verb 131 (scripts only): is the direct object in room n?
229 193 E5C1
Action record: is the player in my room? (RUN at $E781)
229 216 E5D8
Verb 129 (scripts only): are two things in the same room?
229 253 E5FD
Action record: RUN at $E08F; RUN at $E46B; internal verb 130 (IS HERE: is the direct object with the actor ($C863)?)
230 62 E63E
Action record: is a fare owed? (RUN at $F2D8)
230 84 E654
Action record: is change due? (RUN at $F304, $F31C, $F339)
230 111 E66F
Action record: is the account settled? (RUN at $F309, $F321, $F33E)
230 188 E6BC
Action record: the cabbie names the fare (RUN at $F326)
230 230 E6E6
Action record: take the passenger in my cab as the one to deal with (RUN at $F2F7, $F35F, $F371)
231 14 E70E
Action record: the cabbie's parting shout (RUN at $F35C)
231 47 E72F
Plan script: watson (actor 3)
231 154 E79A
Sub-script: RUN at $E737; RUN at $E74A; RUN at $E776
231 226 E7E2
Script helper: is the actor carrying this?
231 231 E7E7
Plan script: inspector lestrade (actor 2)
234 246 EAF6
Action record: Lestrade puts the policeman into the police cab (RUN at $EA5F)
235 17 EB11
Script helper: is THE SALE LOCATION IS OLD MILL ROAD proven?
235 25 EB19
Action record: has Lestrade's statement been proven? (RUN at $EA2C)
235 40 EB28
Sub-script: RUN at $E939; RUN at $EA0A; RUN at $EA95
235 71 EB47
Sub-script: RUN at $E8B1; RUN at $E9FD
235 114 EB72
Sub-script: Inspector Lestrade's journey to Leatherhead
235 139 EB8B
Sub-script: internal verb 134 (sub-script: FOLLOW the direct object until in room (indirect object))
235 155 EB9B
Sub-script: internal verb 137 (sub-script: do verb (direct object), then EXAMINE the indirect object)
235 164 EBA4
Sub-script: take a hansom cab to room (indirect object)
235 213 EBD5
Action record: remember which cab is meant (RUN at $EBAA, $EBBB)
235 225 EBE1
Sub-script: take a steam train to room (direct object)
235 250 EBFA
Plan script: chief constable straker (actor 4)
236 246 ECF6
Sub-script: RUN at $E997; RUN at $EC12
236 255 ECFF
Sub-script: RUN at $F149
237 12 ED0C
Sub-script: RUN at $E9DB; RUN at $EC29; RUN at $F150
237 23 ED17
Sub-script: RUN at $E8C9; RUN at $E9E4; RUN at $EC64; RUN at $F11C
237 40 ED28
Sub-script: RUN at $EDEB; RUN at $EE0E; internal verb 135 (sub-script: OPEN, GO THROUGH and CLOSE a door)
237 57 ED39
Action record: Straker revives the policeman (RUN at $ECBB)
237 75 ED4B
Plan script: gardener (actor 8)
237 221 EDDD
Sub-script: internal verb 139 (sub-script: do verb (direct object), then CHANCE (indirect object))
237 233 EDE9
Sub-script: internal verb 138 (sub-script: go through a door (135), then CHANCE (indirect object))
237 248 EDF8
Plan script: cook (actor 9)
238 31 EE1F
Plan script: maid (actor 10)
238 43 EE2B
Plan script: Basil Phipps (actor 6) - the spy with the plans
239 156 EF9C
Action record: the first messenger takes a note from Basil (RUN at $EE95)
239 172 EFAC
Action record: the second messenger gives a note to Basil (RUN at $EF01)
239 179 EFB3
Action record: Phipps goes to sleep (RUN at $EE3D, $EEBB)
239 199 EFC7
Action record: Phipps wakes at 7 - or shoots you if you are in the house (RUN at $EE46, $EEC3, $EEDB, $EF09)
239 246 EFF6
Plan script: the German agent (actor 104) - Phipps's buyer
240 23 F017
Plan script: strachan (actor 5)
240 98 F062
Plan script: major percival ffoulkes (actor 7)
241 3 F103
The Major's confession: establish 'MAJOR VISITED OPIUM DEN'
241 16 F110
Plan script: local police man (actor 11)
241 69 F145
Plan script: local police man (actor 12)
241 90 F15A
Plan script: tricia fender (actor 13)
241 152 F198
Script helper: succeed by chance (n in 100)
241 168 F1A8
Action record: the Major knocks the policeman out (RUN at $F097)
241 193 F1C1
Set a thing's state word and state bits
241 214 F1D6
Verb 136 (scripts only): is it hour n?
241 246 F1F6
Action record: reveal the burning note (RUN at $EF0C)
242 3 F203
Verb 133 (scripts only): clear bit 0 of a thing's +5 flags
242 16 F210
Verb 132 (scripts only): set bit 0 of a thing's +5 flags
242 29 F21D
Plan script: steam train (actor 36)
242 45 F22D
Plan script: steam train (actor 38)
242 58 F23A
Plan script: steam train (actor 37)
242 70 F246
Plan script: steam train (actor 39)
242 91 F25B
Plan script: steam train (actor 41)
242 104 F268
Plan script: steam train (actor 40)
242 120 F278
Plan script: steam train (actor 42) - the Leatherhead line, first stop Kings Cross
242 141 F28D
Plan script: steam train (actor 43) - the Leatherhead line, first stop Leatherhead
242 165 F2A5
Sub-script: internal verb 140 (sub-script: $E4C9 on the direct object, then WAIT (indirect object) minutes)
242 178 F2B2
Plan script: cabbie (actor 31); cabbie (actor 34)
243 128 F380
Sub-script: RUN at $F37A
243 137 F389
Code after a plan script ($F389)
243 162 F3A2
Plan script: returned as a sub-script by $9B20
243 194 F3C2
Draw a picture (the picture interpreter)
244 142 F48E
Fill state
244 144 F490
Fill the area around the pen in colour A
245 13 F50D
Is the pixel under the pen set? (NZ if so)
245 20 F514
Move attribute address HL up a row (not past the top)
245 74 F54A
Move the pen one pixel (Z when it would leave the picture area)
245 110 F56E
Draw a line from the pen
245 210 F5D2
Plot the pen position in the current colour
245 251 F5FB
Find the screen byte and bit for the pen
246 11 F60B
Fill pattern for the picture interpreter
246 12 F60C
Which rooms have a picture
246 56 F638
Picture: room 12 (slater street)
246 237 F6ED
Picture: room 61 (basils bedroom)
247 190 F7BE
Picture: room 95 (small room)
248 104 F868
Picture: room 92 (jones front gate)
249 40 F928
Picture: room 6 (entrance hallway)
249 240 F9F0
Picture: room 62 (browns front gate)
250 170 FAAA
Picture: room 11 (scotland yard)
251 110 FB6E
Picture: room 54 (platform one), room 55 (platform two)
252 58 FC3A
Picture: room 88 (east side)
252 237 FCED
Picture: room 89 (west side)
253 168 FDA8
Picture: room 71 (browns library)
254 130 FE82
Picture: room 74 (daphnes room)
255 71 FF47
Picture: room 5 (baker street)