![]() |
Routines |
Prev: 54608 | Up: Map | Next: 54649 |
Used by the routine at GoldfishGame_PlayerControls.
|
||||
Controls_KempstonJoystick | 54620 | IN A,(31) | Read from the Kempston joystick port. | |
54622 | PUSH AF | Stash the control on the stack. | ||
54623 | AND 2 | If left has been pressed, call GoldfishGame_PlayerMoveLeft. | ||
54625 | CALL NZ,GoldfishGame_PlayerMoveLeft | |||
54628 | POP AF | Restore the current control but keep it on the stack. | ||
54629 | PUSH AF | |||
54630 | AND 4 | If down has been pressed, call GoldfishGame_PlayerMoveDown. | ||
54632 | CALL NZ,GoldfishGame_PlayerMoveDown | |||
54635 | POP AF | Restore the current control but keep it on the stack. | ||
54636 | PUSH AF | |||
54637 | AND 8 | If up has been pressed, call GoldfishGame_PlayerMoveUp. | ||
54639 | CALL NZ,GoldfishGame_PlayerMoveUp | |||
54642 | POP AF | Restore the current control from the stack. | ||
54643 | AND 1 | If right has been pressed, call GoldfishGame_PlayerMoveRight. | ||
54645 | JP NZ,GoldfishGame_PlayerMoveRight | |||
54648 | RET | Return. |
Prev: 54608 | Up: Map | Next: 54649 |