Fixed the HLT instruction on 286+ and Intel Flash aliasing.

This commit is contained in:
OBattler
2020-01-21 01:23:35 +01:00
parent 2f5ba40367
commit 7506b4667e
3 changed files with 9 additions and 4 deletions

View File

@@ -615,7 +615,8 @@ static int opHLT(uint32_t fetchdat)
if (!((cpu_state.flags & I_FLAG) && pic_intpending))
{
CLOCK_CYCLES_ALWAYS(100);
cpu_state.pc--;
if (!((cpu_state.flags & I_FLAG) && pic_intpending))
cpu_state.pc--;
}
else
CLOCK_CYCLES(5);