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 #236 background imageLoading...
Page #236 background image
Chapter
10
1
BASIC
Keywords
ON
PEN
GOSUB
Statement
ON
PEN
GOSUB
line
Transfers program control to a subroutine when you activate the
light pen.
Line
is the first line number in the subroutine to execute when
the light pen
is
activated. If you specify Line
0,
you turn
off
trapping for the pen.
It
is the same
as
executing a PEN
OFF
statement. Use the RETURN statement to exit the subroutine.
BASIC executes the ON PEN GOSUB statement only if a PEN
ON statement has been executed previously to enable light pen
trapping.
If a PEN STOP statement has been issued to halt trapping for
the pen temporarily, BASIC executes the subroutine immediately
after the next PEN ON statement.
When you execute the ON PEN GOSUB statement, BASIC im-
mediately issues
a
PEN STOP statement to prevent recursive
traps. When BASIC executes the RETURN from the subroutine,
it automatically executes another PEN ON statement to enable
pen trapping again, unless the subroutine executes a PEN
OFF
statement.
234

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