1
0
Fork 0

Enable interrupt flag after call 0x11 as well. Thanks ripsaw. Fixes a Korean game

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3802
This commit is contained in:
Peter Veenstra 2012-11-14 13:22:04 +00:00
parent 23323c97ef
commit e93bc1e558

View file

@ -514,7 +514,7 @@ 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));
CALLBACK_SIF(true);
for (;;) {
if (check_key(temp)) {
if (!IsEnhancedKey(temp)) {
@ -535,6 +535,8 @@ static Bitu INT16_Handler(void) {
}
break;
case 0x11: /* CHECK FOR KEYSTROKE (enhanced keyboards only) */
// enable interrupt-flag after IRET of this int16
CALLBACK_SIF(true);
if (!check_key(temp)) {
CALLBACK_SZF(true);
} else {