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 #342 background imageLoading...
Page #342 background image
Chapter
10
I
BASIC Keywords
WAIT
Statement
WAIT
port, numberl [,number21
Suspends program execution until
a
machine input
port
develops
a specified bit pattern. (A port is an inputloutput location.)
Number1
and
Number2
are
integers in the range
0
to
255.
BASIC reads the data
at
the specified port and
XORs
it with
number2,
if given. If you omit
number2,
BASIC
XORs
the data
with zero. BASIC then ANDs the result with
numberl.
If the re-
sult
is
zero, BASIC starts again with reading the data at the
port again. If the result
is
nonzero, BASIC continues with the
next statement.
It
is possible to enter an infinite loop with the WAIT statement.
In this case, you must
restart
the machine manually. To avoid
this, WAIT must have the specified value at port number during
some point in program execution.
Example
100
WAIT
32,2
340

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