Kempston Joystick: Difference between revisions

From SpecNext Wiki
Jump to: navigation, search
No edit summary
Ped7g (talk | contribs)
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 PortNumber::$xx1F
Decimal NumberDec::
Short desc. ShortDesc::Reads movement of joysticks using Kempston interface.
Bit Mask PortMask::%---- ---- 0001 1111
Readable Readable::Yes
Writable Writable::No
Subsystem 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