![]() |
Routines |
| Prev: C843 | Up: Map | Next: C887 |
|
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.
|
||||||||||
| 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 |