O2Hawk: fix collision detection

This commit is contained in:
alyosha-tas 2020-04-17 18:52:45 -04:00
parent 0e7e93b205
commit 8e7467f77b
1 changed files with 5 additions and 3 deletions
BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2

View File

@ -98,8 +98,11 @@ namespace BizHawk.Emulation.Cores.Consoles.O2Hawk
ret |= VDC_col_ret[i];
}
}
//Console.WriteLine("col: " + ret + " " + Core.cpu.TotalExecutedCycles);
// register is reset when read
for (int i = 0; i < 8; i++) { VDC_col_ret[i] = 0; }
//Console.WriteLine("col: " + ret + " " + LY + " " + Core.cpu.TotalExecutedCycles);
}
else if (addr == 0xA3)
{
@ -346,7 +349,6 @@ namespace BizHawk.Emulation.Cores.Consoles.O2Hawk
Core.in_vblank = false;
Core.cpu.T1 = false;
if (Core.is_pal) { Core.cpu.IRQPending = false; }
for (int i = 0; i < 8; i++) { VDC_col_ret[i] = 0; }
LY_ret = 0;
}