1
0
Fork 0

fix bug in dyncore for STD/CLD+STI/CLI opcode combination (f15/f22 et al)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2648
This commit is contained in:
Sebastian Strohhäcker 2006-06-10 10:50:01 +00:00
parent 14456f435a
commit af5bb6abf3

View file

@ -1723,11 +1723,13 @@ restart_prefix:
case 0xf7:dyn_grp3_ev();break;
/* Change interrupt flag */
case 0xfa: //CLI
gen_releasereg(DREG(FLAGS));
gen_call_function((void *)&CPU_CLI,"%Rd",DREG(TMPB));
if (cpu.pmode) dyn_check_bool_exception(DREG(TMPB));
gen_releasereg(DREG(TMPB));
break;
case 0xfb: //STI
gen_releasereg(DREG(FLAGS));
gen_call_function((void *)&CPU_STI,"%Rd",DREG(TMPB));
if (cpu.pmode) dyn_check_bool_exception(DREG(TMPB));
gen_releasereg(DREG(TMPB));