![]() |
Routines |
| Prev: CAF3 | Up: Map | Next: CB29 |
|
Out if the south edge after the move is at or past the north wall at $80 plus the Y half-size. Y becomes the marker $FF (arrive at the south wall) and the room number goes up a row, 16.
|
||||||||
| screen_north | CB0E | POP HL | H = the north wall | |||||
| CB0F | LD A,H | |||||||
| CB10 | ADD A,$80 | |||||||
| CB12 | LD H,A | |||||||
| CB13 | LD A,(IX+$02) | Y + dY - half-depth short of it: stay | ||||||
| CB16 | ADD A,(IX+$0A) | |||||||
| CB19 | SUB (IX+$05) | |||||||
| CB1C | CP H | |||||||
| CB1D | RET C | |||||||
| CB1E | LD (IX+$02),$FF | arrive at the south wall | ||||||
| CB22 | LD A,(IX+$08) | room + 16 | ||||||
| CB25 | ADD A,$10 | |||||||
| CB27 | JR exit_screen | |||||||
| Prev: CAF3 | Up: Map | Next: CB29 |