A92: Re: placing data into C variables from ASM(" ") constructs
[Prev][Next][Index][Thread]
A92: Re: 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')
That is part of the ASM(" ") construct/statement. There are some (three?)
arguments after the quoted assembler. One of them is how you get a return
value for the ASM statement. It should be in the docs.
Hope this helps.
====
Aaron Hill (Redmond, Wash.)
Electronic Mail: serac@lightmail.com
IRC Nickname: serac (on EF-Net)
ActiveWorlds Citizenship: serac
References: