On the NEC V20/V30, REP string instructions with segment override move IP back one further byte on a hardware interrupt, fixes V20 detection on HWiNFO16.

This commit is contained in:
OBattler
2022-11-03 01:04:21 +01:00
parent 19d6fcec24
commit 2a2276dbee

View File

@@ -1084,7 +1084,10 @@ rep_action(int bits)
if (irq_pending() && (repeating != 0)) {
access(71, bits);
pfq_clear();
set_ip(cpu_state.pc - 2);
if (is_nec && (ovr_seg != NULL))
set_ip(cpu_state.pc - 3);
else
set_ip(cpu_state.pc - 2);
t = 0;
}
if (t == 0) {