Quote:
Originally Posted by Photon
List of pros and cons:
And finally, if the Copper list and screen buffer are in the same (Chip) SECTION, you can have the Assembler poke it for you at assembly time, as a/b shows. If you get errors, just put parentheses around and limit each calculation to 16-bit (&$ffff).
|
Thanks Photon! Copperlist and buffer are in same SECTION so I'm trying this suggestion. But any combination of parentheses and limits leads to an "illegal relocation" error, at least with Vasm. Am I missing something?
Tried all these:
Code:
SECTION ChipData,DATA_C
COPPER:
DC.W $E0,(COPPER)&$ffff
DC.W $E0,(COPPER&$ffff)
DC.W $E0,(COPPER>>16&$ffff)
DC.W $E0,(COPPER>>16)&$ffff
DC.W $E0,COPPER&$ffff
DC.W $E0,COPPER>>16
DC.W $E0,COPPER>>16&$ffff