Routines
| Prev: D008 | Up: Map | Next: D04F |
D045: Note the room the player is in ($A009)
|
Addresses named in the title: $A009.
Called at the start of every actor's turn ($CC5E): the room everything shown is judged against.
|
||||||||
| D045 | LD A,($9860) | The player (first actor, 9860)... | ||||||
| D048 | CALL $D495 | ...its room (D495)... | ||||||
| D04B | LD ($A009),A | Store A in the room the player is in, which decides what is shown ($A009) - ...stored as the room the player sees ($A009) | ||||||
| D04E | RET | Return to the caller | ||||||
| Prev: D008 | Up: Map | Next: D04F |