!,ASIC FU)ICTIONS
SECTION 5. 16
ONCOM
5.16.2 Function or~ COM defines a routine to be executed when dilt.J is re-
ceived into the communications buffer.
Syntax ON COM GOSUB line number
Example 10 ON con GOSUI3 100
20
COM ON
100 'SUBROUTINE TO READ
110 'HlCOMHJG DATA
190 RETURN
Remarks This stater.1ent is used in conjunction with the COM
statement. It tells I3asic where to jump to in the event of
a communications interrupt.
VER.V09F
Data may be left in the communications buffer for as long
as is necessary.
On an interrupt an automatic COM STOP is executed so inter-
rupts are never nested. The RETURN from the trap routine
performs an automatic COM Ol,, so re-aetivating the inter-
rupt routine, unless a COM OFF statement was executed
before the RETURN.
PAGE 5 - 87