Re: [cc65] .EXPORT of numeric constant

From: Ullrich von Bassewitz <>
Date: 2013-01-15 09:24:13

On Tue, Jan 15, 2013 at 01:27:03AM +0100, wrote:
> Just double-checking as I believe this is actually correct behaviour and
> othing is being done to distinguish between numeric stuff that is never
> used as address reference and actual addresses, right?

The linker tries to be smart about stuff where the value is know. So in

        .export foo
        foo = 42

foo is exported as bytes sized value, while in

        .export bar
        bar = 42*42

bar is exported as word sized.

If you know better than the linker, just tell it. In

        .export foo : abs
        foo = 42

foo is exported as word sized despite being less than 256.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 15 09:24:25 2013

This archive was generated by hypermail 2.1.8 : 2013-01-15 09:24:31 CET