![]() |
Routines |
| Prev: 64042 | Up: Map | Next: 64122 |
|
Used by the routine at 64034.
|
||||||||
| 64091 | LD C,31 | Load 31 (Kempston port number) into C | ||||||
| 64093 | IN A,(C) | Read byte from port 31 (i.e. read state of joystick) | ||||||
| 64095 | BIT 0,A | If joystick moved right... | ||||||
| 64097 | CALL NZ,64195 | ...store a RIGHT input from control device | ||||||
| 64100 | BIT 1,A | If joystick moved left... | ||||||
| 64102 | CALL NZ,64192 | ...store a LEFT input from control device | ||||||
| 64105 | BIT 2,A | If joystick moved down... | ||||||
| 64107 | CALL NZ,64201 | ...store a DOWN input from control device | ||||||
| 64110 | BIT 3,A | If joystick moved up... | ||||||
| 64112 | CALL NZ,64198 | ...store an UP input from control device | ||||||
| 64115 | BIT 4,A | If fire button pressed... | ||||||
| 64117 | CALL NZ,64204 | ...store a FIRE input from control device | ||||||
| 64120 | LD A,(HL) | Return stored joystick movement in A | ||||||
| 64121 | RET | Return | ||||||
| Prev: 64042 | Up: Map | Next: 64122 |