projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b41e7
)
Implement individual VGA DAC palette register writes
author
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 29 Oct 2026 22:33:58 +0000
(22:33 +0000)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 29 Oct 2026 22:33:58 +0000
(22:33 +0000)
interrupts.c
patch
|
blob
|
history
diff --git
a/interrupts.c
b/interrupts.c
index 10d441eb7d31131d8a2838a8c7b37936893314fa..4add6a03547a0fb84d6bc5d9d78b2d100be23355 100644
(file)
--- a/
interrupts.c
+++ b/
interrupts.c
@@
-11555,6
+11555,24
@@
static void int_10 (CPU8086 *cpu) {
}
+ if (get_reg8 (cpu, 0) == 0x10) {
+
+ unsigned index = cpu->regs[REG_BX];
+
+ if (index < 256) {
+
+ cpu->vga_dac_palette[index][0] = (uint8_t) (cpu->regs[REG_DX] >> 8) & 0x3F;
+ cpu->vga_dac_palette[index][1] = (uint8_t) (cpu->regs[REG_CX] >> 8) & 0x3F;
+ cpu->vga_dac_palette[index][2] = (uint8_t) cpu->regs[REG_CX] & 0x3F;
+
+ mem_video_dirty |= 4;
+
+ }
+
+ break;
+
+ }
+
if (get_reg8 (cpu, 0) == 0x12 || get_reg8 (cpu, 0) == 0x17) {
unsigned i, component;