mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
core md, assert z80 vint for complete scanline
This commit is contained in:
parent
a0abaf2ada
commit
d97d056c46
2 changed files with 25 additions and 21 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue