I'm pretty confused about how backgrounds work and am having trouble finding more information elsewhere, so I have a few questions about them.
1) This may not explicitly apply to backgrounds, but how do high/low latches work? As in
2) What are the specific purposes for each of the nametable addresses used like as shown above?
3) How can I add specific background tiles on specific coordinates on the screen instead of defining bytes for the entire row of the background (e.g. for a score)?
1) This may not explicitly apply to backgrounds, but how do high/low latches work? As in
Code:
LoadBackground:
LDA $2002 ; read PPU status to reset the high/low latch
LDA #$20
STA $2006 ; write the high byte of $2000 address
LDA #$00
STA $2006 ; write the low byte of $2000 address
LDX #$00
LDA $2002 ; read PPU status to reset the high/low latch
LDA #$20
STA $2006 ; write the high byte of $2000 address
LDA #$00
STA $2006 ; write the low byte of $2000 address
LDX #$00
2) What are the specific purposes for each of the nametable addresses used like as shown above?
3) How can I add specific background tiles on specific coordinates on the screen instead of defining bytes for the entire row of the background (e.g. for a score)?