tandy-scripts/SER2.BAS

11 lines
311 B
QBasic
Raw Normal View History

2024-07-28 23:21:25 +00:00
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