diff options
| author | 2025-11-22 09:22:33 -0600 | |
|---|---|---|
| committer | 2025-11-22 09:22:33 -0600 | |
| commit | 228dbf3e13591698906f0e4fca2b4cb2c0bf167f (patch) | |
| tree | 66bf16ad3e8bbc8399e085f6879c6f8cb9462603 | |
| parent | 24711081dc5cd887fd49d512359101d03fc8b08d (diff) | |
ega: invert color don't care and make mode 1 work in the debugger
| -rw-r--r-- | src/devices/bus/isa/ega.cpp | 6 |
1 files 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; |
