Skip to content

Commit a4f9c9f

Browse files
committed
msword 4 checks int 10/fa returns something for mouse detection
1 parent a0b0783 commit a4f9c9f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

msdos.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9902,6 +9902,13 @@ inline void pcbios_int_10h_efh()
99029902
CPU_DX = 0xffff;
99039903
}
99049904

9905+
inline void pcbios_int_10h_fah()
9906+
{
9907+
// just return something, used for mouse driver detection
9908+
CPU_LOAD_SREG(CPU_ES_INDEX, 0xffff);
9909+
CPU_BX = 0x0005;
9910+
}
9911+
99059912
inline void pcbios_int_10h_feh()
99069913
{
99079914
if(mem[0x449] == 0x03 || mem[0x449] == 0x70 || mem[0x449] == 0x71 || mem[0x449] == 0x73) {
@@ -19852,7 +19859,7 @@ void msdos_syscall(unsigned num)
1985219859
case 0x92: break;
1985319860
case 0x93: break;
1985419861
case 0xef: pcbios_int_10h_efh(); break;
19855-
case 0xfa: break; // ega register interface library is not installed
19862+
case 0xfa: pcbios_int_10h_fah(); break;
1985619863
case 0xfe: pcbios_int_10h_feh(); break;
1985719864
case 0xff: pcbios_int_10h_ffh(); break;
1985819865
default:

0 commit comments

Comments
 (0)