Intel AEDIT-86 Life Jacket User Manual


 
AEDIT
-86 Variables
AEDIT
-86 User's Guide
6-2
Under
the
CALC
command. The variable may be retrieved as
in
any line-edit
prompt.
Also,
the
variable
name
may
be used as is, e.g., N I
instead
of
<
FETN
) I. In this case the name, rather than the value,
is
displayed, e.g., N I
instead
of
45. The entire processing is done
by
the
CALC
command, not by the
line-editing mechanism. A variable may
be
modified only
if
it appears in
CALC
with its name on the left-hand side
of
an assignment statement.
When the
(FETN)
key
is
pressed, the message
(FETN)
appears on the
message line. This message disappears when the next key
is
pressed.
6.1.2
Global String Variables
The
two groups
of
global string-variables (S-variables)
are-
Read-write string variables
Read-only string variables
Read-Write String Variables
The
ten read-write variables are SO-S9. Value assignment
is
done only
in
the
CALC
command. When AEDIT-86
is
invoked, these variables are initialized to a
nul1
string.
Read-Only String Variables
The
following
is
an alphabetic list
of
the read-only variables. No assignment of values
is
allowed.
SB Up to 60 characters
of
the Block buffer.
By
using SB, a portion of the
text file may be used later as, for example, an argument
in
a
FIND
command.
SE
The name
of
the current edited file (as opposed to the secondary file).
SG
The name
of
the last file specified
in
the
GET
command.
SI The name
of
the main input file.
SM
The name
of
the last file specified for the
MACRO
Get command.
SO
The name
of
the
OTHER
input file.
SP
The name
of
the last file specified for the BLOCK Put command.
SR
The replacement string of
(?)REPLACE.
ST
The target string
of
(-)FIND
and
(?)REPLACE.
SW
The name
of
the last file specified
in
the
QUIT
Write command.
Using String Variables
To
fetch the value
of
a string variable, type
(FETS)
x,
(FETS)
is
the
·<fetch
string" key (usually configured to
(CTRL-S»,
and where x
is
a digit
(0-9)
or a
letter appearing as the second letter
in
a name
in
the above list (e.g.,
B,
E, G). For
example,
(FETS)
7 fetches the value of S7, and
(FETS)
G fetches the value of
SG. An S-variable contains a string
of
0-60
characters.