1
0
Fork 0

enable interrupts when leaving int16/ax=1 as bios uses sti/retf2 (fixes Joust)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2723
This commit is contained in:
Sebastian Strohhäcker 2006-11-20 17:35:53 +00:00
parent af1673c6f2
commit 61fffb166e

View file

@ -505,6 +505,8 @@ static Bitu INT16_Handler(void) {
}
break;
case 0x01: /* CHECK FOR KEYSTROKE */
// enable interrupt-flag after IRET of this int16
mem_writew(SegPhys(ss)+reg_sp+4,(mem_readw(SegPhys(ss)+reg_sp+4) | FLAG_IF));
for (;;) {
if (check_key(temp)) {
if (!IsEnhancedKey(temp)) {