projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a528ba
)
Added BIOS keyboard shift status and DOS idle interrupt support
author
Robert Pengelly
<robertapengelly@hotmail.com>
Tue, 20 Oct 2026 18:39:43 +0000
(19:39 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Tue, 20 Oct 2026 18:39:43 +0000
(19:39 +0100)
interrupts.c
patch
|
blob
|
history
diff --git
a/interrupts.c
b/interrupts.c
index 7ee3b05762dc38c7b826316edab29b96d69ab619..90214bd48dc59526726239a75e1d071ffddeb864 100644
(file)
--- a/
interrupts.c
+++ b/
interrupts.c
@@
-9304,6
+9304,11
@@
static void int_16 (CPU8086 *cpu) {
break;
+ case 0x02: /* read keyboard shift flags */
+
+ set_reg8 (cpu, 0, mem_read8 (cpu->mem, cpu->mem_size, get_phys (0x0040, 0x0017)));
+ break;
+
default:
printf ("Unknown Keyboard Function 0x%02X\n", ah);
@@
-9622,6
+9627,11
@@
void native_interrupt (CPU8086 *cpu, uint8_t interrupt_number) {
int_23 (cpu);
break;
+ case 0x28:
+
+ /* DOS idle: without an installed handler, return immediately. */
+ break;
+
case 0x2F:
int_2F (cpu);