Sharp OZ-707 Operation Manual - Page 61

CHR$ &H5A

Page 61 highlights

CHAIN p FORMAT: 1. CHAIN 2. CHAIN lid: filename"[, {~~~~mber}] d: E, PACOM,CAS, COM Abbreviation: CHA. See Also: LOAD, MERGE PURPOSE: Loads and starts, from within one program, another program that has been stored on the specified device. REMARKS: To use CHAIN , the specified program must be present on the specified device. The currently running program is cleared from memory at the point where a CHAIN command is encountered and the specified program is loaded and started. Entering the CHAIN statement at the end of each program will continue to load programs automatically. An error will occur if the program becomes too large for the program area as a result of programs loaded by the CHAIN command. . Format 1 is for use only with tape and loads the first stored program from tape and starts it from the lowest line number in the program. The effect is the same as having entered LOAD "CAS:" and RUN in the RUN mode. Format 2 searches the specified device for the program indicated by "filename", loads it, and starts it at the specified line number or * Iabel, or the lowest line number if omitted. Note: A file is automatically opened when executing the CHAIN command. If the device name is specified as PACOM, CAS, or COM , files for that device must be closed. EXAMPLE: CHAIN "E:PR01", 100 Searches the RAM disk for a program named PR01 , loads it and begins execution with line number 100. 110 CHR$ - P D FORMA T: CHR$ expression Abbreviation: CH. See Also: ASC PURPOSE: Returns the character that corresponds to the numeric character code of the parameter. REMARKS: Shee Appendix B for a chart of character codes and their relationship to c aracters, e.g., CHR$ 65 is "A". A hexadecimal number can be specified with "&H" in front of the character code (eg. A$ = CHR$ &H5A) A value greater than 255 generates an error. 111

  • 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

CHAIN
FORMAT:
1.
CHAIN
2.
CHAIN
lid:
filename"
[,
{~~~~mber}]
d:
E,
PACOM,CAS, COM
Abbreviation:
CHA.
See
Also:
LOAD, MERGE
PURPOSE:
Loads and starts, from within one program, another program that has
been stored
on
the specified device.
REMARKS:
p
To use CHAIN, the specified program must be present on the specified
device. The currently running program is cleared from memory at the
point where a CHAIN command
is
encountered and the specified
program
is
loaded and started. Entering the CHAIN statement at the
end of each program will continue to load programs automatically.
An
error will occur if the program becomes too large for the program area
as a result of programs loaded by the CHAIN command.
.
Format 1
is
for use only with tape and loads the first stored program
from tape and starts it from the lowest line number
in
the program. The
effect is the same as having entered LOAD "CAS
:"
and RUN
in
the
RUN mode.
Format 2 searches the specified device for the program indicated by
"filename", loads it, and starts
it
at the specified line number or * Iabel,
or the lowest line number if omitted.
Note:
A file
is
automatically opened when executing the CHAIN command. If
the device name
is
specified
as
PACOM, CAS, or COM, files for that
device must be closed.
EXAMPLE:
CHAIN "E:
PR01"
, 100
Searches the
RAM
disk for a program named PR01 , loads it and begins execution with
line number
100.
110
CHR$
FORMA
T:
CHR$ expression
Abbreviation:
CH.
See Also:
ASC
PURPOSE:
Returns the character that corresponds to the numeric character code
of the parameter.
REMARKS:
Sh
ee
Appendix B for a chart of character codes and their relationship
to
c aracters, e.g., CHR$ 65 is "A".
A hexadecimal number can be specified with "&H"
in
front of the
character code
(eg
.
A$
=
CHR$ &H5A)
A value greater than 255 generates
an
error.
111
-
P
D