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 #304 background imageLoading...
Page #304 background image
Chapter
10
I
BASIC Ke,ywords
SCREEN
Function
SCREEN
(row,
column,
[
num
ber])
Returns the ASCII code
for
the character at the specified row
and column.
Row
is an integer in the range
1
to
25.
Column
is an integer in the range
1
to
80. Column
must be in
the range
for
the current screen mode.
Number
is applicable only
for
text mode. If you specify a non-zero
number,
SCREEN returns the color attribute, rather than the
ASCII code,
of
the character. The attribute is in the range
of
0
to
255,
and can be translated as follows:
attribute
MOD
16
=
foreground color
(((attribute
-
foreground)/
16)MOD 128)
=
background color
(number>l27)
is true
(-1)
if the character is blinking and false
(0)
if it is not.
In the graphics modes, if the location does not contain a stan-
dard ASCII character, BASIC returns a value
of
zero.
Sample
Program
10
LOCQTE 20,20
20
PRINT
“ROBBIE”
30
A
=
SCREEN(20,20):B
=
SCREEN(20,2l)
40
PRINT
A,B
Line
10
positions the cursor to
Row
20,
Column
20.
Line
20
prints the message
at
the current cursor position. Line
30
stores
the ASCII code
for
“R’
in the variable
A
and the ASCII code
for
“0”
in variable B. Line
40
prints:
82
79
302

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