Routines |
Prev: 63749 | Up: Map | Next: 63784 |
Used by the routine at 60812. 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.
|
||||||||||
63774 | JR NZ,63781 | Jump unless the entrance is open | ||||||||
63776 | LD L,4 | Set the character's z-coordinate to 1 (he's indoors now) | ||||||||
63778 | LD (HL),1 | |||||||||
63780 | RET | Return to the caller of 60812 with A=3 (go up) | ||||||||
63781 | LD A,6 | Return to the caller of 60812 with A=6 (knock on the door or use a key) | ||||||||
63783 | RET |
Prev: 63749 | Up: Map | Next: 63784 |