Test program for the Kempston-compatible joystick interface for the ZX81 built in the article (I/O port 31). It POKEs a 6-byte IN A,(31) routine into the line 1 REM (you type the bytes 219, 31, 6, 0, 79, 201 at the INPUT) and keeps printing the reading in the middle of the screen: 1 right, 2 left, 4 up, 8 down, 16 fire, added together for diagonals.
The article also gives a 2068 test line, Fight Simulator joystick POKEs and the board’s circuit, parts list and PCB mask.
Published in Sinc-Link November-December 1992 (ZX81 Resources: Joysticks).
Source Code
1 REM 123456
2 FOR X=16514 TO 16519
3 INPUT A
4 POKE X,A
5 NEXT X
6 CLS
7 PRINT AT 15,10; USR 16514
8 PRINT AT 15,10;" "
9 GOTO 7
The data requested in line 3 is:
219, 31, 6, 0, 79, 201Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.
