IOP: VBlank handler small fix

This commit is contained in:
Robert Neumann 2018-06-28 18:08:10 +02:00
parent 7761ec5584
commit f41e5da94b
1 changed files with 2 additions and 2 deletions

View File

@ -415,14 +415,14 @@ static void psxCheckEndGate32(int i)
void psxVBlankStart() void psxVBlankStart()
{ {
cdvdVsync(); cdvdVsync();
psxHu32(0x1070) |= 1; iopIntcIrq(0);
if(psxvblankgate & (1 << 1)) psxCheckStartGate16(1); if(psxvblankgate & (1 << 1)) psxCheckStartGate16(1);
if(psxvblankgate & (1 << 3)) psxCheckStartGate32(3); if(psxvblankgate & (1 << 3)) psxCheckStartGate32(3);
} }
void psxVBlankEnd() void psxVBlankEnd()
{ {
psxHu32(0x1070) |= 0x800; iopIntcIrq(11);
if(psxvblankgate & (1 << 1)) psxCheckEndGate16(1); if(psxvblankgate & (1 << 1)) psxCheckEndGate16(1);
if(psxvblankgate & (1 << 3)) psxCheckEndGate32(3); if(psxvblankgate & (1 << 3)) psxCheckEndGate32(3);
} }