![]() |
Routines |
| Prev: C887 | Up: Map | Next: C8AD |
|
Out if the far edge in V is below the wall at 128 less the room's half-size in V. V becomes the marker 0: arrive at the wall at high V.
|
||||||||||
| EXIT_LOW_V | C89A | POP HL | H = the wall | |||||||
| C89B | LD A,$80 | |||||||||
| C89D | SUB H | |||||||||
| C89E | LD H,A | |||||||||
| C89F | LD A,(IY+$02) | Still at or past it: stay | ||||||||
| C8A2 | ADD A,(IY+$05) | |||||||||
| C8A5 | CP H | |||||||||
| C8A6 | RET NC | |||||||||
| C8A7 | LD (IY+$02),$00 | Arrive at the wall at high V | ||||||||
| C8AB | JR EXIT_SCREEN | |||||||||
| Prev: C887 | Up: Map | Next: C8AD |