I am working on a little project where I enter text on a screen kind of like a high score entry. I am storing the letters as a variable (will use astring once I get it working) then updated the background to show what is displayed in the variable in a particular location.
This was causing a glitch where the screen would display off center. I eventually fixed is by using
Other than the above there isn't any scrolling at all involved in the code and I never write to $2005. So our of curiosity, why do I need to tell the PPU not to scroll even though I am not scrolling during the code?
at the end of the NMI. So the question is, why do I need to tell the PPU not to scroll at the end of the NMI even
Code:
LDA #$20 ; set to beginning of first nametable
STA $2006
LDA #$e1
STA $2006
LDA tempval
STA $2007
STA $2006
LDA #$e1
STA $2006
LDA tempval
STA $2007
This was causing a glitch where the screen would display off center. I eventually fixed is by using
Quote:
LDA #00
STA $2005
LDA #00
STA $2005
STA $2005
LDA #00
STA $2005
Other than the above there isn't any scrolling at all involved in the code and I never write to $2005. So our of curiosity, why do I need to tell the PPU not to scroll even though I am not scrolling during the code?
at the end of the NMI. So the question is, why do I need to tell the PPU not to scroll at the end of the NMI even