Update CP1610.Execute.cs

FInally find the bug that Fixes Pac Man (and Ms Pac Man as well)
This commit is contained in:
alyosha-tas 2016-12-24 22:28:58 -05:00 committed by GitHub
parent 3ff1151171
commit 46586a7df9
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ namespace BizHawk.Emulation.Cores.Components.CP1610
else
{
// Double Byte Data.
value = (ushort)(ReadMemory(Register[mem]++) & 0xFF);
value = (ushort)(ReadMemory(Register[mem]) & 0xFF);
if (mem >= 4)
Register[mem]++;
value |= (ushort)(ReadMemory(Register[mem]) << 8);
}
// Auto-increment the memory register if it does so on write.