Re: [cc65] .macro related error

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2013-03-17 22:44:02
On Sun, Mar 17, 2013 at 07:04:40PM +0100, silverdr@wfmh.org.pl wrote:
> But when I invoke the same macro without parentheses, it seem to compile
> fine. What is the problem with parentheses here? Or is it the combination
> with .enum? causing troubles?

.macro doesn't use parenthesis for parameters. So what happens is that
"(LOADING_DRIVERS" is passed as first and "msg_status_loading_drivers)" as
second argument. After replacement, you get stuff like

        ldx     #(LOADING_DRIVERS

which leads to the "`)' expected" error message.

Just leave of the parens and you're fine.

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 Sun Mar 17 22:44:10 2013

This archive was generated by hypermail 2.1.8 : 2013-03-17 22:44:14 CET