PPU: Fixed vblank flag timing for 239-line mode
This commit is contained in:
parent
a018f1129a
commit
bcb74aae40
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ uint8_t InternalRegisters::Read(uint16_t addr)
|
||||||
|
|
||||||
case 0x4212: {
|
case 0x4212: {
|
||||||
PpuState state = _console->GetPpu()->GetState();
|
PpuState state = _console->GetPpu()->GetState();
|
||||||
uint32_t vblankStart = state.OverscanMode ? 241 : 225;
|
uint32_t vblankStart = state.OverscanMode ? 240 : 225;
|
||||||
//TODO TIMING (set/clear timing)
|
//TODO TIMING (set/clear timing)
|
||||||
return (
|
return (
|
||||||
(state.Scanline >= vblankStart ? 0x80 : 0) |
|
(state.Scanline >= vblankStart ? 0x80 : 0) |
|
||||||
|
|
Loading…
Add table
Reference in a new issue