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 #262 background imageLoading...
Page #262 background image
Chapter
10
I
BASIC
Keywords
PEN/Trap
Statement
PEN
action
Turns on, turns off, or temporarily halts light pen event
trapping,
Actwn
may be any of the following:
ON
enables event trapping
OFF
disables event trapping.
STOP temporarily suspends event trapping.
Use the
PEN/Trap
statement in
a
light pen trap routine with
the ON PEN statement to detect when the light pen has been
activated.
The PEN ON statement turns on the trap. BASIC checks after
each program line to see if the light pen has been activated. If
so,
BASIC transfers program control to the line number specified
in
the ON PEN GOSUB statement.
The PEN STOP statement temporarily halts light pen trapping.
If the light pen
is
activated, BASIC does not transfer program
control to the ON PEN GOSUB statement until you turn on
trapping again by executing
a
PEN ON statement. BASIC re-
members that the light pen was activated and branches to the
subroutine immediately after trapping
is
turned on again.
The PEN
OFF
statement turns
off
light pen trapping. BASIC
does not remember if the light pen was activated when trapping
is turned on again.
You must also use PEN ON before executing the PEN function.
See ON PEN GOSUB for more information about light pen
trapping.
260

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