sm510: added bs1 pin blinking (nw)

This commit is contained in:
hap 2019-01-03 19:59:18 +01:00
parent 471288048d
commit a445d1cc63
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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);