From e1c3153b8e85b55260b10977c697293db1a3b7af Mon Sep 17 00:00:00 2001 From: Troy Schrapel Date: Sat, 16 Sep 2023 11:04:48 +0930 Subject: [PATCH] Only set interrupt flag when interrupts enabled --- src/vrEmuTms9918.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrEmuTms9918.c b/src/vrEmuTms9918.c index 2f8e3d7..685e2f3 100644 --- a/src/vrEmuTms9918.c +++ b/src/vrEmuTms9918.c @@ -695,7 +695,7 @@ VR_EMU_TMS9918_DLLEXPORT void __time_critical_func(vrEmuTms9918ScanLine)(VrEmuTm break; } - if (y == TMS9918_PIXELS_Y - 1) + if (y == TMS9918_PIXELS_Y - 1 && (tms9918->registers[1] & TMS_R1_INT_ENABLE)) { tms9918->status |= STATUS_INT; }