ZX81 test for the tethered robot’s I/O interface and motor board: it POKEs a 5-byte OUT (31),A routine into the line 1 REM, then is meant to ask for a control number (1 or 2 for one motor forward or back, 4 or 8 for the other, 5, 9, 10, 6 for both, 0 to stop) and send it to port 31.
As printed, the last three lines are all numbered 110, so only 110 GOTO 100 is kept and the program never asks for a number. The project, an I/O board and a motor board on VEROboard, is from Rupert Goodwins in Sinclair User, November and December 1986.
Published in Sinc-Link March-April 1994 (ZX81 Resources: A Tethered Robot).
Source Code
1 REM XXXXXXXXXXX
10 FOR X=16520 TO 16524
20 INPUT A
30 POKE X,A
40 NEXT X
100 PRINT "INPUT CONTROL NUMBER: 1,2, 4,8, 5,9,10,6, 0"
110 INPUT X
120 POKE 16521,X
110 RAND USR 16520
110 GOTO 100
Input the following machine code ignoring the information after the semicolon:
62 0 ;LD A,0
211 31 ;OUT 31,A
201 ;RETNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.
