Re: [cc65] assembly subroutine return value

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-07-29 18:50:09
--- Ullrich von Bassewitz <uz@musoftware.de> wrote:

> 
> On Thu, Jul 29, 2004 at 08:48:47AM -0700, Shawn
> Jefferson wrote:
> > Is the following correct code to get that put into
> a
> > local variable called "ret" ?
> >
> > asm("jsr $C812");
> > asm("ldy %o", ret);
> > asm("sta (sp),y");
> 
> Yes, that should be ok, provided that ret is an auto
> variable (one on the
> stack).

Aren't all local variables put on the stack?

--
Shawn Jefferson



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 29 18:50:21 2004

This archive was generated by hypermail 2.1.8 : 2004-07-29 18:50:29 CEST