IBM 5100 Basic Reference Manual page 20

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

16
A LOAD nonzero entry specifies that a saved file is to be loaded from tape into the
work area. Any previous contents of the work area (except the keys files) are
destroyed when the file type is specified as BASIC, Df-TA, or SOURCE. If the
new file type is a KEYx file; the new key file is added to the work area without
altering existing work area. If the KEYS/KEYx files already exist in storage, the
loaded KEYS/KEYx files will replace the old ones. A copy of the saved file is
loaded into the work area, and the following information is displayed:
User specified file identification (if any)
• Number of contiguous 1,024-byte areas of storage in the file
• Number of contiguous 1 ,024-byte areas of unused storage in the file
First line number (for BASIC or SOURCE)
Last line number (for BASIC or SOURCE)
• KEYx numbers (for KEYx file types)
• Amount of unassigned work area remaining (in bytes)
If the new file type is KEYx, the new key file is added to the work area. If corre-
sponding KEYx files already exist in storage, they are replaced by the new keys.
For example, if a new KEY6 function is loaded from tape, it will replace the existing
KEY6 function.
Notes About LOAD
File type KEYS (load all keys functions within the specified file) is invalid when
the file number is zero (LOADO).
File type SOURCE (load a program in user source format from the specified
saved file) is invalid when loading from the keyboard (LOADO).
• When loading a general exchange (type 02) file, SOURCE is assumed unless
DATA is specified. This file type is used primarily for the Communications
feature. Also see
Negative File Numbers
in Chapter 4.
If file type is omitted, BASIC is assumed .if loading from the keyboard, and
BASIC or SOURCE is assumed if loading from a saved file (depending on the
type of file). In the latter instance, if the type of file is not BASIC or SOURCE,
an error message is displayed.
• The format for entering data after a LOA DO, DATA is identical to data in a
DATA statement. LOADO, DATA also provides automatic line numbering and
the keyword DATA for each line. The display shows:
0010 DATA
./
'-
/
!
i
"'
.....

Advertisement

Table of Contents
loading

Table of Contents