From 478a1164fe286a036ba0b61ab64aeb225952465a Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 27 Feb 2020 21:19:37 +0100 Subject: [PATCH] fix for VINT while DMA is running --- pico/pico_cmn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pico/pico_cmn.c b/pico/pico_cmn.c index 75389840..50a632ca 100644 --- a/pico/pico_cmn.c +++ b/pico/pico_cmn.c @@ -191,7 +191,8 @@ static int PicoFrameHints(void) pv->status |= SR_F; pv->pending_ints |= 0x20; if (pv->reg[1] & 0x20) { - SekExecM68k(11); // HACK + if (Pico.t.m68c_cnt - Pico.t.m68c_aim < 60) // CPU blocked? + SekExecM68k(11); // HACK elprintf(EL_INTS, "vint: @ %06x [%u]", SekPc, SekCyclesDone()); SekInterrupt(6); } -- 2.39.2