![]() |
Routines |
| Prev: C40B | Up: Map | Next: C442 |
|
Out if the far edge in V after the move is below the wall at 128 less the room's V half-size. V becomes the marker 0, to arrive at the wall at high V, and the room is the one 16 back: the row before.
|
||||||||||
| EXIT_LOW_V | C426 | POP HL | H = the wall | |||||||
| C427 | LD A,$80 | |||||||||
| C429 | SUB H | |||||||||
| C42A | LD H,A | |||||||||
| C42B | LD A,(IX+$02) | V + dV + half-size still at or beyond it: stay | ||||||||
| C42E | ADD A,(IX+$0A) | |||||||||
| C431 | ADD A,(IX+$05) | |||||||||
| C434 | CP H | |||||||||
| C435 | RET NC | |||||||||
| C436 | LD (IX+$02),$00 | Arrive at the wall at high V | ||||||||
| C43A | LD A,(IX+$08) | Room - 16 | ||||||||
| C43D | SUB $10 | |||||||||
| C43F | JP EXIT_SCREEN | |||||||||
| Prev: C40B | Up: Map | Next: C442 |