Re: [cc65] size of .enum?

From: <>
Date: 2013-04-02 11:10:31
On 2013-04-02, at 10:32, Ullrich von Bassewitz wrote:

>>> Anyway, .res needs a constant, because the linker cannot change what is in an
>>> object file. Or in other words, the assembler cannot allocate a currently
>>> unknown number of bytes somewhere.
>> I understand. What do you believe to be the best approach in such situation,
>> except manual counting of all the defined variables every time?
> There is no other solution than to define a constant somewhere, so yes,
> manual counting is required. To make sure nothing goes wrong, I would place
> the constant into an include file and check it via .assert in the module that
> has the actual variables.

I see. I am wondering if I don't get better out with getting back to defining all the variables' addresses as constants.. I would then only have to know the value of the last one (first one is known).

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Apr 2 11:10:46 2013

This archive was generated by hypermail 2.1.8 : 2013-06-15 17:37:38 CEST