![]() |
Game status buffer |
Page | Byte | Address | Length | Description | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
127 | 0 | 32512 | 96 |
Used by the routines at 59861, 60032, 61630, 61696, 62368 and 64599. Each byte of the screen refresh buffer (SRB) corresponds to a segment of 8 character squares on the screen, the leftmost of which will be at x=0, x=8, x=16 or x=24. Each bit set in an SRB byte corresponds to a character square in the segment that needs refreshing. Bit 7 corresponds to the leftmost character square in the segment, bit 0 to the rightmost character square.
Note that, owing to a quirk in the way the SRB-updating routine at 59861 works, the first 16 bytes of the screen refresh buffer correspond not to any part of the screen, but to the four rows of the play area that are immediately above the currently visible portion of the play area. Therefore, the screen-updating routine at 60032 ignores those bytes and starts inspecting SRB bytes at 32528 instead.
Note also that the routine at 28357 uses the first 16 bytes of the SRB as a temporary backup store for the submessage indicator and submessage addresses at 32641, and the routine at 64618 uses the first 32 bytes of the SRB as a temporary store for the top row of attribute bytes when scrolling the screen up and down.
|
|||||||||||||||||||||||||||||||
127 | 96 | 32608 | 33 | ||||||||||||||||||||||||||||||||
127 | 129 | 32641 | 16 |
Used by the routine at 28357.
|
|||||||||||||||||||||||||||||||
127 | 145 | 32657 | 1 |
|
|||||||||||||||||||||||||||||||
127 | 146 | 32658 | 5 | ||||||||||||||||||||||||||||||||
127 | 151 | 32663 | 2 |
Used by the routines at 30575 and 30627. Holds either the address of the second byte of the entry in the phone message table at 27467 or 27506 that corresponds to the phone that Sam is calling (if the person on the other end has a message for him) or picking up a call from, or the address of the final byte of the phone table at 27506 (if the person Sam's calling has no message to give); this address contains the number of the message corresponding to the name that Sam must give in order to receive the telephone message, or 0 if no name is required to receive the message, or 255 if the person Sam's calling will respond with message 46 (I DUNNO NO {name}).
|
|||||||||||||||||||||||||||||||
127 | 153 | 32665 | 1 | ||||||||||||||||||||||||||||||||
127 | 154 | 32666 | 1 | ||||||||||||||||||||||||||||||||
127 | 155 | 32667 | 1 |
|
|||||||||||||||||||||||||||||||
127 | 156 | 32668 | 2 | ||||||||||||||||||||||||||||||||
127 | 158 | 32670 | 2 | ||||||||||||||||||||||||||||||||
127 | 160 | 32672 | 2 |
Used by the routine at 28357. Holds the two least significant bytes of the system variable FRAMES as they were when the last message was displayed.
|
|||||||||||||||||||||||||||||||
127 | 162 | 32674 | 6 | ||||||||||||||||||||||||||||||||
127 | 168 | 32680 | 1 | ||||||||||||||||||||||||||||||||
127 | 169 | 32681 | 1 | ||||||||||||||||||||||||||||||||
127 | 170 | 32682 | 10 | ||||||||||||||||||||||||||||||||
127 | 180 | 32692 | 1 |
Used by the routine at 61948, which stores a non-zero value here if any fuses are currently blown.
|
|||||||||||||||||||||||||||||||
127 | 181 | 32693 | 1 |
|
|||||||||||||||||||||||||||||||
127 | 182 | 32694 | 1 | ||||||||||||||||||||||||||||||||
127 | 183 | 32695 | 1 | ||||||||||||||||||||||||||||||||
127 | 184 | 32696 | 8 | ||||||||||||||||||||||||||||||||
127 | 192 | 32704 | 4 | ||||||||||||||||||||||||||||||||
127 | 196 | 32708 | 4 | ||||||||||||||||||||||||||||||||
127 | 200 | 32712 | 1 | ||||||||||||||||||||||||||||||||
127 | 201 | 32713 | 1 | ||||||||||||||||||||||||||||||||
127 | 202 | 32714 | 6 |
Used by the routine at 28186.
|
|||||||||||||||||||||||||||||||
127 | 208 | 32720 | 2 | ||||||||||||||||||||||||||||||||
127 | 210 | 32722 | 1 | ||||||||||||||||||||||||||||||||
127 | 211 | 32723 | 1 | ||||||||||||||||||||||||||||||||
127 | 212 | 32724 | 2 |
Checked and set by the routine at 31414. Holds the value of the two least significant bytes of the system variable FRAMES as they were when the score was last incremented.
|
|||||||||||||||||||||||||||||||
127 | 214 | 32726 | 5 |
|
|||||||||||||||||||||||||||||||
127 | 219 | 32731 | 3 | ||||||||||||||||||||||||||||||||
127 | 222 | 32734 | 2 |
Used by the routine at 61823.
|
|||||||||||||||||||||||||||||||
127 | 224 | 32736 | 7 |
Data is copied here from the game status buffer template at 65504, but is never used.
|
|||||||||||||||||||||||||||||||
127 | 231 | 32743 | 1 |
Used by the routine at 26075.
|
|||||||||||||||||||||||||||||||
127 | 232 | 32744 | 1 | ||||||||||||||||||||||||||||||||
127 | 233 | 32745 | 1 | ||||||||||||||||||||||||||||||||
127 | 234 | 32746 | 1 | ||||||||||||||||||||||||||||||||
127 | 235 | 32747 | 1 | ||||||||||||||||||||||||||||||||
127 | 236 | 32748 | 2 | ||||||||||||||||||||||||||||||||
127 | 238 | 32750 | 1 |
Holds the current game mode (0-4). Checked by the routines at 29952 (using the event entry at 24544), 31126, 31414 and 61568, and updated by the routine at 63662.
|
|||||||||||||||||||||||||||||||
127 | 239 | 32751 | 1 | ||||||||||||||||||||||||||||||||
127 | 240 | 32752 | 10 |
Used by the routines at 30396, 61764, 62099 and 62120. In each flag byte here, bits 0-2 hold the door close delay timer (0 if the door is shut), and the set bit (if any) in bits 3-7 indicates the key that is required to unlock the door:
|
|||||||||||||||||||||||||||||||
127 | 250 | 32762 | 1 | ||||||||||||||||||||||||||||||||
127 | 251 | 32763 | 1 |
Used by the routine at 61948.
|
|||||||||||||||||||||||||||||||
127 | 252 | 32764 | 1 |
Used by the routine at 29912 to decide how to deal with Sam.
|
|||||||||||||||||||||||||||||||
127 | 253 | 32765 | 1 |
Set by the main loop at 61483, and checked by the routine at 60641. Holds the value from the keypress offset table corresponding to the last key pressed.
|
|||||||||||||||||||||||||||||||
127 | 254 | 32766 | 1 | ||||||||||||||||||||||||||||||||
127 | 255 | 32767 | 1 |