core md, assert z80 vint for complete scanline

This commit is contained in:
kub 2024-02-20 22:05:33 +01:00
parent a0abaf2ada
commit d97d056c46
2 changed files with 25 additions and 21 deletions

View file

@ -250,9 +250,10 @@ static int PicoFrameHints(void)
SekInterrupt(6);
}
if (Pico.m.z80Run && !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80)) {
// assert Z80 interrupt for one scanline even in busrq hold (Teddy Blues)
if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80)) {
elprintf(EL_INTS, "zint");
z80_int();
z80_int_assert(1);
}
// Run scanline:
@ -262,6 +263,10 @@ static int PicoFrameHints(void)
if (PicoLineHook) PicoLineHook();
pevt_log_m68k_o(EVT_NEXT_LINE);
if (Pico.m.z80Run && !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80))
PicoSyncZ80(Pico.t.m68c_aim);
z80_int_assert(0);
// === VBLANK ===
lines = Pico.m.pal ? 313 : 262;
for (y++; y < lines - 1; y++)