Add SER2.BAS

This commit is contained in:
Greg Gauthier 2024-07-28 23:21:25 +00:00
parent 7f1a8a3164
commit a4cb939b72

11
SER2.BAS Normal file
View File

@ -0,0 +1,11 @@
REM ****************************************
REM ** RECEIVE TEXT FROM A SERIAL TERMINAL *
REM ****************************************
2 ON COM GOSUB 10
3 COM ON
10 OPEN "COM:88N1E" FOR INPUT AS 1
20 OPEN "INTXT1.DO" FOR OUTPUT AS 2
30 LINE INPUT #1,A$
40 PRINT #2,A$
50 IF NOT EOF(1) THEN GOTO 30
60 CLOSE 1,2