Implement INT 21h AH=1Eh CP/M compatibility function
authorRobert Pengelly <robertapengelly@hotmail.com>
Thu, 29 Oct 2026 11:31:57 +0000 (11:31 +0000)
committerRobert Pengelly <robertapengelly@hotmail.com>
Thu, 29 Oct 2026 11:31:57 +0000 (11:31 +0000)
interrupts.c

index 1a425aa93acb3581727f487812fb60e19d292a4e..79a268280b922e0799e7b804ee8edbd5f20a1f70 100644 (file)
@@ -6883,6 +6883,15 @@ static void int_21 (CPU8086 *cpu) {
         
         }
         
+        case 0x1E: {                    /* Null Function for CP/M Compatibility */
+        
+            set_reg8 (cpu, REG_AX, 0x00);
+            cpu->flags &= ~FLAG_CF;
+            
+            break;
+        
+        }
+        
         case 0x25: {                    /* Set Interrupt Vector */
         
             uint8_t int_num = cpu->regs[REG_AX] & 0x00FF;   /* AL */