Game status buffer |
Address | Length | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32768 | 32 |
The cavern name is copied here and then used by the routine at 34436.
|
||||||||||||||||
32800 | 72 |
The cavern tiles are copied here by the routine at 34436 and then used to draw the cavern by the routine at 35445.
The extra tile at 32863 behaves like a floor tile, and is used as such in The Endorian Forest, Attack of the Mutant Telephones, Ore Refinery, Skylab Landing Bay and The Bank. It is also used in The Menagerie as spider silk, and in Miner Willy meets the Kong Beast and Return of the Alien Kong Beast as a switch.
|
||||||||||||||||
32872 | 1 |
Initialised by the routine at 34436, and used by the routines at 35515, 35805, 37434 and 37503. Holds the LSB of the address of the entry in the screen buffer address lookup table at 33536 that corresponds to Willy's pixel y-coordinate; in practice, this LSB is twice Willy's actual pixel y-coordinate.
|
||||||||||||||||
32873 | 1 | |||||||||||||||||
32874 | 1 | |||||||||||||||||
32875 | 1 | |||||||||||||||||
32876 | 2 | |||||||||||||||||
32878 | 1 | |||||||||||||||||
32879 | 4 |
The conveyor definition is copied here by the routine at 34436.
|
||||||||||||||||
32883 | 1 | |||||||||||||||||
32884 | 1 | |||||||||||||||||
32885 | 26 | |||||||||||||||||
32911 | 37 |
The portal definition is copied here by the routine at 34436.
|
||||||||||||||||
32948 | 8 | |||||||||||||||||
32956 | 1 |
Initialised (always to 63 in practice) and used by the routine at 34436, updated by the routine at 35388, and also used by the routine at 36904. Its value ranges from 36 to 63 and is actually the LSB of the display file address for the cell at the right end of the air bar. The amount of air to draw in this cell is determined by the value of the game clock at 32957.
|
||||||||||||||||
32957 | 1 |
Initialised by the routine at 34436, updated on every pass through the main loop by the routine at 35388, and used for timing purposes by the routines at 36111, 36344 and 37173. Its value (which is always a multiple of 4) is also used by the routine at 35388 to compute the amount of air to draw in the cell at the right end of the air bar.
|
||||||||||||||||
32958 | 29 |
The horizontal guardian definitions are copied here by the routine at 34436, and then used by the routines at 36111 and 36266. There are four slots, each one seven bytes long, used to hold the state of the horizontal guardians in the current cavern.
For each horizontal guardian, the seven bytes are used as follows:
|
||||||||||||||||
32987 | 1 | |||||||||||||||||
32988 | 1 |
Initialised by the routine at 34436, and used by the routines at 34252 (to hold the index into the message scrolled across the screen after the theme tune has finished playing), 35140 (to hold the distance of the boot from the top of the screen as it descends onto Willy), 36344 (to hold Eugene's pixel y-coordinate) and 37173 (to hold the Kong Beast's pixel y-coordinate).
|
||||||||||||||||
32989 | 35 |
The vertical guardian definitions are copied here by the routine at 34436, and then used by the routines at 36469 and 36593. There are four slots, each one seven bytes long, used to hold the state of the vertical guardians in the current cavern.
For each vertical guardian, the seven bytes are used as follows:
In most of the caverns that do not have vertical guardians, this area is overwritten by unused bytes from the cavern definition. The exception is Eugene's Lair: the routine at 34436 copies the graphic data for the Eugene sprite into the last 32 bytes of this area, where it is then used by the routine at 36344.
|
||||||||||||||||
33024 | 256 | |||||||||||||||||
33799 | 1 | |||||||||||||||||
33823 | 6 | |||||||||||||||||
33829 | 10 | |||||||||||||||||
33879 | 1 | |||||||||||||||||
33880 | 1 | |||||||||||||||||
33881 | 1 | |||||||||||||||||
33882 | 1 | |||||||||||||||||
33883 | 1 | |||||||||||||||||
33884 | 1 | |||||||||||||||||
33885 | 1 |