Sherlock: annotated disassembly
Routines
Address
Description
99FC
Routines run when a statement of the case is proven
9A7E
Action record: default for verb 32 (HELLO)
9A80
Print one of two messages, depending on who is acting
9A99
Shared action 1: the police cab, GO TO (Leatherhead routes, $9AA3)
9ACB
Shared action 2: the police cab, GO FURIOUSLY TO - 20 minutes quicker
9AE1
Shared action 15: GO FURIOUSLY TO in a hansom cab - dearer, two minutes quicker
9AF4
Shared action 14: GO TO in a hansom cab
9B25
Price a cab ride from its journey time
9B50
A cabbie told where to go: can he get there from here?
9C07
Find the cab journey between two rooms
9C41
Action record: move the vehicle the actor is in to the direct object's room
9C56
Set an object's 'revealed' flag (+5 bit 7)
9C60
Clear an object's 'revealed' flag (+5 bit 7)
9C6A
Look up the actor's after-turn routine
9C77
Run the current actor's own after-turn routine
9CA2
Phipps's after-turn routine
9CCE
Is thing C in the same room as the current actor, and visible to the player?
9CE9
Say good morning to C, if just met
9D13
Watson's after-turn routine
9D30
Chief Constable Straker's after-turn routine
9D48
A police man's after-turn routine: 'no one is to get by'
9D73
The other police man's after-turn routine
9D95
Lestrade's after-turn routine, after the introduction
9DC6
Lestrade greets you: 'WELL, HOLMES FANCY SEEING YOU HERE.' the first time
9DD8
Lestrade asks whether you can prove a waiting statement yet
9DFF
Lestrade's after-turn routine, until the introduction
9E48
The last scene: Basil arrives at Victoria (the winning ending)
9E6A
Game-over record: 'I do not think you are doing too well'
9E74
End the game with the message in HL
9E85
Game-over record: the Major is arrested
9EA2
Game-over record: the morning papers
9EC1
After-turn routines for Strachan, the cook and the gardener: bedtime
9ECB
After-turn routine: the cook
9ED1
After-turn routine: the gardener
9F1E
Store A at HL, put the actor in room B, and its next turn DE minutes on
9FC5
Default action: KILL (also BREAK and a profane synonym)
A040
Start the game
A064
The main loop: one minute of game time per pass
A0F7
Move IX to the next node of a list
A104
Find the node before node DE in the list at IY
A11C
Allocate A + 3 bytes from the free list, cleared
A1AF
Free every node of the list starting at IX
A1C7
Free node IX back to the heap
A20C
Join free block IX to the next one if they touch
A25D
Is thing B in the list at ($A0D8)? (only when $A011 is set)
A277
Describe a room's picture
A296
Print 18 newlines
A2A2
Print a newline (A kept)
A2AB
Fill B bytes at HL with zero (or, from $A2AC, with A)
A2B1
HL = verb A's record in the verb table
A2BD
Gather a verb record's flag nibbles into $A01D and $A01E
A2E4
Narrate a command as a sentence ('You take the oil lamp.')
A360
Code $18: narrate the remembered command
A37D
Print the rest of a narrated command: verb words, objects, numbers
A419
Print an amount of money
A476
Divide HL by DE: A = quotient, HL = remainder
A480
Print one digit of HL / DE, skipping leading zeros (C)
A490
Print the number B (0-255) in decimal
A4AB
HL = room A's record + 1
A4BC
HL = thing A's record + 7
A4CD
Do the pattern words at IY name the words at HL? ($A4CD, $A4E0)
A51B
Does the word reference at HL match the one at IY? (Z)
A536
Wait for a key, but not for ever
A59F
Print the message at HL
A5C4
Interpret message bytes until the end of the message
A5CD
Interpret one message element at IX
A621
Run control code A
A63A
Codes $08 and $0D: print the code itself
A63F
Codes $1D and $1E (and $A647): finish a sentence
A65A
Code $1F: end of message
A65C
Code $12: does nothing
A65D
Code $00: print the thing whose address is the next parameter
A66C
Code $01: print the next parameter as a word (and: fetch the next parameter)
A679
Code $02: jump within the message
A682
Code $1C: does nothing
A684
Code $1A: carry on with the message at the next parameter
A68C
Codes $0F, $14-$17: only in one part of the day
A6BB
Skip one message element at IX
A6D3
Code $0A: one of the next n elements, at random
A702
Code $03: print the word reference in $A00D
A709
Code $04: print the next parameter as a word or number
A711
Code $05: print the case statement at the next parameter
A720
Code $06: name the actor
A72C
Code $07: name the direct object
A736
Code $08: print the code itself
A73B
Code $09: name the indirect object
A745
Name room or thing A
A75B
Code $0B: print a message at an offset from here
A771
Code $19: print the message at the next parameter
A780
Codes $0C and $0E: YOUR or HIS
A793
Codes $10, $11 and $13: name someone, then ARE or IS
A7BA
Print the name of the thing at HL (as $D405)
A7C5
Print the name of the thing at HL (as $D3E8)
A7D0
Print an article, or note whether the word is YOU
A7EB
Print the article for article code DE
A80E
Print word reference DE (code $04's printer)
A82F
Name actor A ($FF: SOMEONE)
A83A
Message bytes $60 and up: a common word
A852
Code $1B: capitals on/off
A880
Print the dictionary word that HL refers to
A92F
Add a dictionary word's suffix to the spelling at IX
A94D
Spell dictionary record HL into the buffer at $5C42
A95B
Unpack a dictionary record's letters (front-coded)
A990
Unpack the next five-bit letter (C = bit position)
A9B7
Print character A, a word at a time (word wrap)
AA14
Send one character to the screen layer
AAB2
Parse the next sentence from the word list
AB91
Read a sentence's verb words into the node at IY
AC24
Read a noun phrase into the pattern at $AAA8
AC8F
Put word BC in the first empty pair at $AAA8 (NZ if both are taken)
AC94
Put word BC in the first empty pair at $AAAE (NZ if both are taken)
ACA6
Copy the noun-phrase pattern into the node: first or second object
ACCC
Note where this sentence started, so it can be read again
ACFB
After a sentence: copy the objects on, or rewind to read it again
AD57
Count the sentence, then on to the next or finish
AE59
Fill in a word reference at HL from DE, unless HL already has one
AE6A
Add a new node to the end of the sentence list
AE7F
Read the next token of the typed line
AEA9
IY = the next node in the list (Z at the end)
AEB6
Step forward over nodes marked with bit 6 of +1
AEC5
IY = the node before IY in the sentence list ($9FF0)
AEEA
IY = the last node of the sentence list
AEF1
Merge parse node IX into node IY
AF38
Z if the ten bytes at IY + A are all zero
AF4E
Copy 6, 10 or 2 bytes from IX + DE to IY + DE
AF67
Not a special word: NZ
AFB3
Is word BC a special word? Then run its handler
AFE1
Handler guards: only at the start of a sentence
AFFA
Handlers for BECAUSE / THEREFORE, PRINT and NOPRINT
B01C
Handlers for BUT, ALL and a quote mark
B0AC
After a game-over message: get ready to load a saved game
B0C6
Handler for SAVE
B0D7
Load a saved game from tape
B0EE
The block a saved game holds: $840B up to $A01F
B0FD
Handlers for THATS, HE, IT and THEY
B191
Match the typed command against the verb patterns
B2DF
Choose the indirect object: the candidate that passes the record's checks
B303
HL = $B6AE (ask which one), Z
B308
Count the candidates for the direct object
B32D
Count the candidates for the indirect object
B34F
Start the direct-object search afresh
B36B
Start the indirect-object search afresh
B387
Test the verb record's flags against the indirect-object slot
B39D
Look the typed verb up in the verb table ($8259)
B405
Copy the typed objects into the two object slots, in the verb's order
B483
Copy the word pair at IY + E to HL, if B is not 0
B4A0
Call the search routine in IY
B4A3
The direct object is a number: use it once
B4C1
The next candidate for the direct object ($A034)
B4FD
Next thing or room the direct-object slot names, skipping those $B517 rejects
B517
ALL BUT: is the candidate one of the things after BUT?
B54A
The indirect object is a number: use it once
B568
The next candidate for the indirect object ($A035)
B5A4
Next thing or room the indirect-object slot names
B5B6
Move on to the next sentence of the typed line
B5D3
Ask the player which object, or what
B6AE
No indirect object: DON'T BE SILLY, or YOU CANNOT ... THE ...
B6DA
If the slot names scenery: 'YOU CANNOT <verb> THE <word>'
B6FD
Do the slot's words name some of the room's scenery?
B772
A = the class of dictionary word DE
B77F
Fetch the next word for $B6FD's name match
B83C
Push the three words at HL as message parameters
B84C
I DO NOT KNOW THE VERB "<word>"
B863
JP $C929 (check the record)
B86A
Hand quoted words to the person spoken to (SAY TO / TALK TO)
B90E
Find the current actor's waiting order or remark
B91F
Is an order or a remark waiting for the current actor?
B936
Deal with an order or remark addressed to the current actor
B98C
Take the command out of an ASK order
B9FA
Remove node IX from the order/remark list and free it
BA20
A remark for Watson or Inspector Lestrade: let them reply
BA67
Watson's reply to something the player says
BB46
Remember a choice (A) and the 3 bytes at $BA19
BB5C
Jump to the handler of the record at ($BA65)
BB67
Lestrade's reply to something the player says
BC46
Check every statement that is waiting to be proven
BC74
Count the waiting statements that can now be proven
BC9C
Find the first waiting statement that cannot be proven yet
BCC9
Try to prove statement IX
BD51
Find the statement $BA19-$BA1B in the case table
BDC2
Turn the player's remark into a statement
BE5A
Step IX over one case record (4 bytes, or 6 with a routine)
BE72
Step IX over a whole group of case records
BE91
Check one piece of evidence (NZ if it holds)
BF08
Check every piece of evidence in the group after IX (Z if one fails)
BF1C
Print a case statement: thing, relation, thing
BF45
DE = the words for a statement's relation (+1)
BF79
Print the clock: day, hour, minute, a or p
BFD9
Advance the clock by one minute
C00C
What part of the day is it? (A = 1-5)
C03B
Read the ZX Printer's status (port $FB, bit 6)
C040
Save the game to tape, then verify it
C0DF
Load the saved-game block from tape
C10F
Set the border, then clear the screen and attributes
C129
Narrow the text lines to the left half (a picture is showing)
C142
Text lines full width again (36 characters)
C14A
Set up the screen at the start of the game
C1A8
Print the clock line: B characters from HL at screen address $5041
C1C0
Print a prompt at HL, wait for a key, newline
C1CB
Print a message: plain ASCII, last byte has bit 7 set
C1E1
Print gatekeeper: check two flags, then dispatch
C1FC
Echo a typed character in the command window
C240
Upper-case A if it is a lower-case letter
C249
Rub out the last character in the command window
C267
Step the print position back one 7-pixel character
C271
Scroll the command window up one line and clear the bottom line
C29C
Move part of the command window down a row and clear the gap
C2BA
Print one character (or handle a newline) at the cursor
C306
Page-wait: flash the cursor, wait for a key, clear
C316
Scroll the text up a line, printing the line that goes if printing is on
C37D
Swap DE and HL, then move HL down a character row
C388
PLOT-CHAR: draw one character glyph at HL, shifted by C
C3E4
Send the screen's top character row to the ZX Printer, if printing is on
C400
The end of $C3E4 (POP DE, POP HL, RET)
C403
Print one pixel line on the ZX Printer
C415
GET-KEY, but block until a key is actually pressed
C41F
GET-KEY: has the player pressed a key?
C45E
Is B below the last number for this object slot?
C493
Set the direct object's requirement from the parsed words
C4B2
Set the indirect object's requirement from the parsed words
C4D1
Carry out the command in $A033-$A035 for the current actor
C542
Should the indirect object be guessed?
C55A
Guess the indirect object: try each one until the record's checks pass
C571
$A00F = an action record's requirement code (header byte 0, low nibble)
C57A
$A010 = the record's header byte 1, low nibble (the indirect object's requirement)
C583
Pick one of the 13 numbered action records
C5FC
Should the indirect object be guessed? (numbered records)
C60D
Guess the indirect object for a numbered record
C628
Check the direct object against the action record's requirement
C6BE
Check the indirect object against the action record's requirement
C74E
Test object C's +5 flags against a record's masks
C7A6
Check object C against requirement code A (7-15)
C821
Can the current actor ($A036) see thing A?
C863
Is thing number A here? ($C86E)
C86E
Follow an object's containment chain to its root
C898
Follow IY's containment chain
C8A7
How many locations has object A? (Z if exactly one)
C8AF
Is object A held, at any depth, by a person?
C8BE
Is object A a person? (NZ if so)
C8C6
Can the actor carry object A as well as what it holds?
C8EF
Point $A013 and $A015 at the direct and indirect objects' records
C929
Check the action record against the command's objects
C933
Find the action record for the current command
C960
Look up a numbered entry in the table at $AA71
C989
Run the numbered action record IX
C996
Run a numbered action record; a script record becomes the actor's plan
C9BF
Run an action record (HL = the record)
CA60
Run the action body, then report what the player saw
CA76
Narrate the action, unless the verb is script-only
CA7F
If the player's own view changed, describe the room
CA9E
Describe the player's room: in full the first time, briefly after
CAAF
Announce a character coming into the player's room
CB2C
Dispatch to a handler routine via a computed jump
CB40
Jump to HL
CB41
Return Z (does nothing)
CB43
End of an actor's go: hand the turn back to the player
CB7B
Refuse by naming the flag that failed: "THE ... IS <word>"
CBA7
Refuse if the character is busy: 'SORRY, I CANNOT DO THAT NOW.'
CBBB
Refusal: "SORRY IT IS TOO DARK."
CBC2
Print message DE about thing A, if it is in the player's room
CC0E
Find the actor record whose id matches C
CC29
Set up the current actor: its record and room
CC37
Start an actor's turn
CC78
Run one step of the current actor's plan script
CD24
Plan opcode 8, SIGNAL: leave a token for another actor
CD47
Plan opcode 9, AWAIT: wait for a token from another actor
CD82
Plan opcodes 13 and 15, PASS; and giving up for the turn
CD95
Plan opcode 6, PRINT: print a message
CDA1
Plan opcode 5, SAY TO: say something to someone
CDBF
Plan opcode 4, ASK: order another character to do something
CE18
Plan opcodes 1, 2, 3 and 7: DO a command or RUN a record
CE83
Point IX and HL at the current plan instruction
CE8F
A plan instruction succeeded: move on
CEB8
A plan instruction failed: move on and try again now
CEDE
Resolve a plan argument byte
CEFE
Skip past a plan instruction
CF43
Erase a spent one-shot plan instruction
CF80
Save a sub-script call frame
D008
Load the current actor's plan registers
D045
Note the room the player is in ($A009)
D04F
IX = just before the start of the thing index ($8B6F)
D078
Is it too dark for the actor to see? (carry if so)
D0D0
Put word HL into the 'YOU ARE ...' message
D0DD
Get the room's opening: 'YOU ARE ON/IN/AT ...' or 'YOU CAN SEE'
D102
Describe room A in full (the first visit)
D113
Describe room A in full
D182
Print a room's description
D1B2
Describe room A briefly (a room seen before)
D1C6
Print room IX's name (its name words at +1)
D1DB
Jump to HL
D1DC
Does this object list verb A in its own action list?
D206
Step to the next 3-byte entry
D21C
Step to the next thing's record ($D206), keeping A
D224
Find a room record
D237
Resolve an id (in A) to its full entity record
D249
Move everything inside thing A, at any depth, to room B
D26C
Is the direct object carried by the actor? (carry = yes)
D275
Is thing A carried by the actor, perhaps inside something? (carry = yes)
D29D
A random number from 1 to 100
D2A4
A random number from 0 to A
D2AD
The random number generator
D2ED
Total size (+2) of the things directly in thing A
D2F2
Total weight (+3) of everything in thing A, at any depth
D305
Add up a byte of the things in thing A (the work of $D2ED/$D2F2)
D33C
IX = record of the actor's room
D349
Search a table of two-byte entries for A
D34E
Find a 3-byte record by id, in a sentinel-terminated table
D36A
Find the next thing that matches a word slot of the parse
D39B
Find the next room that matches a word slot of the parse
D3D5
Print thing IX's name
D3E8
Print the name words at IY
D405
Print a thing's name with its adjectives (IY = its name words)
D448
Find the actor's exit in a direction
D46C
Find the exit from the actor's room through door A ($D46C) or to room A ($D471)
D495
GET-ACTOR-ROOM: what room is actor A currently in?
D4A7
List the people here: 'YOU CAN SEE ...'
D4CC
Count the things in place B that should be listed (B)
D4EF
Should this thing be listed here?
D51A
List the things in a place, with commas and AND
D526
List the things in place A, then what each of them holds
D57C
The next listable thing in place A (carry at the end)
D590
Say what a person is carrying, or what is on or in a thing
D5D3
Print how a thing is held: IN, ON, BEHIND, UNDER or TIED TO
D5EF
IX = room A's exits (record + 6), BC = 3 (their size)
D5FB
DE = the word for direction A (NORTH ... DOWN)
D60B
Describe the ways out through things: 'TO THE NORTH THERE IS THE FRONT DOOR'
D671
Step IX to the room's next plain exit (Z at the end)
D68C
List the plain exits: 'VISIBLE EXITS ARE ...'
D6BF
Player's turn: read a line from the keyboard (RUN at $9923)
D6CE
Read one word and classify it as noun or verb
D6E5
Say 'I DO NOT KNOW THE WORD "..."'
D715
Player's turn: split the typed line into words (RUN at $9928)
D769
Player's turn: stop when the line has no more words (RUN at $992D)
D770
Fail if the next token is of class $C0
D77E
Player's turn: parse the next sentence (RUN at $9932)
D7D9
Player's turn: another sentence waiting? (RUN at $9937)
D7E1
More of the typed line to do?
D7FA
Player's turn: turn the sentence into a command (RUN at $993C)
D87D
Free the current sentence's word list ($9FF0)
D88A
Free the rest of the typed line's word list ($9FF2)
D898
Read a line from the keyboard, with a time limit
D8AD
The line editor
D95C
Close a quotation: a full stop if needed, then the closing quote mark
D968
End the typed line with a full stop if it has none
D978
A cursor key on an empty line is a compass move
D99E
The '@' key on an empty line: do the last command again
D9B7
Rub out the typed line
D9C5
Tokenizer: read and classify the next word from input
DA34
Look up this word's first letter in the dictionary index
DA7D
Compare the typed word against one dictionary candidate
DAC6
Read a token that is not a word: money, a number or punctuation
DAE8
Is A a digit? (carry if not)
DAEF
Read a time, or a number that may turn out to be money
DB56
Is A a separator (full stop, comma or space)? Z if so
DB5F
Step HL back one and return Z with A = $F0
DB67
Read an amount of pre-decimal money
DBF7
Read a decimal number at HL into A
DC15
Fail: A = 0, HL = 0, Z set
DC19
Action record: default for verb 35 (LOOK THROUGH)
DC57
Action record: default for verb 28 (GO THROUGH)
DC7B
Action record: default for verb 34 (LOOK)
DC8D
Action record: default for verb 16 (DROP)
DCBB
Refusal: "YOU ARE CARRYING THE ..."
DCC1
Default action: take (TAKE, GET, CARRY, TAKE FROM, TAKE OUT OF)
DCD2
Pre-check for moving in a direction (verbs 1-10)
DD03
Default action: move in a direction (verbs 1-10)
DD35
Can the actor get past the thing in an exit?
DD61
Action record: find the exit to a room next door (RUN at $DD54)
DD84
Action record: remember what holds the direct object (RUN at $E476, $E7CF)
DD9E
Action record: default for verb 46 (TALK TO)
DDB4
Action record: default for verb 49 (WAIT HERE)
DDBE
Script helper: wait n minutes
DDD0
Default action: WAIT UNTIL (verb 50)
DE6F
Action record: default for verb 33 (INVENTORY)
DE9D
Shared OPEN action ($AA71 entry #6, CLOSE is #7)
DEAF
Shared CLOSE action ($AA71 entry #7)
DEC1
Default action: put something into something (PUT IN, PUT ON, DROP IN)
DED9
Pre-check for PUT IN: will the thing fit in the container?
DF02
Action record: default for verb 26 (GIVE TO): hand the object over
DF40
Action record: default for verb 19 (EXAMINE)
DF8B
Action record: singe the note when it is picked up (RUN at $DF85)
DFB6
Action record: opening the wall safe on Monday (RUN at $DFAB)
DFCA
Action record: Basil shoots you (RUN at $EF99, and from $DFB6)
DFEA
Action record: shared 24 (TAKE OFF (used by the old man's disguise))
DFF0
Action record: shared 23 (WEAR (used by the old man's disguise))
E003
Shared TAKE OFF action ($AA71 entry #5)
E022
Shared WEAR action ($AA71 entry #4)
E03A
Set the worn state of the actor (A = 1 wear, 0 take off)
E0AD
Action record: Lestrade finds the large rock in the stream (RUN at $E0A2)
E0EB
Action record: the trash pile gives up the torn note (RUN at $E0E7)
E0FD
Action record: the drawer's false bottom (RUN at $E0F9)
E104
Action record: the bookcase swings away (shared 18)
E135
Action record: RUN at $E0A7; RUN at $E0E2; RUN at $E0F4; default for verb 20 (EXAMINE CLOSELY)
E188
Action record: Mrs Jones is asked what happened or about her alibi (RUN at $E17D)
E1B2
Action record: asked about the bloodstained clothes, Tricia Fender becomes Mrs Jones (RUN at $E1A5)
E1D6
Action record: default for TELL and TELL ABOUT (verbs 47 and 48)
E28D
Refuse if the actor is the direct object
E298
Can this hansom cab be hailed here?
E2C7
Shared HAIL action ($AA71 entry #11)
E2EE
Start actor A on the script at DE, with objects B and C
E31C
COUNT's pre-check: is the thing countable?
E328
Action record: shared 10 (COUNT the money)
E36A
Refusal: "YOU DO NOT HAVE ENOUGH."
E370
Action record: RUN at $E510; default for verb 37 (PAY TO)
E38F
Store HL as the money a thing holds (+9/+10)
E39C
HL = the money a thing holds (+9/+10)
E3A9
DE = the sum of money in the command ($A02F)
E3B8
Pre-check for getting into a cab
E3EA
Shared GET INTO a cab ($AA71 entry #12)
E3F5
Pre-check for sitting on or getting into something
E40A
Shared SIT implementation ($AA71 entry #9)
E432
Shared GET-OUT implementation ($AA71 entry #8)
E488
Action record: where is the person I follow? (RUN at $E45B, $E7B9)
E497
Verb 128 (scripts only): put a thing in a room
E4C9
Action record: put a train in a room (internal verb 140, RUN at $F2A7)
E518
Action record: pay everything in the purse (RUN at $E508)
E52F
Script helper: start a countdown for the actor
E57A
Script helper: tick the countdown (fail when it runs out)
E588
Script helper: cancel the actor's countdown
E5A8
Script helper: idle for a minute
E5AD
Verb 131 (scripts only): is the direct object in room n?
E5C1
Action record: is the player in my room? (RUN at $E781)
E5D8
Verb 129 (scripts only): are two things in the same room?
E5FD
Action record: RUN at $E08F; RUN at $E46B; internal verb 130 (IS HERE: is the direct object with the actor ($C863)?)
E63E
Action record: is a fare owed? (RUN at $F2D8)
E654
Action record: is change due? (RUN at $F304, $F31C, $F339)
E66F
Action record: is the account settled? (RUN at $F309, $F321, $F33E)
E6BC
Action record: the cabbie names the fare (RUN at $F326)
E6E6
Action record: take the passenger in my cab as the one to deal with (RUN at $F2F7, $F35F, $F371)
E70E
Action record: the cabbie's parting shout (RUN at $F35C)
E7E2
Script helper: is the actor carrying this?
EAF6
Action record: Lestrade puts the policeman into the police cab (RUN at $EA5F)
EB11
Script helper: is THE SALE LOCATION IS OLD MILL ROAD proven?
EB19
Action record: has Lestrade's statement been proven? (RUN at $EA2C)
EBD5
Action record: remember which cab is meant (RUN at $EBAA, $EBBB)
ED39
Action record: Straker revives the policeman (RUN at $ECBB)
EF9C
Action record: the first messenger takes a note from Basil (RUN at $EE95)
EFAC
Action record: the second messenger gives a note to Basil (RUN at $EF01)
EFB3
Action record: Phipps goes to sleep (RUN at $EE3D, $EEBB)
EFC7
Action record: Phipps wakes at 7 - or shoots you if you are in the house (RUN at $EE46, $EEC3, $EEDB, $EF09)
F103
The Major's confession: establish 'MAJOR VISITED OPIUM DEN'
F198
Script helper: succeed by chance (n in 100)
F1A8
Action record: the Major knocks the policeman out (RUN at $F097)
F1C1
Set a thing's state word and state bits
F1D6
Verb 136 (scripts only): is it hour n?
F1F6
Action record: reveal the burning note (RUN at $EF0C)
F203
Verb 133 (scripts only): clear bit 0 of a thing's +5 flags
F210
Verb 132 (scripts only): set bit 0 of a thing's +5 flags
F389
Code after a plan script ($F389)
F3C2
Draw a picture (the picture interpreter)
F490
Fill the area around the pen in colour A
F50D
Is the pixel under the pen set? (NZ if so)
F514
Move attribute address HL up a row (not past the top)
F54A
Move the pen one pixel (Z when it would leave the picture area)
F56E
Draw a line from the pen
F5D2
Plot the pen position in the current colour
F5FB
Find the screen byte and bit for the pen