From a445d1cc63e1ec0e23306b88248ebf41a0f97b04 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 3 Jan 2019 19:59:18 +0100 Subject: [PATCH] sm510: added bs1 pin blinking (nw) --- src/devices/cpu/sm510/sm510base.cpp | 4 ++-- src/mame/drivers/hh_sm510.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/cpu/sm510/sm510base.cpp b/src/devices/cpu/sm510/sm510base.cpp index b3bef1d67b7..919fcea9e17 100644 --- a/src/devices/cpu/sm510/sm510base.cpp +++ b/src/devices/cpu/sm510/sm510base.cpp @@ -15,7 +15,6 @@ TODO: - source organiziation between files is a mess - - LCD bs pin blink mode via Y register (0.5s off, 0.5s on) - wake up after CEND doesn't work right for more, see the *core.cpp file notes @@ -200,7 +199,8 @@ void sm510_base_device::lcd_update() m_write_segs(h | SM510_PORT_SEGC, get_lcd_row(h, m_lcd_ram_c), 0xffff); // bs output from L/X and Y regs - u8 bs = (m_l >> h & 1) | ((m_x*2) >> h & 2); + u8 blink = (m_div & 0x4000) ? m_y : 0; + u8 bs = ((m_l & ~blink) >> h & 1) | ((m_x*2) >> h & 2); m_write_segs(h | SM510_PORT_SEGBS, (m_bc || !m_bp) ? 0 : bs, 0xffff); } } diff --git a/src/mame/drivers/hh_sm510.cpp b/src/mame/drivers/hh_sm510.cpp index 946cefd7812..a3edded323f 100644 --- a/src/mame/drivers/hh_sm510.cpp +++ b/src/mame/drivers/hh_sm510.cpp @@ -1563,7 +1563,7 @@ void gnw_dkong2_state::gnw_dkong2(machine_config &config) screen_top.set_visarea(0, 1920/2-1, 0, 1241/2-1); screen_device &screen_bottom(SCREEN(config, "screen_bottom", SCREEN_TYPE_SVG)); - screen_bottom.set_svg_region("svg_top"); + screen_bottom.set_svg_region("svg_bottom"); screen_bottom.set_refresh_hz(50); screen_bottom.set_size(1920/2, 1237/2); screen_bottom.set_visarea(0, 1920/2-1, 0, 1237/2-1);