Re: [cc65] ca65 - addressing/exporting .STRUCT

From: <silverdr1wfmh.org.pl>
Date: 2013-03-02 13:57:15
On 2013-03-02, at 13:14, silverdr@wfmh.org.pl wrote:

> I have a table stored in a .STRUCT, where I want to access the first byte of this table but don't want to reference the first member because the order of the members is likely to change.
> 
> Can a .STRUCT base address somehow be used (I get undefined symbol error when trying) without referencing members?

Similar problem with .EXPORTING.

Since documentation explicitly says in .PROC: "... adds a symbol with this name to the enclosing scope", nothing like that is in the .STRUCT section.

While I seem to have worked around (need to test yet) the problem of addressing the beginning of the struct by adding a label with the same name as the struct, I don't see a way around the fact that without proper exporting/importing I can't access the struct and its members from other parts/files of the project. Any suggestions except dropping the (nice feature of) .struct from the codebase?

-- 
SD!----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Mar 2 13:57:27 2013

This archive was generated by hypermail 2.1.8 : 2013-03-02 13:57:31 CET