![]() |
Routines |
| Prev: CB0E | Up: Map | Next: CB45 |
|
Out if the north edge after the move is south of the south wall at $80 less the Y half-size. Y becomes the marker 0 (arrive at the north wall) and the room number goes down a row.
|
||||||||
| screen_south | CB29 | POP HL | H = the south wall | |||||
| CB2A | LD A,$80 | |||||||
| CB2C | SUB H | |||||||
| CB2D | LD H,A | |||||||
| CB2E | LD A,(IX+$02) | Y + dY + half-depth still at or beyond it: stay | ||||||
| CB31 | ADD A,(IX+$0A) | |||||||
| CB34 | ADD A,(IX+$05) | |||||||
| CB37 | CP H | |||||||
| CB38 | RET NC | |||||||
| CB39 | LD (IX+$02),$00 | arrive at the north wall | ||||||
| CB3D | LD A,(IX+$08) | room - 16 | ||||||
| CB40 | SUB $10 | |||||||
| CB42 | JP exit_screen | |||||||
| Prev: CB0E | Up: Map | Next: CB45 |