From 90764706259dcd1b86fa6fca6ae0a01aff2cb9f6 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Thu, 29 Oct 2026 10:06:16 +0000 Subject: [PATCH] Fix VGA write mode 1 latch copying --- memory.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.34.1