mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
core, fix cpu sync regression
This commit is contained in:
parent
043ccbf45f
commit
2c4675a993
1 changed files with 7 additions and 3 deletions
|
@ -118,8 +118,7 @@ static int PicoFrameHints(void)
|
||||||
// === active display ===
|
// === active display ===
|
||||||
pv->status |= PVS_ACTIVE;
|
pv->status |= PVS_ACTIVE;
|
||||||
|
|
||||||
lines_vis = (pv->reg[1] & 8) ? 240 : 224;
|
for (y = 0; ; y++)
|
||||||
for (y = 0; y < lines_vis; y++)
|
|
||||||
{
|
{
|
||||||
pv->v_counter = Pico.m.scanline = y;
|
pv->v_counter = Pico.m.scanline = y;
|
||||||
if ((pv->reg[12]&6) == 6) { // interlace mode 2
|
if ((pv->reg[12]&6) == 6) { // interlace mode 2
|
||||||
|
@ -128,6 +127,9 @@ static int PicoFrameHints(void)
|
||||||
pv->v_counter &= 0xff;
|
pv->v_counter &= 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (y == (pv->reg[1] & 8 ? 240 : 224))
|
||||||
|
break;
|
||||||
|
|
||||||
PAD_DELAY();
|
PAD_DELAY();
|
||||||
|
|
||||||
// H-Interrupts:
|
// H-Interrupts:
|
||||||
|
@ -175,7 +177,9 @@ static int PicoFrameHints(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// === VBLANK, 1st line ===
|
// === VBLANK, 1st line ===
|
||||||
pv->status &= ~PVS_ACTIVE;
|
lines_vis = (pv->reg[1] & 8) ? 240 : 224;
|
||||||
|
if (y == lines_vis)
|
||||||
|
pv->status &= ~PVS_ACTIVE;
|
||||||
|
|
||||||
memcpy(PicoIn.padInt, PicoIn.pad, sizeof(PicoIn.padInt));
|
memcpy(PicoIn.padInt, PicoIn.pad, sizeof(PicoIn.padInt));
|
||||||
PAD_DELAY();
|
PAD_DELAY();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue