![]() |
Routines |
| Prev: 62A2 | Up: Map | Next: 62D0 |
|
Used by the routine at MainGameLoop.
Move Percy up. Clamps to Y position 00 at the top of the screen.
|
||||||||||
| MovePercyUp | 62C2 | LD A,(IX+$01) | Load A with Percy's Y position (*IX+01) - the number of pixels to move (from D). | |||||||
| 62C5 | SUB D | |||||||||
| 62C6 | CP $A0 | Jump to MovePercyUp_Store if Percy's new position is less than A0 (is Percy within the screen boundaries). | ||||||||
| 62C8 | JR C,MovePercyUp_Store | |||||||||
|
Percy is outside of the screen boundaries!
|
||||||||||
| 62CA | LD A,$00 | Clamp Percy to Y position 00 (the top of screen). | ||||||||
| MovePercyUp_Store | 62CC | LD (IX+$01),A | Write Percy's updated Y screen position back to *IX+01. | |||||||
| 62CF | RET | Return. | ||||||||
| Prev: 62A2 | Up: Map | Next: 62D0 |