Re: [cc65] assembly subroutine return value

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-07-30 08:52:45
On Thu, Jul 29, 2004 at 06:23:50PM -0400, Greg King wrote:
> Is it supposed to be
>
>  asm("ldy %o", ret);
>
> or
>
>  asm("ldy #%o", ret);
>
> (does "%o" supply the "#")?

You are right! The '#' is missing. The %o does not supply the '#', so the
correct statement is

        asm ("ldy #%o", ret);

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 08:52:48 2004

This archive was generated by hypermail 2.1.8 : 2004-07-30 08:52:57 CEST