diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-04-07 19:47:27 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-04-07 19:47:27 +0200 |
| commit | d45fbf8d2e1adcb35043dfc9e06eae3ccfdf596e (patch) | |
| tree | c450bc97b2b0e767150e07db745328944dcd1041 /ppu_registers.c | |
| parent | 5409798e800b6deb5d5874401a2925d1e18d8bd3 (diff) | |
cleanup and optimization tests, unfortunately nothing great.
Diffstat (limited to 'ppu_registers.c')
| -rw-r--r-- | ppu_registers.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ppu_registers.c b/ppu_registers.c index bd85cd8..dd8c7fa 100644 --- a/ppu_registers.c +++ b/ppu_registers.c @@ -19,8 +19,7 @@ static inline void ppu_write(struct nes_state *state, uint32_t offset, uint8_t v } break; case 4: { // 2004 - ppu->oam[ppu->oam_addr] = value; - ppu->oam_addr++; + ppu->oam[ppu->oam_addr++] = value; } break; case 5: { // 2005 @@ -83,7 +82,6 @@ static inline uint8_t ppu_read(struct nes_state *state, uint32_t offset) { case 7: { // 2007 uint32_t addr = ppu->vram_addr & 0x3fff; - result = 0; if(addr < 0x2000) { result = ppu->vram_read_buffer; |
