O2Hawk: fix DJNZ, fixes kill the attacking aliens

This commit is contained in:
alyosha-tas 2020-04-17 22:09:23 -04:00
parent 8e7467f77b
commit 0d2daa24d5
1 changed files with 3 additions and 1 deletions

View File

@ -398,11 +398,13 @@ namespace BizHawk.Emulation.Cores.Components.I8048
}
else
{
// NOTE: no PC increment here, jump is relative to last 256 address block before increment.
// so for a DJNZ starting at 0xFE does not overflow to 0x100 before the jump
PopulateCURINSTR(IDLE,
IDLE,
DEC8, (ushort)(reg + RB),
RD, ALU, PC,
INC11, PC,
IDLE,
IDLE,
IDLE,
IDLE,