Working on a new project from the ground up, coming along nicely, but i'm at a point where I have to alter the attribute table when certain sections of the bg need to be changed to a specific palette.
I already know how to set a 16x16 grid to whichever palette Id like, the problem I'm having, is how do I set the bit within the attribute table?
What I have going on, is depending on the specific position, i'll load up a table that contains values meant as bits. For instance, i'll load up a byte as the value (30). What I need to do from here, is use that value 30 as (..21 ....) and alter the specific address within the attribute table.
I know I cant simply take that 30 and store it to the attribute address, that's no good.
I tried doing as much on my own from memory as I could, but bits have reared its ugly self again, heh. Thanks for reading, hope I can get this situated fast.
I already know how to set a 16x16 grid to whichever palette Id like, the problem I'm having, is how do I set the bit within the attribute table?
What I have going on, is depending on the specific position, i'll load up a table that contains values meant as bits. For instance, i'll load up a byte as the value (30). What I need to do from here, is use that value 30 as (..21 ....) and alter the specific address within the attribute table.
I know I cant simply take that 30 and store it to the attribute address, that's no good.
I tried doing as much on my own from memory as I could, but bits have reared its ugly self again, heh. Thanks for reading, hope I can get this situated fast.