Re: [cc65] .EXPORT

From: <>
Date: 2013-01-01 16:40:53
On 2012-12-31, at 18:04, thefox xofeht wrote:

>> 11.38 .EXPORT
>> Make symbols accessible from other modules. Must be followed by a comma separated list of symbols to export, with each one *optionally* followed by an address specification [...]
>> preferences.s(52): Error: Address size specifier expected
>> preferences.s(53): Error: Unexpected trailing garbage characters
>> [...]
>> Is that a bug or feature? ;-)
> I think it is a feature. In this case, "address specification" means
> something like this:
> .export foo : abs

I understand but I thought it should be "optional" as per documentation, rather than "expected" as per reality.

> But you *can* get the behavior you want by doing this:
> .export foo := *
> Your mileage may vary on whether that is easy enough.

:-) Adding three chars at the end of the line seems easy enough and much better than splitting the lines and repeating oneself with all the (sometimes really long) label names. This will do the trick for now, thank you!

Although I am still not convinced why shouldn't it work the way I thought it would..

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 1 16:41:04 2013

This archive was generated by hypermail 2.1.8 : 2013-01-01 16:41:08 CET