projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e79a419
)
Added support for INT 10h video adapter detection
author
Robert Pengelly
<robertapengelly@hotmail.com>
Tue, 20 Oct 2026 11:27:53 +0000
(12:27 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Tue, 20 Oct 2026 11:27:53 +0000
(12:27 +0100)
interrupts.c
patch
|
blob
|
history
diff --git
a/interrupts.c
b/interrupts.c
index 9712e1d3777ed8decd7e3061e318891c2885c0cd..e0dec09841cd6e38588b866688de0f41124d4b0a 100644
(file)
--- a/
interrupts.c
+++ b/
interrupts.c
@@
-8562,6
+8562,16
@@
static void int_10 (CPU8086 *cpu) {
set_reg8 (cpu, 4, (uint8_t) bios_video_columns);
break;
+ case 0x12: /* EGA/VGA alternate function select */
+
+ /* No EGA/VGA: leave BL=10h unchanged for EGA detection. */
+ break;
+
+ case 0x1A: /* VGA display combination code */
+
+ /* No VGA: leave AL unchanged instead of returning AL=1Ah. */
+ break;
+
default:
printf ("Unknown Video Function 0x%02X\n", ah);