Prev: C874 Up: Map Next: C89A
C887: Out through the wall at high V?
Out if the near edge in V is at or past the wall at 128 plus the room's half-size in V. V becomes the marker $FF: arrive at the wall at low V.
Input
IY The player's legs
IX The pillar
EXIT_HIGH_V C887 POP HL H = the wall
C888 LD A,H
C889 ADD A,$80
C88B LD H,A
C88C LD A,(IY+$02) Short of it: stay
C88F SUB (IY+$05)
C892 CP H
C893 RET C
C894 LD (IY+$02),$FF Arrive at the wall at low V
C898 JR EXIT_SCREEN
Prev: C874 Up: Map Next: C89A