From: kub Date: Thu, 27 Feb 2020 20:19:37 +0000 (+0100) Subject: fix for VINT while DMA is running X-Git-Tag: v2.00~778 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=478a1164fe286a036ba0b61ab64aeb225952465a;p=picodrive.git fix for VINT while DMA is running --- 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); }