EasyManua.ls Logo

Radio Shack TRS-80 Model 100 - Page 32

Radio Shack TRS-80 Model 100
210 pages
Print Icon
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...
The program will now be saved
in
RAM
in
"ASCII"
format, rather than the usual
"compressed" format. This means that the program will be saved exactly
as
it
was
written. Ordinarily, programs are saved in compressed form.
In
compressed form, key
words such
as
PRINT, are replaced by a single character
to
conserve storage space.
Type the following command:
SAVE
"PROG2"
tA
(ENTER)
The
"A"
following the name indicates that the program
is
to
be
saved in ASCll
mode.
Another way of saving a program in ASCII format, is
to
use the extension .DO
as
part
of the SAVE command. For example,
to
SAVE PROG2 in this way you could type:
SAVE
"PROG2.00"
CEJIIER)
Delete the program from working memory with the NEW command.
Confirm that it has been saved in RAM with the FILES command.
PROG2 will be listed
as:
PROG2.00
The extension
"DO"
(for DOcument) will be attached
to
any BASIC program saved
with the ASCII option. There are several reasons why you might want
to
save a file
in
the ASCII format. As it will be illustrated later in this experiment, merging files is
one of the main ones.
Delete the program from working memory with the NEW command, and type the
following one line program.
S
PR
I
NT
"HELLO
MODEL
100
USER"
(ENTER)
Merge PROG2, which is saved in RAM with the ASCII option, with this one line
program, by typing the command:
MERGE
"PROG2"
(ENTER)
List the program in working memory
to
confirm that it
is
S
PRINT
"HELLO
MODEL
100
USER"
10
PRINT
"THIS
IS
A
TEST"
20
PRINT
"OF
THE
MODEL
100
COMPUTER"
30
PRINT
"AND
ITS
ABILITY
TO
STORE
FILES"
Merging a program
in
working memory with one that
has
been saved
in
RAM, can
only be done
if
the program
in
RAM was saved with the A (ASCll) option.
Delete lines 20 and 30 by entering just the line numbers and then rewrite line
10
as
follows:
10
PR
I
NT
"HERE I S A MESSAGE
FOR
YOU"
(ENTER)
26

Other manuals for Radio Shack TRS-80 Model 100

Related product manuals