summaryrefslogtreecommitdiff
path: root/ppu.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-03 01:00:10 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-03 01:00:10 +0200
commit8ed5a368077388c676a4ef27cca9f3a58d91e484 (patch)
tree7e96f35ac933fe97a69c2a8f66f8c22f7a9beb6a /ppu.c
parent5808f00555c48e1cc1cc110af6a5cd73ddf13010 (diff)
cleanup and rewrite of memory_read()
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) {