i960 Processor Compiler User's Guide
7-56
7
Generally, this fixed string is the body of the desired assembler
instruction. This can be any instruction valid for the current i960
architecture.
NOTE. The validity of the assembly code is not checked by the compiler.
substitution-directive
substitution-directive
%d where no white space follows the %,
and
d is a decimal digit.
The character
% occurring in the
asm-template
specifies where to
substitute operands into the assembly instruction. The
% followed by a
digit
n
says to insert operand
n
at that point in the string. Operands are
specified in the asm's
output-specs
and
input-specs
. Operands are
numbered 0 through 9. No more than 10 operands can be specified.
asm-interface
asm-interface
:[
out-list
][:[
in-list
][:
clobber-list
]]
The asm interface consists of three parts: an optional
out-list
, an
optional
in-list
, and an optional
clobber-list
. These are separated
by colon characters (
:). See the preceding discussion of Resource Usage
for background information on the
asm-interface
specification.
: (colon)
The colon (:) character is used to separate the
out-list
and
in-list
.
Another colon is used to separate the
clobber-list
if one is used. If the
out-list
is missing, but an
in-list
is given, the input list must be
preceded by two colons (
::) to take the place of the missing
out-list
.
out-list
out-list output-spec
[,
out-list
]...
An
out-list
consists of one or more
output-specs
separated by
commas. For the purposes of substitution in the
asm-template
, each