Hi everyone,
I need to transfer a 16x16 tile using a TIMP logical operator BUT the color zero is the white color in my palette, and I need to preserve that color in the result. A simple TIMP transfer won't do, since with that operator :
if SC=0 then DC=DC else DC=SC
I thought of making first an AND logical transfer and then a TIMP one. The first AND command would transfer the white color (since any color AND 0 would result in 0), and the second TIMP command would transfer the rest of the colors except the white.
The only problem is that with that solution I need to have two different backgrounds. A background color 'F' for the AND command (to preserve all colors in the result), and a background color '0' for the TIMP transfer (for the same reason). I do not have the space for doubling the tiles in VRAM, so that's not a viable solution.
Apart from redefining the 0 color (which I have already considered, but it's a real pain in the ass), do you see a simpler solution ?
Thanks.