summaryrefslogtreecommitdiff
path: root/ppu.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-21 14:06:43 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-21 14:06:43 +0200
commit19f119e49c91580f49bb02f86bb905a05ba90d6b (patch)
tree1fb671eb5bec6cd723e3708e0085280aee926547 /ppu.c
parent6321f071ed2ab36242e857a9414b7f4c53092d72 (diff)
back to 2560fps after wrangling the ppu_state into two cachelines
Diffstat (limited to 'ppu.c')
-rw-r--r--ppu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ppu.c b/ppu.c
index 7042b19..b34115c 100644
--- a/ppu.c
+++ b/ppu.c
@@ -397,6 +397,9 @@ 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++];
+
ppu->reg_status |= 0x80;
if(ppu->reg_ctrl & 0x80) {
state->nmi_pending = 1;