Intel AEDIT-86 Life Jacket User Manual


 
AEDIT
-86 User's Guide
Ad
••
nced AEDIT -86 Usage
SHP
(CTRL-R)
SMP
NUM
°
2
3
4
5
6
7
Display
the
current
position in
the
line.
On-line
calculator.
In
INSERT
or
XCHANGE
modes you
may
enter
an arithmetic expression. Press
(CTRL-R)
and
the
result is displayed
at
the
cursor
position.
Set
the indentation and left and right
margins
according to
the
values for
the
paragraph
in which
the
cursor
is
currently
positioned.
Insert
line
number
prefix on each line in a text
file.
The
macro
uses
Tag
D for
internal
computations.
Set
paragraph
with indentation 0, left
margin
0, right
margin
70
Set
paragraph
with indentation 0, left
margin
3, right
margin
70
Set
paragraph
with indentation 3, left
margin
3,
right
margin
70
Set
paragraph
with indentation
3, left
margin
5,
right
margin
70
Set
paragraph
with indentation
5, left
margin
5, right
margin
70
Set
paragraph
with indentation 5, left
margin
7, right
margin
70
Set
paragraph
with indentation 7, left
margin
7.
right
margin
70
8.2
Tips
for
Writing Macros
The
techniques described in
this
section
are
very useful within macros. These
techniques will help you
to
understand
the
macros
in
USEFUL.MAC
and
to write
your
own sophisticated macros.
8.2.1 Send
Text
to
the
Message Line
Sending a message
to
the
message line
is
done using the
CALC
command
with
an
expression,
rather
than
an assignment
statement,
as
the
argument.
As
stated
in
Chapter
7,
when
the
argument
is an expression, its value
is
output
to
the
message
line
eve!)
if
it
is
executed within a macro.
Suppose, for example,
that
N9
contains
the
current
line
number.
and you want
to
output
this value, with
an
appropriate title, to the message line.
This
is
done as follows:
C(ALC)
N9=expr
C(ALC)
S9="current
line:
(FETN)
9"
C(ALC)
S9
or
in
macro
form:
...
CN9=
expr \
NLCS9="current
line: \
XN9"
\
NLCS9
\
NL
\
MM
8-3