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 #46 background imageLoading...
Page #46 background image
Chapter
51
Basic
Concepts
Data
Data is information on which BASIC performs its operations.
Data can be numbers, characters,
or
symbols. BASIC classifies
data into two groups: string and numeric.
String
data
is
a sequence
of
ASCII characters, graphics or non-
ASCII symbols. A string can be a maximum of 255 characters.
If
the string is entered
on
a program
or
command line,
it
must
be enclosed in quotation marks (see “Constants” later in this
section). If the string
is
entered in response
to
a prompt, it is not
enclosed in quotation marks. BASIC does not evaluate string
data;
it
simply stores it for the program
to
use
or
manipulate.
Hint:
ASCII stands for American Standard Code for
Information Interchange. In ASCII, each character has
a unique number that represents it. This is necessary
since computers understand and process only numbers.
Here are some sample strings:
“~1~37
“MAIN STREET” “255 CENTRAL AVE”
“25 dollars” “$250” “2
+
4”
Notice that numbers can be in a string. Remember, BASIC does
not evaluate strings. Type the following line at BASIC’s prompt:
PRINT
“2
+
4”
BASIC does not add 2 and
4.
It
obeys the command PRINT and
displays
2
+
4
on your screen.
Strings use
3
bytes
of
memory plus the number of characters in
the string. For example, the string “CATS” takes up 7 bytes
of
memory:
4
for the string plus 3.
Numeric
data consists
of
positive and negative numbers. BASIC
divides numeric data into 5 groups: integer, single precision,
double precision, hexadecimal, and octal.
Integers
are whole numbers in the range -32768
to
+32767 that
do not contain a decimal point. For example:
1
3200 -2 500 -12345
Integers use the least amount of memory
(2
bytes). Because they
use less memory, BASIC can access them fastest.
44

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