Skip to content

Commit

Permalink
Only set interrupt flag when interrupts enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
visrealm committed Sep 16, 2023
1 parent 612b821 commit e1c3153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vrEmuTms9918.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e1c3153

Please sign in to comment.