Routines |
Prev: F905 | Up: Map | Next: F928 |
Used by the routine at ED8C. The character in question is standing at the entrance to a shop or other building, and his destination is somewhere inside. On entry, the zero flag is set if the entrance is open. Returns with A=3 (go up) if the entrance is open, or A=6 (knock or use a key) if it's closed.
|
||||||||||
F91E | JR NZ,$F925 | Jump unless the entrance is open | ||||||||
F920 | LD L,$04 | Set the character's z-coordinate to 1 (he's indoors now) | ||||||||
F922 | LD (HL),$01 | |||||||||
F924 | RET | Return to the caller of ED8C with A=3 (go up) | ||||||||
F925 | LD A,$06 | Return to the caller of ED8C with A=6 (knock on the door or use a key) | ||||||||
F927 | RET |
Prev: F905 | Up: Map | Next: F928 |