
RPBASIC-52 PROGRAMMING GUIDE
2-18
COM
Syntax: COM(port)
Where: port = 0 or 1, the serial com munication port. port may be larger. Check your hardware
manual.
Function: Returns the number of ch aracters received in the specified se rial port buffer.
Mode: Run
Use: A = COM (0)
Cards: All
DESCRIPTION
Use this function in conjunction with GET and COM $ to determine the number of characters to extract from
the serial buffer. A GET 0 data value can be processed with the knowledge that it is a valid character and not
an indication of an empty buffer.
RELATED
COM$, GET
ERRORS
BAD SYNTAX Any parameters left out
BAD ARGUMENT When port > 1 or card limit or negative
Kommentare zu diesen Handbüchern