summaryrefslogtreecommitdiff
path: root/ppu.c
diff options
context:
space:
mode:
Diffstat (limited to 'ppu.c')
-rw-r--r--ppu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ppu.c b/ppu.c
index 6b57085..fe54be5 100644
--- a/ppu.c
+++ b/ppu.c
@@ -192,6 +192,7 @@ static void ppu_tick(struct nes_state *state) {
if((ppu->vram_addr & 0x7000) != 0x7000) {
ppu->vram_addr += 0x1000;
} else {
+
ppu->vram_addr &= ~0x7000;
uint32_t y = (ppu->vram_addr & 0x03e0) >> 5;
if(y == 29) {