Sharp OZ-707 Operation Manual - Page 91

Load?

Page 91 highlights

LOAD o FORMAT: LOAD ["d:filename" [,R] ] 1ENTER I d: E,PACOM,CAS,COM Abbreviation: LOA. See Also: SAVE, CHAIN, MERGE, LOAD? PURPOSE: Loads a BASIC program. REMARKS: LOAD loads a program with the specified filename. An error occurs if the program area is exceeded as a result of loading of a program. In such a case, clear unnecessary variables from the data area. If program filenames have been displayed with the FILES command, r nthe desired program can be simply loaded by first choosing it with the or W key, then entering CD 1ENTER I. If all options are omitted, the program is loaded through the serial 1/0 port. The file extension may be omitted only it it is ".BAS". When the device name (d:) is PACOM, CAS, or COM, only ASCII code data is valid. If a load error occurs, a program written in intermediate format will not be loaded at all, but a program written in ASCII format is loaded to the line just before the line where the error occurred. Specify ",R" to run the program as soon as it is loaded. While a program is being loaded, all tiles are closed, and all values or variables specified for the USING, ON ERROR GOTO, WAIT, LOCATE, ERL, and ERN commands are cleared. 170 Up to 256 bytes of program code can be loaded at a time. An error occurs if no delimiter is encountered before loaded data exceeds 256 bytes. When a serial 1/0 device is used for loading, delimiters and the end-of-file code may be set with the OPEN command. (If no end-of-file 0 0 code was received, use the key to stop loading.) When a delimiter is received, the computer translates the loaded data into an intermediate format. An error occurs if a single line exceeds 256 bytes or the first character of a line is not a numeral (line number). LOAD? o FORMAT: LOAD? ["d:filename"] IENTER I d: E, PACOM, CAS, COM Abbreviation: LOA.? See Also: LOAD PURPOSE: Compares a program saved on a device with one stored in memory. REMARKS: LOAD? compares the program with the given filename with the one in memory. An error occurs if a mismatch was found during comparison. If all options are omitted, LOAD? compares the program read from the serial 110 port with the one in memory. The file extension may be omitted only if it is ".BAS". When the device name (d:) is PACOM, CAS, or COM, only ASCII format data is valid. Up to 256 bytes of program code can be loaded at a time. An error occurs if no delimiter is encountered before loaded data exceeds 256 bytes. When a serial 1/0 device is used for loading, delimiters and the end-ot-file code may be set with the OPEN command. (If no end-of-Iife 0 0 code was received, use the key to stop loading.) 171

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

LOAD
FORMAT:
LOAD ["d:filename" [,R] ]
1
ENTER
I
d:
E,PACOM,CAS,COM
Abbreviation:
LOA.
See
Also:
SAVE, CHAIN, MERGE, LOAD?
PURPOSE:
Loads a BASIC program.
REMARKS:
LOAD loads a program with the specified filename.
An
error occurs if
the program area
is
exceeded
as
a result of loading of a program.
In
such a case, clear unnecessary variables from the data area.
If program filenames have been displayed with the FILES command,
the desired program can be simply loaded by first choosing it with the
rn
or
W
key, then entering
CD
1
ENTER
I.
If all options are omitted, the program
is
loaded through the serial
1/0
port.
The file extension may be omitted only it
it
is
".BAS".
o
When the device name (d:) is PACOM, CAS, or COM, only ASCII code
data
is
valid.
If a load error occurs, a program written in intermediate format will not
be loaded at all, but a program written
in
ASCII format
is
loaded to the
line just before the line where the error occurred.
Specify ",R" to
run
the program as soon as it is loaded.
While a program is being loaded,
all
tiles are closed,
and
all values or
variables specified for the USING,
ON
ERROR GOTO, WAIT,
LOCATE, ERL,
and
ERN commands are cleared.
170
Up
to
256 bytes of program code can be loaded at a time.
An
error
occurs if
no
delimiter
is
encountered before loaded data exceeds 256
bytes.
When a serial
1/0
device is used for loading, delimiters and the
end-of-file code may
be
set with the OPEN command. (If
no
end-of-file
code was received, use the
00
key to stop loading.)
When a delimiter is received, the computer translates the loaded data
into
an
intermediate format. An error occurs if a single line exceeds
256 bytes or the first character of a line is not a numeral (line number).
LOAD?
FORMAT:
LOAD? ["d:filename"]
I
ENTER
I
d:
E,
PACOM, CAS, COM
Abbreviation:
LOA.?
See
Also:
LOAD
PURPOSE:
Compares a program saved on a device with one stored
in
memory.
REMARKS:
LOAD? compares the program with the given filename with the one
in
memory.
An
error occurs
if
a mismatch was found during comparison.
If all options are omitted, LOAD? compares the program
read
from the
serial
110
port with the
one
in
memory.
The file extension may
be
omitted only if it
is
".BAS".
When the device name
(d:)
is
PACOM, CAS, or COM, only ASCII
format data is valid.
Up
to
256 bytes of program code can be loaded at a time.
An
error
occurs if
no
delimiter
is
encountered before loaded data exceeds 256
bytes.
When a serial
1/0
device
is
used for loading, delimiters and the
end-ot-file code may be set with the OPEN command. (If
no
end-of-Iife
code was received, use the
00
key to stop loading.)
171
o