Handle VCPI installation check (INT 67h)
authorRobert Pengelly <robertapengelly@hotmail.com>
Thu, 22 Oct 2026 06:35:24 +0000 (07:35 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Thu, 22 Oct 2026 06:35:24 +0000 (07:35 +0100)
interrupts.c

index 9776193b5546c37d4c3d075bfa1c7a7f211f7bb8..81c7336088e68b0929d8de593b266d20e9cefa96 100644 (file)
@@ -11166,6 +11166,19 @@ void native_interrupt (CPU8086 *cpu, uint8_t interrupt_number) {
         
             int_2F (cpu);
             break;
+         
+        case 0x67:
+        
+            if (cpu->regs[REG_AX] == 0xDE00) {
+                cpu->regs[REG_AX] = 0x8400;
+            } else {
+            
+                printf ("Unhandled INT 67h Function: AX=0x%04X\n", cpu->regs[REG_AX]);
+                cpu->regs[REG_AX] = (uint16_t) ((cpu->regs[REG_AX] & 0x00FF) | 0x8400);
+            
+            }
+            
+            break;
         
         default: