From 4641faa5caa3b121a7e7198532969ffcf35294b5 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 14 Feb 2005 16:06:15 +0000 Subject: [PATCH] Added handler for port 3c8 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2110 --- src/hardware/vga_dac.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hardware/vga_dac.cpp b/src/hardware/vga_dac.cpp index 26465d4d..c5181059 100644 --- a/src/hardware/vga_dac.cpp +++ b/src/hardware/vga_dac.cpp @@ -80,6 +80,10 @@ static void write_p3c8(Bitu port,Bitu val,Bitu iolen) { vga.dac.state=DAC_WRITE; } +static Bitu read_p3c8(Bitu port, Bitu iolen){ + return vga.dac.write_index; +} + static void write_p3c9(Bitu port,Bitu val,Bitu iolen) { val&=0x3f; switch (vga.dac.pel_index) { @@ -187,10 +191,9 @@ void VGA_SetupDAC(void) { IO_RegisterReadHandler(0x3c6,read_p3c6,IO_MB); IO_RegisterWriteHandler(0x3c7,write_p3c7,IO_MB); IO_RegisterReadHandler(0x3c7,read_p3c7,IO_MB); + IO_RegisterReadHandler(0x3c8,read_p3c8,IO_MB); IO_RegisterWriteHandler(0x3c8,write_p3c8,IO_MB); IO_RegisterWriteHandler(0x3c9,write_p3c9,IO_MB); IO_RegisterReadHandler(0x3c9,read_p3c9,IO_MB); } }; - -