![]() |
Game status buffer |
| Address | Length | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5BC0 | 17 |
Populated initially by Duel_Data. Used by the routines at Duel_Actions, C58B, Duel_Draw_Bandit_Prep and Update_Duel_Timer.
|
||||||||||||
| 5BD1 | 17 |
Populated initially by Duel_Data. Used by the routines at Duel_Actions, C58B, Duel_Draw_Bandit_Prep and Update_Duel_Timer.
|
||||||||||||
| 5BE2 | 17 |
Populated initially by Duel_Data. Used by the routines at Duel_Actions, C58B, Duel_Draw_Bandit_Prep and Update_Duel_Timer.
|
||||||||||||
| 5CB0 | 1 |
Whether to utilise keyboard or joystick for input.
|
||||||||||||
| 5CB1 | 1 |
|
||||||||||||
| C421 | 1 |
|
||||||||||||
| C6E0 | 2 |
|
||||||||||||
| C6E2 | 1 |
See Duel_Complete for the clearest example of usage.
|
||||||||||||
| C6E3 | 1 |
See Duel_Complete for the clearest example of usage.
|
||||||||||||
| C6E4 | 1 |
See Duel_Complete for the clearest example of usage.
|
||||||||||||
| CA80 | 1 |
|
||||||||||||
| CBD0 | 2 |
|
||||||||||||
| CC38 | 2 |
Buffer for holding Copy_Routine address
|
||||||||||||
| CC59 | 1 |
|
||||||||||||
| CC8D | 12 |
Stores whether a deposit has been made for each door.
|
||||||||||||
| CC99 | 2 |
|
||||||||||||
| CD86 | 6 |
|
||||||||||||
| CD8C | 1 |
|
||||||||||||
| CD8D | 3 |
|
||||||||||||
| CE12 | 2 |
Points to either Controls_Joystick or Controls_Keyboard depending on the chosen control method.
|
||||||||||||
| CE14 | 6 |
These buffers point to the routines for character/ door actions for each door that are currently "in-play". Some example routines would be;
|
||||||||||||
| CE1A | 1 |
Only one door is "active" at a time, this status buffer points to the "currently in-focus door".
|
||||||||||||
| CE1B | 1 |
|
||||||||||||
| CE1C | 2 |
|
||||||||||||
| CE1E | 1 |
Current door speed multiplier (larger = slower). Cycles between the value in CE1B and 1, allowing doors to open at different times.
|
||||||||||||
| CE1F | 2 |
|
||||||||||||
| D12F | 54 |
The values contain custom flags for each character, plus the working current state and state machine times. The number of bytes used depends on the character. These are copied from the following defaults:
|
||||||||||||
| D165 | 14 |
|
||||||||||||
| D173 | 14 |
|
||||||||||||
| D181 | 14 |
|
||||||||||||
| D18F | 1 |
|
||||||||||||
| D190 | 1 |
|
||||||||||||
| D191 | 1 | |||||||||||||
| D2FE | 1 |
If any of these bits are set, the player loses a life:
|
||||||||||||
| D2FF | 1 |
|
||||||||||||
| D300 | 1 |
|
||||||||||||
| D301 | 2 |
|
||||||||||||
| D303 | 4 |
|
||||||||||||
| D45C | 2 |
|
||||||||||||
| D8AC | 4 |
|