Re: [cc65] macro arguments

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-12-29 21:54:46
On Thu, Dec 29, 2005 at 09:07:24PM +0100, silverdr@inet.com.pl wrote:
> after a longer break I downloaded and compiled the 20051221 snapshot
> of the cc65 and started porting some of my code to ca65. What I
> noticed is that I can't have macro arguments being named with a
> single letter or the assembler complains about trailing garbage. The
> docs don't seem to mention this limitation in the .MACRO section. Is
> that a bug or a feature?

The following single letter identifiers are reserved keywords: a, x and y. If
they weren't, the following could not be parsed without conflicts:

        a:      .byte   0
                lsr     a       ; Shift what?

Other single letter identifiers should be usable without problems.

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 Thu Dec 29 21:55:01 2005

This archive was generated by hypermail 2.1.8 : 2005-12-29 21:55:03 CET