summaryrefslogtreecommitdiff
path: root/ppu.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-02 23:15:47 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-02 23:15:47 +0200
commit5808f00555c48e1cc1cc110af6a5cd73ddf13010 (patch)
treedff942b61441bafe297e7a99f0e799f32ae978b1 /ppu.c
parent9463faa436e1b981ef72000568445a83682f2658 (diff)
cleanup and rewrite of ppu_registers.c
Diffstat (limited to 'ppu.c')
-rw-r--r--ppu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppu.c b/ppu.c
index 48ccbfc..6b57085 100644
--- a/ppu.c
+++ b/ppu.c
@@ -400,7 +400,7 @@ static void ppu_tick(struct nes_state *state) {
ppu->reg_status |= 0x80;
if(ppu->reg_ctrl & 0x80) {
- state->nmi_pending = 1;
+ state->cpu.nmi_pending = 1;
}
}