Handle INT 33h when no mouse driver is installed
authorRobert Pengelly <robertapengelly@hotmail.com>
Thu, 22 Oct 2026 19:44:49 +0000 (20:44 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Thu, 22 Oct 2026 19:44:49 +0000 (20:44 +0100)
interrupts.c

index 81c7336088e68b0929d8de593b266d20e9cefa96..3e5fe7425d8315d9bcb54488d4a3e45b31e3c440 100644 (file)
@@ -10948,6 +10948,9 @@ void init_ivt (CPU8086 *cpu) {
     
     }
     
+    /* No mouse driver is installed, so INT 33h must point to IRET. */
+    mem_write16 (cpu->mem, cpu->mem_size, 0x33 * 4, 0x33 * 4 + 2);
+    
     dos_long_paths = env_long_paths && strcmp (env_long_paths, "1") == 0;
     
     if (env_p) {