diff options
Diffstat (limited to 'src/devices/bus/tanbus/ravdu.cpp')
-rw-r--r-- | src/devices/bus/tanbus/ravdu.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/devices/bus/tanbus/ravdu.cpp b/src/devices/bus/tanbus/ravdu.cpp index b93b1a41c35..2a20e14cbe5 100644 --- a/src/devices/bus/tanbus/ravdu.cpp +++ b/src/devices/bus/tanbus/ravdu.cpp @@ -168,7 +168,9 @@ MC6845_UPDATE_ROW(tanbus_ravdu_device::crtc_update_row) for (int column = 0; column < x_count; column++) { - m_trom->write(m_videoram[(ma + column) & 0x7ff]); + uint8_t code = m_videoram[(ma + column) & 0x7ff]; + + m_trom->write(code); m_trom->f1_w(1); m_trom->f1_w(0); @@ -178,7 +180,9 @@ MC6845_UPDATE_ROW(tanbus_ravdu_device::crtc_update_row) m_trom->tr6_w(1); m_trom->tr6_w(0); - int const col = m_trom->get_rgb() ^ ((column == cursor_x) ? 7 : 0); + int col = m_trom->get_rgb() ^ ((column == cursor_x) ? 7 : 0); + + if (BIT(code, 7)) col ^= 0x07; int const r = BIT(col, 0) * 0xff; int const g = BIT(col, 1) * 0xff; @@ -189,7 +193,7 @@ MC6845_UPDATE_ROW(tanbus_ravdu_device::crtc_update_row) } } -WRITE_LINE_MEMBER(tanbus_ravdu_device::vsync_changed) +void tanbus_ravdu_device::vsync_changed(int state) { m_trom->dew_w(state); } |