EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #228 background imageLoading...
Page #228 background image
ChaDter
10
I
BASIC
Kevwords
ON
COM(
)
GOSUB
Statement
ON
COM(channeZ)
GOSUB
line
Transfers program control to a subroutine beginning at
line
when activity occurs on the communication channel.
Channel
selects communications Channel
1
or
2.
Line
is the
first
line
of
the subroutine
to
be executed when activ-
ity occurs on the specified communications channel. If you spec-
ify Line
0,
you turn
off
communications trapping. Use the
RETURN statement
to
exit the subroutine.
BASIC executes the ON
COM(
)
GOSUB statement only if a
COM( ON statement has been previously executed
to
enable
communication trapping. If a COM(
)
STOP statement has been
issued to halt communication trapping temporarily, BASIC exe-
cutes the subroutine immediately after the next
COM(
1
ON
statement.
When you execute the
ON
COM(
)
GOSUB statement, BASIC
immediately issues
a
COM(
1
STOP statement to prevent recur-
sive traps. When BASIC executes the RETURN from the subrou-
tine, it automatically executes another COM(
)
ON statement
to
enable communication trapping again, unless the subroutine exe-
cutes
a
COM(
OFF
statement.
226

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals