From: Robert Pengelly Date: Thu, 29 Oct 2026 10:06:16 +0000 (+0000) Subject: Fix VGA write mode 1 latch copying X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=90764706259dcd1b86fa6fca6ae0a01aff2cb9f6;p=dosemu.git Fix VGA write mode 1 latch copying --- diff --git a/memory.c b/memory.c index a8d962c..f6895f5 100644 --- 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; }