![]() |
Game status buffer |
Page | Byte | Address | Length | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
128 | 0 | 8000 | 32 |
The cavern name is copied here and then used by the routine at 8684.
|
||||||||||||||||
128 | 32 | 8020 | 72 |
The cavern tiles are copied here by the routine at 8684 and then used to draw the cavern by the routine at 8A75.
The extra tile at 805F 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.
|
||||||||||||||||
128 | 104 | 8068 | 1 | |||||||||||||||||
128 | 105 | 8069 | 1 | |||||||||||||||||
128 | 106 | 806A | 1 | |||||||||||||||||
128 | 107 | 806B | 1 | |||||||||||||||||
128 | 108 | 806C | 2 | |||||||||||||||||
128 | 110 | 806E | 1 | |||||||||||||||||
128 | 111 | 806F | 4 |
The conveyor definition is copied here by the routine at 8684.
|
||||||||||||||||
128 | 115 | 8073 | 1 | |||||||||||||||||
128 | 116 | 8074 | 1 | |||||||||||||||||
128 | 117 | 8075 | 26 | |||||||||||||||||
128 | 143 | 808F | 37 |
The portal definition is copied here by the routine at 8684.
|
||||||||||||||||
128 | 180 | 80B4 | 8 | |||||||||||||||||
128 | 188 | 80BC | 1 |
Initialised (always to 0x3F in practice) and used by the routine at 8684, updated by the routine at 8A3C, and also used by the routine at 9028. Its value ranges from 0x24 to 0x3F 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 80BD.
|
||||||||||||||||
128 | 189 | 80BD | 1 |
Initialised by the routine at 8684, updated on every pass through the main loop by the routine at 8A3C, and used for timing purposes by the routines at 8D0F, 8DF8 and 9135. Its value (which is always a multiple of 4) is also used by the routine at 8A3C to compute the amount of air to draw in the cell at the right end of the air bar.
|
||||||||||||||||
128 | 190 | 80BE | 29 |
The horizontal guardian definitions are copied here by the routine at 8684, and then used by the routines at 8D0F and 8DAA. 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:
|
||||||||||||||||
128 | 219 | 80DB | 1 | |||||||||||||||||
128 | 220 | 80DC | 1 |
Initialised by the routine at 8684, and used by the routines at 85CC (to hold the index into the message scrolled across the screen after the theme tune has finished playing), 8944 (to hold the distance of the boot from the top of the screen as it descends onto Willy), 8DF8 (to hold Eugene's pixel y-coordinate) and 9135 (to hold the Kong Beast's pixel y-coordinate).
|
||||||||||||||||
128 | 221 | 80DD | 35 |
The vertical guardian definitions are copied here by the routine at 8684, and then used by the routines at 8E75 and 8EF1. 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 8684 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 8DF8.
|
||||||||||||||||
129 | 0 | 8100 | 256 | |||||||||||||||||
132 | 7 | 8407 | 1 | |||||||||||||||||
132 | 31 | 841F | 6 | |||||||||||||||||
132 | 37 | 8425 | 10 | |||||||||||||||||
132 | 87 | 8457 | 1 | |||||||||||||||||
132 | 88 | 8458 | 1 | |||||||||||||||||
132 | 89 | 8459 | 1 | |||||||||||||||||
132 | 90 | 845A | 1 | |||||||||||||||||
132 | 91 | 845B | 1 | |||||||||||||||||
132 | 92 | 845C | 1 | |||||||||||||||||
132 | 93 | 845D | 1 |