EasyManua.ls Logo

Radio Shack TRS-80 Model 100 - Page 124

Radio Shack TRS-80 Model 100
210 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
Loading...
Execute the program and it will display the alphabet in lower case:
abcdefghijklrnnopqrstuvwxwz
Ok
There are quite a few other characters which
can
be displayed in a similar manner.
Change line 10 to
10
FOR
I = 0
TO
255
~
and execute it. You should hear a beep, see the display clear and finally see several
lines
of
characters displayed. Notice that the upper and lower case letters, the digits
(0-9) and all the punctuation (comma, period, etc.) are displayed along with many
other special characters (copyright symbol, graphics, and other language characters).
Not all
of
the ASCII values correspond to characters which can be displayed. Some
of
them are control codes which perform different functions, such
as
line feed, carriage
return, sound, clear the screen and so on. For a complete list
of
ASCII values, refer to
the Appendix in your Model
100
Owner's
Manual.
Delete the current program from memory with the
NEW
command and type the
following program:
10
INPUT
"ASCI I
VALUE";A
20
PRINT
CHR$(A)
30
GOTO
10
Execute the program and enter an ASCII value
of
7 when prompted to do so. You
should hear a beep. This is because the program prints CHR$(7), and the ASCII value
of
7 corresponds to the sound function. The program contains a loop back to line 10,
so you will be prompted to enter another ASCII value. Enter a value
of
12 and the
display will clear. Enter a value
of
132 and the graphics character:
for a racing car will display. Enter a value
of
172 and the fraction:
114
will be displayed. Experiment on
your
own
with other ASCII values. You will have to
press
~
to terminate execution
of
the program.
118

Other manuals for Radio Shack TRS-80 Model 100

Related product manuals