Re: [cc65] How to properly use a .union

From: Ullrich von Bassewitz <>
Date: 2013-01-22 15:04:15
On Tue, Jan 22, 2013 at 02:32:22PM +0200, thefox xofeht wrote:
>    Maybe Uz can comment on whether such a "compile-time indirection" feature
>    would be possible to implement, I too have hoped that it would be possible
>    at times. It seems to be possible in theory, but maybe I'm not seeing all
>    the repercussions.

It doesn't really fit into the usual 65xx assembler concepts. If you have

foo:    .byte   $00

then foo is something that lives in the CPU address space. You can execute it,
load it into a register, but since it lives in the memory of the target
system, you cannot load it within the assembler.

It is of course possible to add commands to access data stored in a memory
that is owned by the assembler. But for one, I'm currently not able to think
of a generic concept, because I have no idea, which scenarios are common. And
second, I would prefer to choose assembler constructs that cannot be confused
with the constructs used to access data in CPU memory.



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 22 15:04:22 2013

This archive was generated by hypermail 2.1.8 : 2013-01-22 15:04:26 CET