![]() |
Routines |
| Prev: 9ACD | Up: Map | Next: 9B16 |
|
Used by the routines at CHARACTERS_ACT and MOVE_CONTENTS.
CHARACTERS_ACT starts with this. PLAYER_AT is the player's location and PLAYER_IN_DARK is 1 in the dark, 0 in the light: in the dark the other characters are heard, not seen.
|
||||
| NOTE_LIGHT | 9B02 | LD A,$00 | PLAYER_AT = where the player is | |
| 9B04 | CALL LOCATION_OF | |||
| 9B07 | LD (PLAYER_AT),A | |||
| 9B0A | CALL TOO_DARK | PLAYER_IN_DARK = 1 if too dark to see | ||
| 9B0D | LD A,$00 | |||
| 9B0F | JR NC,NOTE_LIGHT_0 | |||
| 9B11 | INC A | |||
| NOTE_LIGHT_0 | 9B12 | LD (PLAYER_IN_DARK),A | ||
| 9B15 | RET | |||
| Prev: 9ACD | Up: Map | Next: 9B16 |