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


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

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




Try the following:

move.w %d0,8(%sp)

>From: TurboSoft@aol.com
>Reply-To: assembly-89@lists.ticalc.org
>To: assembly-89@lists.ticalc.org, assembly-92@lists.ticalc.org
>Subject: A89: placing data into C variables from ASM(" ") constructs
>Date: Tue, 12 Oct 1999 22:00:10 EDT
>
>
>
>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>
>
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com