From c40f7421d8c1ccbe008dbd2191c6642625ae4b83 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Mon, 28 Apr 2025 18:27:17 +0200 Subject: before ppu rearrangement and fix of scanline 261 --- ppu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ppu.c') diff --git a/ppu.c b/ppu.c index b34115c..cd549d1 100644 --- a/ppu.c +++ b/ppu.c @@ -397,8 +397,8 @@ static void ppu_tick(struct nes_state *state) { } if(UNLIKELY(scanline == 241) && dot == 1) { - // static int32_t tas_frame = 0; - // state->input[0] = tas_input[tas_frame++]; + static int32_t tas_frame = 0; + state->input[0] = tas_input[tas_frame++]; ppu->reg_status |= 0x80; if(ppu->reg_ctrl & 0x80) { @@ -432,4 +432,3 @@ static void ppu_tick(struct nes_state *state) { ppu->scanline = scanline; } } - -- cgit v1.2.3