COMM
Warning: if you clip this code into your program, look out for possible html code slipping in.
REM The COMM function provides a low level driver to either REM the "DEV" port (COM1) or the "COM" port (COM0). GLOBAL index AS INTEGER, temp AS INTEGER PRINT "\010\013COMM transmit...\010\013" FOR index=32 TO 126 temp=COMM(0,1,index):REM port 0, mode 1, data to be sent NEXT REM The COMM function can receive as well. REM The SBC2000-074 and SBC2000-062 can only buffer a single input character. PRINT "\010\013COMM receive...\010\013" DO temp=COMM(0,0,0) PRINT temp LOOP UNTIL temp=-1
© 2002 Vesta Technology