diff options
Diffstat (limited to 'mknes_ppu_registers.c')
| -rw-r--r-- | mknes_ppu_registers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mknes_ppu_registers.c b/mknes_ppu_registers.c index a7aa351..b66f7e5 100644 --- a/mknes_ppu_registers.c +++ b/mknes_ppu_registers.c @@ -65,7 +65,7 @@ static inline void ppu_write(struct nes_state *state, uint32_t offset, uint8_t v } break; } - ppu->vram_addr += (ppu->reg_ctrl & 0x04) ? 32 : 1; + ppu->vram_addr += (ppu->reg_ctrl & PPU_CTRL_VRAM_INCREMENT) ? 32 : 1; } break; } @@ -84,7 +84,7 @@ static inline uint8_t ppu_read(struct nes_state *state, uint32_t offset) { case 2: { result &= 0x1f; result |= ppu->reg_status & 0xe0; - ppu->reg_status &= ~0x80; + ppu->reg_status &= ~PPU_STATUS_VBLANK; ppu->write_latch = 0; } break; @@ -118,7 +118,7 @@ static inline uint8_t ppu_read(struct nes_state *state, uint32_t offset) { } - ppu->vram_addr += (ppu->reg_ctrl & 0x04) ? 32 : 1; + ppu->vram_addr += (ppu->reg_ctrl & PPU_CTRL_VRAM_INCREMENT) ? 32 : 1; } break; } |
