diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-05-03 01:00:10 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-05-03 01:00:10 +0200 |
| commit | 8ed5a368077388c676a4ef27cca9f3a58d91e484 (patch) | |
| tree | 7e96f35ac933fe97a69c2a8f66f8c22f7a9beb6a /ppu.c | |
| parent | 5808f00555c48e1cc1cc110af6a5cd73ddf13010 (diff) | |
cleanup and rewrite of memory_read()
Diffstat (limited to 'ppu.c')
| -rw-r--r-- | ppu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |
