A89: placing data into C variables from ASM(" ") constructs


[Prev][Next][Index][Thread]

A89: placing data into C variables from ASM(" ") constructs





l can use the following code to put values into an ASM(" ") construct like 
this...
function(x)
int x;
{
move.w 8(%sp),%d0   // puts 'x' into d0
}

But how do l get values out of an asm construct? (like register d0 into 'x')
--TurboSoft

Visit the TURBOSOFT HOMEPAGE:  The most current Basic and C programs created 
by TurboSoft for the 89, and the most 89 web links.
<A HREF="http://turbosoft.ticalc.org/">http://turbosoft.ticalc.org/</A>


Follow-Ups: