Address Length Description
61A8 22
Table: Room Image Offsets
Word offsets from Table_RoomImageOffsets to the room images. Pointer_RoomImageOffsets points at this table. Entry 00 is unused, and entries 01 to 0A select the ten pictures Image_YourOffice, Image_TheSewer, Image_Rubble, Image_Alleyway, Image_ControlRoom, Image_Wreckage, Image_Desert, Image_Home, Image_Museum and Image_Stadium.
9DCE 4
Table: Delimiters
A table of delimiter characters used for matching user input in...
9DD2 5
Table: Vocabulary For "THE"
"Vocabulary Table" used for matching and removing "THE" from user input.
9F88 136
Table: Item Locations
A table where the index is the item ID, and the value is the room it resides in (00 for "currently inactive").
When the item is in the players inventory, the room ID changes to 01.
A088 32
Flags: Game States
Holds thirty-two bytes of flag bits, tested and changed by TestFlag, SetFlag and ClearFlag. The bit index selects both the byte and the bit inside it. The engine uses the first byte as follows:
Bit Relating To
00 Player is dead
01 Score / end of game
02 Offer another game
A0A8 3
Table: Already Seen Room Images
Corresponds to whether the player has already seen the image for the following rooms:
Bit Room ID Room Name
00 45 Your Office
01 4F The Sewer
02 50 The Sewer
03 51 The Sewer
04 52 The Sewer
05 53 The Sewer
06 54 The Sewer
07 55 The Sewer
Bit Room ID Room Name
00 56 The Sewer
01 57 The Sewer
02 58 The Sewer
03 04 Darwin Street
04 49 An Alley
05 38 The Control Room
06 37 South Way
07 2C The Desert Road
Bit Room ID Room Name
00 2F An Overgrown Garden
01 0D The Insect House
02 2A East Street
03 N/A N/A
04 N/A N/A
05 N/A N/A
06 N/A N/A
07 N/A N/A
Handler_RoomExits tests and sets the bit for the current room. The bit number is the room's place in Table_RoomsWithImages.
A0C8 1
Flags: Turn-Based Event States
Holds a single byte, where each bit relates to a turn-based event as follows:
Bit Relating To
00 Alligator
01 Explosion
When the bit is set, this starts a turn counter (see Counter_Alligator). Handler_GameEvents counts a bit down while it is set, and the script actions Action_StartTurnEvent and Action_StopTurnEvent change the bits.
A0C9 8
Turn-Based Event Counters
One countdown per bit of *Flag_TurnBasedEventState. Handler_GameEvents decreases the counter for every active event, and Action_SetTurnCounter stores a new count.
A0D1 1
Flags: Event States
Holds a single byte. Each set bit makes the matching byte of Table_PhraseTokens follow the player into the new room (MovePlayerToRoom). Action_SetEventFlag sets a bit and Action_ClearEventFlag clears one.
Bit Relating To
00 N/A
01 N/A
02 N/A
03 N/A
04 "The gates are open"
05 N/A
06 "The gates are closed"
07 N/A
A0D2 1
Number Of Items In The Players Inventory
The number of items the player is currently holding.
A0D3 1
Carrying Limit
The most items the player may carry. Handler_CanTakeItem compares it with Count_InventoryItems. The game starts it from InitialCarryingLimit, and Action_SetCarryingLimit can replace it.
A0D4 6
Saved State Bytes
The 06 bytes copied to and from the addresses in Table_SavedStateAddresses while saving and loading. The count is Count_SavedStateBytes.
A106 1
Current Room ID
The room the player starts the game in is room 45: Your Office.
A107 2
Score
A109 50
Command Buffer
A13B 10
User Input: Word Tokens
A145 4
Four Letter Buffer
The four characters of the word Handler_UserInput is currently matching. Spare letters are spaces.
A149 12
Table: Directions
A443 4
Pointer: Command Word
The address and length of the command-buffer word being tokenised.
A6FD 2
Script Condition State
Working bytes for Handler_RunScript. The mask collects condition results and the operator selects AND or OR.
A779 12
Jump Table: Parser Checks
Parser routines called by Condition_ParserSucceeds and Condition_ParserFails. The first entry is unused.
A785 60
Jump Table: Script Conditions
Condition routines indexed by the opcodes in a script.
A7C1 68
Jump Table: Script Actions
Action routines indexed by the opcodes in a script.
A805 2
Script Result
ScriptMatchedItem holds the item ID found by Condition_GroupItemDiffers. An operand of FF makes RunScript_ResolveMatchedItem substitute it. ScriptParserResult holds the value returned by the latest parser check.
AC84 2
Temporary Storage Table Pointer
AC86 2
Temporary Storage Table Index
AD78 1
Temporary Room ID
The room ChangeRoom is about to enter. The script can test it before the move is committed.
AE7D 180
Table: Room Descriptions
AF31 172
Table: Object Noun Phrases
One word per object. Each entry points at the noun text.
AFDD 272
Table: Item Descriptions
B420 42
Table: Verb Word Tokens
The vocabulary number (Table_Vocabulary) of each of the 2A verbs (the count is at Count_VerbTokens). Handler_DispatchVerb looks the first word of a command up here and jumps to the action at the same position in JumpTable_VerbScripts.
B44A 84
Jump Table: Verb Scripts
The script Handler_DispatchVerb runs for the matching entry in Table_VerbWordTokens.
B49E 86
Table: Token Item List
A list of all tokens which relate to items.
B4F4 282
Table: Item Groups
For each object in Table_ObjectNounPhrases, in the same order: the items it may refer to, ending with FF. The pointers at Table_ItemGrouping say where each group starts.
B60E 172
Table: Item Grouping
Items may have several item IDs which relate to a single item, this table groups the items together to assist the parser with knowing that tokens refer to the same thing.
Some examples are:
Item ID Item Name Relates To:
0E "A bottle" The Bottle
0F "A bottle of oil"
10 "A bottle of water"
Item ID Item Name Relates To:
1F "A cap" The Cap
20 "A cap which you are wearing"
Item ID Item Name Relates To:
34 "The gates are open" The Gates
35 "The gates are closed"
B6BA 5
Table: Scenic Event Items
One item ID per scenic event (05 entries; see Count_ScenicEvents). These IDs are scenic-event slots in Table_ItemLocations / Table_InitialItemLocations: Table_ItemDescriptions has no description string for them (the pointer is 0000), so they have no display name in the item map. Handler_GameEvents passes each ID to ItemLocator to find the room that slot currently occupies, and Handler_ScenicEvents tests the same IDs with ValidateItemPresent.
B6F1 3
Table: Items Which Are Plural
All the items in the game which are plural; used by Handler_CanTakeItem and Handler_IsCarryingItem.
B6F4 329
Table: Phrase Tokens
Phrase patterns read by MatchPhraseTokens. Table_PhrasePointers holds an address for each pattern.
B83D 160
Table: Phrase Pointers
Addresses of the phrases in Table_PhraseTokens. Condition_PhraseMatches and Condition_PhraseDoesNotMatch index it.
B8DD 291
Table: Room Map
Six bytes per room, in the order north, south, east, west, up, down. A zero means there is no exit.
BA00 4
Data: Saved Room Byte
State byte 03 in Table_SavedStateAddresses. Saving copies this byte through SavedStateBytes, and Action_WriteSavedByte can replace it. The remaining bytes are a room-ID list terminated by 00.
BA04 73
Data: Saved Room List
State byte 04 in Table_SavedStateAddresses, followed by room IDs in groups terminated by 00. Only the first byte is copied by the save routine.
BA4D 172
Data: Saved Room List 2
State byte 05 in Table_SavedStateAddresses, followed by room IDs in groups terminated by 00. Only the first byte is copied by the save routine.
BAF9 12
Table: Saved State Addresses
Addresses of the six bytes packed into SavedStateBytes: B969, B9EC, B9FA, BA00, BA04 and BA4D. Three of them are direction bytes in Table_RoomMap, so a changed exit survives a save.
BB05 6
Initial Saved State Bytes
Values copied to the addresses in Table_SavedStateAddresses when a new game starts.
BB0B 136
Table: Initial Item Locations
Copied over Table_ItemLocations when a new game starts. The length is Count_Items.
BB93 19
Table: Rooms With Images
The 13 rooms that have a picture (the count is at Count_RoomsWithImages). Handler_RoomExits looks the current room up here; where it is found picks the picture number in Table_RoomImageNumbers and the "already seen" bit in Table_RoomImagesAlreadySeen. A picture is shown the first time the player enters the room, and again whenever they type LOOK.
BBA6 19
Table: Room Image Numbers
The picture passed to Handler_Images for each entry in Table_RoomsWithImages.
BBB9 4
Jump Table: Turn-Based Events
Scripts run by Handler_GameEvents when the matching turn counter reaches zero: BCCA and BCD7.
BBBD 10
Jump Table: Scenic Events
BBC7 2
Number Of Items
The total number of items in the game. See Table_ItemLocations and Table_InitialItemLocations.
BBC9 2
Number Of Objects
The total number of objects in the game. See Table_TokenItemList.
BBCB 2
Number Of Verb Tokens
The number of entries in Table_VerbWordTokens and JumpTable_VerbScripts.
BBCD 2
Number Of Rooms With Images
The total number of rooms which have related images in the game.
BBCF 2
Number Of Scenic Events
The total number of scenic events in the game, see Table_ScenicEventItems.
BBD1 2
Number Of Saved State Bytes
How many addresses Table_SavedStateAddresses holds, and how many bytes SavedStateBytes packs.
BBD3 1
Starting Room
BBD5 2
Pointer: Room Image Offsets
Points at Table_RoomImageOffsets, the offsets Handler_Images adds after indexing them.
BBD7 1
Initial Carrying Limit
Copied to CarryingLimit at the start of a game.
BBD8 116
Data: Arrival Script
Script run by ChangeRoom before the player enters the new room.
BC4C 152
Data: Room Setup Script
Script run by ChangeRoom after the new room is current.
BCE4 28
Data: Scenic Event Script
Script for scenic event 00. JumpTable_ScenicEvents jumps here.
BD00 28
Data: Scenic Event Script 2
Script for scenic event 01.
BD1C 9
Data: Scenic Event Script 3
Script for scenic event 02.
BD25 9
Data: Scenic Event Script 4
Script for scenic event 03.
BD2E 9
Data: Scenic Event Script 5
Script for scenic event 04.
BD37 2994
Data: Action Scripts
The verb scripts addressed from JumpTable_VerbScripts.
C8E9 322
Data: Strings
CA2B 736
Table: Messaging Offsets