![]() |
Routines |
| Prev: C3F0 | Up: Map | Next: C426 |
|
Out if the near edge in V after the move is at or past the wall at 128 plus the room's V half-size. V becomes the marker $FF, to arrive at the wall at low V, and the room is the one 16 on: the next row, wrapping from the last row to the first.
|
||||||||||
| EXIT_HIGH_V | C40B | POP HL | H = the wall | |||||||
| C40C | LD A,H | |||||||||
| C40D | ADD A,$80 | |||||||||
| C40F | LD H,A | |||||||||
| C410 | LD A,(IX+$02) | V + dV - half-size short of it: stay | ||||||||
| C413 | ADD A,(IX+$0A) | |||||||||
| C416 | SUB (IX+$05) | |||||||||
| C419 | CP H | |||||||||
| C41A | RET C | |||||||||
| C41B | LD (IX+$02),$FF | Arrive at the wall at low V | ||||||||
| C41F | LD A,(IX+$08) | Room + 16 | ||||||||
| C422 | ADD A,$10 | |||||||||
| C424 | JR EXIT_SCREEN | |||||||||
| Prev: C3F0 | Up: Map | Next: C426 |