From 0112bac2074ad6b2743ee8070782696cf2a3cd48 Mon Sep 17 00:00:00 2001 From: arbee Date: Thu, 20 Apr 2023 20:19:41 -0400 Subject: maciici/maciisi: support the video on/off bit. [R. Belmont] --- src/mame/apple/rbv.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mame/apple/rbv.cpp b/src/mame/apple/rbv.cpp index fa84c75f7c3..d7bdf34d138 100644 --- a/src/mame/apple/rbv.cpp +++ b/src/mame/apple/rbv.cpp @@ -119,6 +119,8 @@ void rbv_device::device_reset() m_pseudovia_regs[3] = 0; m_pseudovia_ier = 0; m_pseudovia_ifr = 0; + + m_pseudovia_regs[0x10] = 0x40; // video off } void rbv_device::set_ram_info(u32 *ram, u32 size) @@ -282,7 +284,6 @@ void rbv_device::pseudovia_w(offs_t offset, uint8_t data) switch (offset) { case 0x02: - printf("PV: %02x to offset 2\n", data); m_pseudovia_regs[offset] |= (data & 0x40); pseudovia_recalc_irqs(); break; @@ -437,6 +438,13 @@ u32 rbv_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const break; } + // video disabled? + if (m_pseudovia_regs[0x10] & 0x40) + { + bitmap.fill(0, cliprect); + return 0; + } + const pen_t *pens = m_palette->pens(); switch (m_pseudovia_regs[0x10] & 7) -- cgit v1.2.3