Prev: C843 Up: Map Next: C887
C874: Out through the wall at high U?
As EXIT_LOW_U the other way: out if the near edge, U less the half-size, is at or past the wall at 128 plus the room's half-size. U becomes the marker $FF: arrive at the wall at low U.
Input
IY The player's legs
IX The pillar
EXIT_HIGH_U C874 POP HL L = the wall
C875 LD A,L
C876 ADD A,$80
C878 LD L,A
C879 LD A,(IY+$01) Short of it: stay
C87C SUB (IY+$04)
C87F CP L
C880 RET C
C881 LD (IY+$01),$FF Arrive at the wall at low U
C885 JR EXIT_SCREEN
Prev: C843 Up: Map Next: C887