Kempston Joystick Interface: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
|0 | |0 | ||
|00000001 | |00000001 | ||
|Right | |Right | ||
|- | |- | ||
|1 | |1 | ||
|00000010 | |00000010 | ||
|Left | |Left | ||
|- | |- | ||
|2 | |2 | ||
|00000100 | |00000100 | ||
|Down | |Down | ||
|- | |- | ||
|3 | |3 | ||
|00001000 | |00001000 | ||
|Up | |Up | ||
|- | |- | ||
|4 | |4 |
Latest revision as of 18:22, 17 December 2022
Until the release of the +2 and +3, the Kempston joystick interface and its compatibles were the most common Joystick interfaces available to Speccy owners.
The original version also worked with the ZX-81, but joystick support in ZX81 games was much less common.
The interface uses standard Atari-style joysticks.
Port $1f
Bits are active high so 00=nothing pressed.
Bit | Mask | Usage |
---|---|---|
0 | 00000001 | Right |
1 | 00000010 | Left |
2 | 00000100 | Down |
3 | 00001000 | Up |
4 | 00010000 | Fire! |
5 | 00100000 | Very occasionally a second fire button on some clones, but usually 0 |
6 | 01000000 | Always 0 |
7 | 10000000 | Always 0 |