From 228dbf3e13591698906f0e4fca2b4cb2c0bf167f Mon Sep 17 00:00:00 2001 From: cracyc Date: Sat, 22 Nov 2025 09:22:33 -0600 Subject: ega: invert color don't care and make mode 1 work in the debugger --- src/devices/bus/isa/ega.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/bus/isa/ega.cpp b/src/devices/bus/isa/ega.cpp index 24144580aab..492f4f19278 100644 --- a/src/devices/bus/isa/ega.cpp +++ b/src/devices/bus/isa/ega.cpp @@ -969,7 +969,7 @@ uint8_t isa8_ega_device::read(offs_t offset) { uint8_t data = 0xFF; - if ( !machine().side_effects_disabled() && !( m_graphics_controller.data[5] & 0x10 ) ) + if ( !machine().side_effects_disabled() ) { /* Fill read latches */ m_read_latch[0] = m_plane[0][offset & 0xffff]; @@ -987,9 +987,9 @@ uint8_t isa8_ega_device::read(offs_t offset) int bit = 1; for ( int p = 0; p < 4; p++ ) { - if ( !BIT(m_graphics_controller.data[7], p) ) + if ( BIT(m_graphics_controller.data[7], p) ) { - if ( BIT(m_graphics_controller.data[2], p) != BIT(m_read_latch[p], i) ) + if ( BIT(m_graphics_controller.data[2], p) != BIT(m_plane[p][offset & 0xffff], i) ) { bit = 0; break; -- cgit v1.2.3