--- title: "ZX81 Joystick Interface Test" id: 77546 type: "computer_media" slug: "zx81-joystick-interface-test" url: "http://localhost/computer_media/zx81-joystick-interface-test/" markdown_url: "http://localhost/computer_media/zx81-joystick-interface-test.md" published_at: "2026-11-15T18:38:11+00:00" modified_at: "2026-11-15T18:38:11+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/zx81-joystick-interface-test-1.png" excerpt: "Read a home-built Kempston joystick interface on port 31 from the ZX81 with a 6-byte routine." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Rene Bruneau" slug: "rene-bruneau" taxonomy: "indiv" url: "http://localhost/indiv/rene-bruneau/" genre: - name: "Joystick" slug: "joystick" taxonomy: "genre" url: "http://localhost/type/joystick/" media_type: "Program" programmers: - name: "Rene Bruneau" slug: "rene-bruneau" taxonomy: "indiv" url: "http://localhost/indiv/rene-bruneau/" download_url: "https://archive.org/download/timex-sinclair-software-archive/ZX81%20Joystick%20Interface%20Test%20%281992%29%28Bruneau%2C%20Rene%29%28TS1000%29%28CA%29%28Program%29.zip" mediadate: "1992" images: - url: "http://localhost/wp-content/uploads/2026/11/zx81-joystick-interface-test-1.png" article_media: - id: 23675 title: "ZX81 Resources: Joysticks" type: "article" url: "http://localhost/article/zx81-resources-joysticks/" media_type_tags: "Joystick" license: false --- # ZX81 Joystick Interface Test 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](https://timexsinclair.com/article/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, 201 ```