PPU: Fixed recent regression with the "cycle" calculation
This commit is contained in:
parent
f113392bc5
commit
c89bc248c3
1 changed files with 2 additions and 2 deletions
|
@ -106,9 +106,9 @@ uint16_t Ppu::GetCycle()
|
|||
if(hClock <= 1292) {
|
||||
return hClock >> 2;
|
||||
} else if(hClock <= 1310) {
|
||||
return (hClock >> 2) + 1;
|
||||
return (hClock - 2) >> 2;
|
||||
} else {
|
||||
return (hClock >> 2) + 2;
|
||||
return (hClock - 4) >> 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue