Kempston Joystick
From SpecNext Wiki
| Port Number | $xx1F |
|---|---|
| Decimal | |
| Short desc. | Reads movement of joysticks using Kempston interface. |
| Bit Mask | %---- ---- 0001 1111 |
| Readable | Yes |
| Writable | No |
| Subsystem | Input |
| Bit | Function | |
|---|---|---|
| Kempston joystick | MD controller | |
| 7 | 0 | start/mode buttons |
| 6 | 0 | A/X buttons |
| 5 | Fire 2 | B/Y buttons |
| 4 | Fire 1 | C/Z buttons |
| 3 | up | |
| 2 | down | |
| 1 | left | |
| 0 | right | |
For all bits 0 = not pressed / 1 = pressed