Difference between revisions of "Kempston Joystick"
From SpecNext official Wiki
(Adding bits info for Kempston/MD joystick reading) |
|||
Line 7: | Line 7: | ||
|PortMask=%---- ---- 0001 1111 | |PortMask=%---- ---- 0001 1111 | ||
}} | }} | ||
+ | {| class="wikitable" | ||
+ | !rowspan="2"| Bit !!colspan="2"| 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 ||colspan="2"| up | ||
+ | |- | ||
+ | | 2 ||colspan="2"| down | ||
+ | |- | ||
+ | | 1 ||colspan="2"| left | ||
+ | |- | ||
+ | | 0 ||colspan="2"| right | ||
+ | |} | ||
+ | For all bits 0 = not pressed / 1 = pressed |
Revision as of 21:15, 5 February 2020
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