Connect Atari compatible joystick to the ZX81/TS 1000. Plugs into back of computer; expansion connector for other peripherals. Instructions for patching popular games. Uses port 1Dh.
Program to read and display joystick values\n1 REM 123456789\n2 POKE 16514,219 ; IN A,[1Dh]\n3 POKE 16515,29 ;\n4 POKE 16516,47 ; CPL\n5 POKE 16517,230 ; AND A,1Fh\n6 POKE 16518,31 ;\n7 POKE 16519,6 ; LD B,0\n8 POKE 16520,0 ;\n9 POKE 16521,79 ; LD C,A\n10 POKE 16522,201 ; RET\n20 PRINT USR 16514