![]() |
Routines |
| Prev: BCB6 | Up: Map | Next: BCCA |
|
Used by the routine at HandleCrosshair.
Part of the handler for the crosshair, which is entered when the down control is pressed. Moves the crosshair down, but not past the lower limit.
|
||||||||||
| MoveCrosshairDown | BCC0 | LD A,H | Fetch the vertical position. | |||||||
| BCC1 | SUB E | Subtract the speed. | ||||||||
| BCC2 | CP $54 | Jump to HandleCrosshair_SetVertical if the crosshair is not past it. | ||||||||
| BCC4 | JR NC,HandleCrosshair_SetVertical | |||||||||
| BCC6 | LD A,$54 | Stop at the lower limit. | ||||||||
| BCC8 | JR HandleCrosshair_SetVertical | Jump to set the position. | ||||||||
| Prev: BCB6 | Up: Map | Next: BCCA |