Re: [cc65] assembly subroutine return value

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-07-30 04:06:01
--- Greg King <gngking@erols.com> wrote:

> > > asm("jsr $C812");
> > > asm("ldy %o", ret);
> > > asm("sta (sp),y");

> Is it supposed to be

>  asm("ldy #%o", ret);
> 
> (does "%o" supply the "#")?

Thank you!  You need the pound sign.  I even looked
over the code multiple times and didn't clue in.  I
thought the routine I was calling was doing something
wierd.

Now the listing looks right!

--
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 Fri Jul 30 04:06:06 2004

This archive was generated by hypermail 2.1.8 : 2004-07-30 04:06:15 CEST