EasyManua.ls Logo

Husky Hunter - Page 186

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS
SECTION
5.4
5,4,8
Function COH activates or deactivates the communications interrupt
routine.
Syntax COM ON
CQ\1 OFF
COM STOP
These statements must be initialised with an ON COM
statement.
Example 10 ON COM GOSUB 1000
20 COM ON
1000 REM TRAP ROUTINE
1010 LINPUT A$
1990 RETURN
Remarks These statements decide what action is taken on rece1v1ng
communications. The interrupt occurs on the first
character.
COM ON When executed, allows trapping of communications
by the ON COM statement.
If the previous state
was COM OFF then the buffer is cleared by this
statement.
CQ\1 OFF The trap pi n g
i s d ea c t i vat e d and a 11
communications interrupts are ignored.
CQ\1 STOP Communicati.ons interrupts are noted but not acted
upon by the ON COM statement until a COM ON is
executed.
VER.V09F
PAGE 5 - 17