mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
core vdp, fix status reading synchronisation
This commit is contained in:
parent
364be97d1b
commit
72c2a04a9d
1 changed files with 5 additions and 4 deletions
|
@ -984,14 +984,15 @@ static u32 VideoSr(const struct PicoVideo *pv)
|
|||
{
|
||||
unsigned int hp = pv->reg[12]&1 ? hboff40*488/slots40 : hboff32*488/slots32;
|
||||
unsigned int hl = pv->reg[12]&1 ? hblen40*488/slots40 : hblen32*488/slots32;
|
||||
unsigned int c;
|
||||
u32 d = (u16)pv->status;
|
||||
unsigned int c = SekCyclesDone() - Pico.t.m68c_line_start;
|
||||
u32 d;
|
||||
|
||||
PicoVideoFIFOSync(c);
|
||||
d = (u16)pv->status;
|
||||
|
||||
c = SekCyclesDone() - Pico.t.m68c_line_start;
|
||||
if (c - hp < hl)
|
||||
d |= SR_HB;
|
||||
|
||||
PicoVideoFIFOSync(c);
|
||||
if (VdpFIFO.fifo_total >= 4)
|
||||
d |= SR_FULL;
|
||||
else if (!VdpFIFO.fifo_total)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue