Run; Save - Epson TF-20 Reference Manual

Hx-20 disk basic
Hide thumbs Also See for TF-20:
Table of Contents

Advertisement

Sample Programs
(Direct mode)
CLOSE
(replace the disk)
RESET
(Program mode)
100 CLOSE
110 PRINT "REPLACE DISK
AND PRESS ANY KEY"
110 H$=INPUT$(I)

RUN

To start program execution
RUN <file descriptor>[,R]
RUN "B:TEST"
When this command is input, the program specified by <file
descriptor> is loaded into the memory and then program
execution begins
For a disk file, if the device name is omitted, "A " is
assumed
Execution of a RUN command clears all variables and closes
all open files before loading the designated program
However, if the <R> option is used with this command, all
data files remain OPEN
Before executing a RUN command, use a STAT command to
check the program area currently logged in.
4-26

SAVE

SAVE "B:PRG",A
If the A option is specified, BASIC will save the program in
ASCII format Otherwise, the program will be saved in
compressed binary format ASCII format requires more time
and memory but is required when inputting files with the
MERGE command The A option is also used when the
program saved is to be used as data
The <V> option may be used when a microcassette
recorder is being used as an auxiliary memory In this case,
after the SAVE is executed, the tape will automatically be
rewound to the beginning of the program and program
verification (CRC check) will be performed If <device>
other than the microcassette recorder is specified, the <V>
option will be ignored
If the P option is specified, Disk BASIC will save the program
in coded binary format When a program that has been
protected in this way is loaded, any attempt to execute a
LIST or SAVE command, or to edit the program, will result in
a PP error The P option is effective for devices other than
the disk However, if a protect saved program is loaded
when Disk BASIC has not been booted, it will be loaded in
code and execution will not be possible
(See LOAD)
4-27

Advertisement

Table of Contents
loading

Table of Contents