Prev: 48290 Up: Map Next: 48320
48310: Move Crosshair Left
Used by the routine at HandleCrosshair.
Part of the handler for the crosshair, which is entered when the left control is pressed. Moves the crosshair left, but not past the left limit.
Input
E The speed of the crosshair
L The horizontal position of the crosshair
MoveCrosshairLeft 48310 LD A,L Fetch the horizontal position.
48311 SUB E Subtract the speed.
48312 CP 44 Jump to HandleCrosshair_SetHorizontal if the crosshair is not past it.
48314 JR NC,HandleCrosshair_SetHorizontal
48316 LD A,44 Stop at the left limit.
48318 JR HandleCrosshair_SetHorizontal Jump to set the position.
Prev: 48290 Up: Map Next: 48320