Intel i960 User Manual page 243

Processor compiler
Hide thumbs Also See for i960:
Table of Contents

Advertisement

7
7-54
i960 Processor Compiler User's Guide
Example 1: sf1 (Simple)
asm volatile ("mov
Example 2: sf1 (Complex)
asm volatile ("mov
"=&d" (old_mask) : "dI" (new_mask));
Example 3: emul
asm("emul %1,%2,%0" : "=t" (temp) : "dI" (in1), "dI" (in2));
Example 4: synmovq
__asm__ volatile ("synmovq %2,%3" : "=m"(*IAC_dst)
: "m"(*IAC_p),"d"(IAC_dst),"d"(IAC_p)); }
Example 5: attadd
__asm__
__volatile__("atadd
: "dI"(val),"m" (*p),"d"(p));
Example 6: modpc
__asm__
__volatile__("modpc
: "dI"(mask),"0"(new_pc)));
asm Statement Syntax
statements have the following syntax:
asm
asm [ volatile ] ( asm-template [ asm-interface ] ) ;
asm-template
substitution-directive
asm-interface
out-list
in-list
0,sf1");
sf1,%0; mov
%1,sf1":
%4,%2,%1" : "=m"(*p),"=d"(wtmp)
%1,%1,%0" : "=d"(new_pc)
A C language ASCII string containing
zero or more
substitution-
.
directives
where no white space follows the
%d
and
is a decimal digit.
d
:[out-list][:[in-
list][:clobber-list]]
output-spec [,out-list]...
input-spec [,in-list]...
,
%

Advertisement

Table of Contents
loading

Table of Contents