EasyManua.ls Logo

Intel i960 - Page 263

Intel i960
347 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i960 Processor Compiler User's Guide
7-74
7
Ensuring that the last control line unconditionally matches any call
context. Unless the final control line in the
asm function definition
contains nothing but an
error or call control, the compiler adds a
final control line containing a
call control, as follows:
%call
function
;
The default
function
for a call control is an external function of the
same name as the
asm function. The last control line is the only one
that unconditionally matches any call context.
Comparing the call context to each control line, in sequence from
beginning to end of the
asm function definition. The compiler
expands the template of the first control line that exactly matches the
call context. Tables 7-3 and 7-4 show how the call context and
parameter classes can match.
If no control line exactly matches the call context, attempting to
coerce the call context into one of the control lines, starting at the end
of the
asm function and working back to the beginning.
A
ldconst instruction coerces a constant argument into a
register.
A
movr instruction coerces a floating-point literal argument into a
register.
A
ld instruction coerces a memory argument into a register.
A
mov instruction coerces a general-register argument into a
temporary variable.
A
movr, movrl, or movre instruction coerces an argument that is
not a floating-point register or literal into a floating-point register
and coerces an argument that is a floating-point register or literal
into a general register.
Expanding the last control line if no control line exactly matches the
call context and the call context cannot be coerced into the last
conditional control line.

Table of Contents

Related product manuals