![]() |
Game Status Buffer |
| Address | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 61A8 | 22 |
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 |
A table of delimiter characters used for matching user input in...
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9DD2 | 5 |
"Vocabulary Table" used for matching and removing "THE" from user input.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9F88 | 136 |
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A0A8 | 3 |
Corresponds to whether the player has already seen the image for the following rooms:
Handler_RoomExits tests and sets the bit for the current room. The bit number is the room's place in Table_RoomsWithImages.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A0C8 | 1 |
Holds a single byte, where each bit relates to a turn-based event as follows:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A0C9 | 8 |
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 |
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.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A0D2 | 1 |
The number of items the player is currently holding.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A0D3 | 1 |
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 |
The 06 bytes copied to and from the addresses in Table_SavedStateAddresses while saving and loading. The count is Count_SavedStateBytes.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A106 | 1 |
The room the player starts the game in is room 45:
Your Office.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A107 | 2 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A109 | 50 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A13B | 10 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A145 | 4 |
The four characters of the word Handler_UserInput is currently matching. Spare letters are spaces.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A149 | 12 |
Pointer to the table containing direction messaging: MessagingExits_North, MessagingExits_South, MessagingExits_East, MessagingExits_West, MessagingExits_Up and MessagingExits_Down.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A443 | 4 |
The address and length of the command-buffer word being tokenised.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A6FD | 2 |
Working bytes for Handler_RunScript. The mask collects condition results and the operator selects
AND or OR.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A779 | 12 |
Parser routines called by Condition_ParserSucceeds and Condition_ParserFails. The first entry is unused.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A785 | 60 |
Condition routines indexed by the opcodes in a script.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A7C1 | 68 |
Action routines indexed by the opcodes in a script.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A805 | 2 |
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 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AC86 | 2 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AD78 | 1 |
The room ChangeRoom is about to enter. The script can test it before the move is committed.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AE7D | 180 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AF31 | 172 |
One word per object. Each entry points at the noun text.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AFDD | 272 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| B420 | 42 |
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 |
The script Handler_DispatchVerb runs for the matching entry in Table_VerbWordTokens.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| B49E | 86 |
A list of all tokens which relate to items.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| B4F4 | 282 |
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 |
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:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| B6BA | 5 |
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 |
All the items in the game which are plural; used by Handler_CanTakeItem and Handler_IsCarryingItem.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| B6F4 | 329 |
Phrase patterns read by MatchPhraseTokens. Table_PhrasePointers holds an address for each pattern.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| B83D | 160 |
Addresses of the phrases in Table_PhraseTokens. Condition_PhraseMatches and Condition_PhraseDoesNotMatch index it.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| B8DD | 291 |
Six bytes per room, in the order north, south, east, west, up, down. A zero means there is no exit.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BA00 | 4 |
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 |
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 |
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 |
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 |
Values copied to the addresses in Table_SavedStateAddresses when a new game starts.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BB0B | 136 |
Copied over Table_ItemLocations when a new game starts. The length is Count_Items.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BB93 | 19 |
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 |
The picture passed to Handler_Images for each entry in Table_RoomsWithImages.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBB9 | 4 |
Scripts run by Handler_GameEvents when the matching turn counter reaches zero: BCCA and BCD7.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBBD | 10 |
Scripts run for the scenic events in Table_ScenicEventItems: Data_ScenicEventScript1, Data_ScenicEventScript2, Data_ScenicEventScript3, Data_ScenicEventScript4 and Data_ScenicEventScript5.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBC7 | 2 |
The total number of items in the game. See Table_ItemLocations and Table_InitialItemLocations.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBC9 | 2 |
The total number of objects in the game. See Table_TokenItemList.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBCB | 2 |
The number of entries in Table_VerbWordTokens and JumpTable_VerbScripts.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBCD | 2 |
The total number of rooms which have related images in the game.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBCF | 2 |
The total number of scenic events in the game, see Table_ScenicEventItems.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBD1 | 2 |
How many addresses Table_SavedStateAddresses holds, and how many bytes SavedStateBytes packs.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBD3 | 1 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBD5 | 2 |
Points at Table_RoomImageOffsets, the offsets Handler_Images adds after indexing them.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBD7 | 1 |
Copied to CarryingLimit at the start of a game.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BBD8 | 116 |
Script run by ChangeRoom before the player enters the new room.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BC4C | 152 |
Script run by ChangeRoom after the new room is current.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BCE4 | 28 |
Script for scenic event 00. JumpTable_ScenicEvents jumps here.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BD00 | 28 |
Script for scenic event 01.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BD1C | 9 |
Script for scenic event 02.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BD25 | 9 |
Script for scenic event 03.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BD2E | 9 |
Script for scenic event 04.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BD37 | 2994 |
The verb scripts addressed from JumpTable_VerbScripts.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C8E9 | 322 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CA2B | 736 |
|