View Single Post
Old 19 April 2024, 19:06   #15
KONEY
OctaMED Music Composer
 
KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 672
Quote:
Originally Posted by Photon View Post
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
KONEY is offline  
 
Page generated in 0.04476 seconds with 11 queries