I'm writing a test nes program to better understand the nes itself. I have already one tile, which draws ok to the screen. I played a bit with the attribute tables to understand them. Now I have a few question.
First, when writing to both attribute tables, table #1 seems to have priorty over #0, but when I only write to table #0, that has priorty. Is this correct?
Secondly, when scrolling, I first read $2002(I think), and then write to $2005. I believe this is more of an offset(i.e. setting $2005 for the horizontal to 5, then(after reading $2002 again) setting it to 6 results in it being offset by 6, not 11). But when I constantly increment the offset(i.e. inx stx $2005), the screen does scroll, but the tile(s) get funky. Except for in Nesticle, which is inaccurate, to my understanding.
What am I doing wrong with this, what do I need to do, and why?
Thank you for the time and effort, and I apoligize if this is a frequent noob question.
First, when writing to both attribute tables, table #1 seems to have priorty over #0, but when I only write to table #0, that has priorty. Is this correct?
Secondly, when scrolling, I first read $2002(I think), and then write to $2005. I believe this is more of an offset(i.e. setting $2005 for the horizontal to 5, then(after reading $2002 again) setting it to 6 results in it being offset by 6, not 11). But when I constantly increment the offset(i.e. inx stx $2005), the screen does scroll, but the tile(s) get funky. Except for in Nesticle, which is inaccurate, to my understanding.
What am I doing wrong with this, what do I need to do, and why?
Thank you for the time and effort, and I apoligize if this is a frequent noob question.