Radio Shack TRS-80 Model 100 Basic Manual page 26

Basic language lab
Hide thumbs Also See for TRS-80 Model 100:
Table of Contents

Advertisement

If you press (ENTER), several things will happen: the computer enters BASIC and then
loads and executes PROG1.BA. You will see
THIS IS A TEST
OF THE MODEk
1~~
COMPUTER
AND ITS ABILITY TO STORE FILES
Ok
with the Ok prompt indicating that you are in BASIC.
If
you list the program you will
see that PROGl.BA is in working memory.
Experiment #3 Changing a Filename
It is possible to change a file name using the command:
NAME "old filename. extension " AS "new filename. extension"
where old filename is the name of the program as it now exists, and new filename is
the. new program name you wish to assign to it.
For example, if you wish to change the filename "PROG1" to "TEST!," typc:
NAME "PROG 1 • BA" AS "TEST 1 • BA" (ENTER)
Verify the name change with the FILES command or by pressing CEf).
Now, using the NAME... AS command, change the file name back to "PROGl."
NAME "TEST1.BA" AS "PROG1.BA"
~
Again, you may confirm that the name was changed to PROGI with the FILES
command.
Experiment #4 Saving a Program on Cassette
While it is convenient to save your programs in RAM, there is only a finite amount of
space available. Eventually, there will be no room left for new programs to be saved.
An alternate method of saving your files is to store them on cassette tapes using a
cassette recorder. Using cassettes, you can store essentially an unlimited number of
programs.
20

Advertisement

Table of Contents
loading

Table of Contents