projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57b00ee
)
Fix VGA write mode 1 latch copying
author
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 29 Oct 2026 10:06:16 +0000
(10:06 +0000)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Thu, 29 Oct 2026 10:06:16 +0000
(10:06 +0000)
memory.c
patch
|
blob
|
history
diff --git
a/memory.c
b/memory.c
index a8d962c66ee2ed6a653dfdfa4e9bdde6bbabf8d6..f6895f5d39ae96ef5fb9298b878594c505c79542 100644
(file)
--- a/
memory.c
+++ b/
memory.c
@@
-89,6
+89,13
@@
static void mem_vga_write (uint32_t addr, uint8_t value) {
continue;
}
+ if ((vga_cpu->vga_gc_registers[5] & 3) == 1) {
+
+ vga_planes[plane][offset] = vga_latches[plane];
+ continue;
+
+ }
+
if (vga_cpu->vga_gc_registers[1] & (1 << plane)) {
data = (vga_cpu->vga_gc_registers[0] & (1 << plane)) ? 0xFF : 0;
}