Epson TF-20 Reference Manual page 20

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

Advertisement

LIST
To output a program list to the specified file.
LIST <file descriptors [,[<line number>]
[-[<line number>]]]
LIST "B:TEST.ASC", 3 0 - 8 0
The function of LIST when followed by a file descriptor is the
same as ASCII format SAVE. When a string or string variable
is used to specify the file, it must always be enclosed by
double quotation marks.
LOAD
To load a program file into the memory.
LOAD [<file descriptor>[,R]]
LOAD "B:PROG1.ASC"
This command loads the program file specified by <file
descriptor> into the memory. When LOAD is executed, all
open files are closed and all current variables are deleted.
However, if the <R> option (i.e., load and run) is used with
LOAD, all open files are left open and the program is run
immediately after it is loaded.
If <file descriptor> is omitted, the first file of the default
device is loaded. LOAD retains the programs currently
residing in the memory until the specified file is found and
actual loading begins.
Before executing LOAD, use the STAT command to check
the area currently logged in.
Attempting to LOAD in an area which has been named by a
TITLE statement, will result in the occurrence of a PP
("Protected program") error.
(See SAVE.)
LOADM
To load a machine language program file into the memory-
LOADM [<file descriptor>][,[offset value][,R]]
LOADM "B:ABC"
The file to be loaded should be a machine language program
file created by the monitor function or the SAVEM command.
If <file descriptor> is omitted, the first file of the default
device is loaded.
<offset value> is added to the top address specified by the
SAVEM command and loading begins at the resulting
address.
If the <R> option is specified, after the machine language
subroutine is loaded into the memory, program execution
begins at <execution starting address> specified by the
SAVEM command. If <R> is not specified, the HX-20
returns to BASIC command level after the machine language
program has been loaded.
However, with a SAVEM command, the contents of the
memory can be created as a file. If <R> is used with a
LOADM command in a case other than machine language
program file, the CPU will interpret this file as a machine
language program file and will execute loading accordingly. If
this happens, the BASIC programs and RAM files may be
destroyed. Please be careful when specifying <R> option.
<offset value> cannot be specified when the machine
language subroutine is not relocatable, i.e., if it cannot be
executed when it is loaded at a location different from that at
which it was saved. However, as the CPU performs no check
to determine whether <offset value> is permitted or not
there may be cases in which a file is moved to a different
address by the <offset value> even though the file contains
the memory data.
With LOADM, "COM0:" cannot be specified as a device
name.
(See SAVEM.)

Advertisement

Table of Contents
loading

Table of Contents