54
8.58.
.list
Control (in conjunction with the
These two directives maintain an internal counter (which is zero initially).
counter, and
.nolist
than zero.
By default, listings are disabled. When you enable them (with the
3 Command-Line Options), the initial value of the listing counter is one.
8.59.
.long
expressions
is the same as
.long
8.60.
.macro
The commands
.macro
example, this definition specifies a macro
.macro
.long
.if
sum
.endif
.endm
With that definition,
.long
.long
.long
.long
.long
.long
.macro
macname
.macro
macname macargs
Begin the definition of a macro called
specify their names after the macro name, separated by commas or spaces. You can supply a
default value for any macro argument by following the name with
are all valid
.macro
.macro comm
Begin the definition of a macro called
.macro plus1 p, p1
.macro plus1 p p1
Either statement begins the definition of a macro called
within the macro definition, write
.nolist
decrements it. Assembly listings are generated whenever the counter is greater
, Section 8.48
.int
and
allow you to define macros that generate assembly output. For
.endm
sum from=0, to=5
\from
\to-\from
"(\from+1)",\to
is equivalent to this assembly input:
SUM 0,5
0
1
2
3
4
5
...
statements:
directive) whether or not assembly listings are generated.
.
.int
expressions
that puts a sequence of numbers into memory:
sum
. If your macro definition requires arguments,
macname
, which takes no arguments.
comm
or
to evaluate the arguments.
\p
\p1
Chapter 8. Assembler Directives
.list
command line option; Chapter
-a
. For example, these
=
deflt
, which takes two arguments;
plus1
increments the