Radio Shack TRS-80 Model 100 Basic Manual page 34

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

Advertisement

Then, to merge a program in working memory with one stored on tape, use the
command:
MERGE "CAS:PROG2" CEtll'EB)
Once you have MERGEd PROG2 with the program in working memory, SAVE the
newly formed program in the conventional way (without the A option) using the
SAVE "PROG1" command.
If you return to the Main Menu by pressing
~,
you will see the two programs that
have been SAVEd:
22,1983 Wed
11:~1:52
(C)Microsoft
TEXT
TEL COM
ADDRSS
PROG1.BA
PROG2.BA
.
.-
·
-
-
·
.-
-
·
-
_
.
·
.....
-
·
-
..
- ·
-
.-
·
._
.
- ·
--.
-.
·
-
--
·
._.
..
-
·
_.
...
·
.-
-
·
--
_
.
·
.
-
--
·
.-
._-
·
..
-
Se lec:t
:
2fZJ8t:,<:1
:B~tes
Experiment #8 Deleting a file from RAM
Often times you'll need to eliminate files and programs that are no longer useful, or
that you have SAVEd on tape to free additional memory space.
You can delete a file from the RAM storage area with the KILL command. The
general form of the KILL command is :
KILL "filename. extension"
where filename is the name of the program you wish to delete, and extension specifies
the characters .BA, in the case of a BASIC program, .DO, in the case of a program
SAVEd with the A option or a text document, and .CO, in the case of a machine
language program.
Use the KILL command to delete PROG1 from RAM:
KILL "PROG 1 • BA" CENTER)
The prompt Ok and the blinking cursor will appear on the Display after the program
has been deleted.
Use the FILES command (or (fj)) to list the files in RAM storage. You will notice
that PROGl.BA is no longer listed. This is because the program has been deleted
from RAM.
To summarize, the KILL command deletes a file from RAM storage. The NEW
command deletes a program from working memory, but does not affect the file in
RAM storage.
28

Advertisement

Table of Contents
loading

Table of Contents