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 #242 background imageLoading...
Page #242 background image
Chapter
10
I
BASIC Keywords
ON
TIMER()
GOSUB
Statement
ON
TIMER(number1
GOSUB
line
Transfers program control
to
a
subroutine when the specified pe-
riod of time has elapsed.
Number
indicates the number
of
seconds.
Number
may be a
value in the range
1
to
86400 (86400 seconds
=
24 hours).
Line
is the
first
line number in the subroutine
to
execute when
the specified time has passed.
If
you specify Line 0, you turn off
trapping
for
the timer. Use RETURN
to
exit the subroutine.
BASIC executes the
ON
TIMER0 GOSUB statement only
if
a
TIMER
ON
statement has been executed previously
to
enable
time event trapping.
If a TIMER STOP statement has been issued
to
halt time event
trapping temporarily, BASIC executes the subroutine immedi-
ately after the next TIMER
ON
statement.
When you execute the ON TIMER() GOSUB statement, BASIC
immediately issues a TIMER STOP
to
prevent recursive traps.
When BASIC executes the RETURN from the subroutine, it au-
tomatically executes another TIMER ON statement
to
enable
trapping again, unless the subroutine executes a TIMER
OFF
statement.
240

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