mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
ussr/dvk_kcgd.cpp: Fixed bad crystal maths.
Also worked around a couple of MSVC warnings reported in #10488.
This commit is contained in:
parent
f1089a13fa
commit
ae24a68f0d
@ -950,8 +950,8 @@ void vs_dual_state::vsdual_vrom_banking(u8 data)
|
||||
m_chr_banks[Side]->set_entry(BIT(data, 2));
|
||||
|
||||
// bit 1 ( data & 2 ) triggers irq on the other cpu
|
||||
auto cpu = (Side == SUB) ? m_maincpu : m_subcpu;
|
||||
cpu->set_input_line(0, (data & 2) ? CLEAR_LINE : ASSERT_LINE);
|
||||
auto &cpu = (Side == SUB) ? *m_maincpu : *m_subcpu;
|
||||
cpu.set_input_line(0, (data & 2) ? CLEAR_LINE : ASSERT_LINE);
|
||||
|
||||
// move along
|
||||
vsnes_in0_w<Side>(data);
|
||||
|
@ -711,7 +711,7 @@ void tsconf_state::tsconf_port_77_zctr_w(offs_t port, u8 data)
|
||||
|
||||
u8 tsconf_state::tsconf_port_77_zctr_r(offs_t port)
|
||||
{
|
||||
return 0x02 | !m_sdcard->get_card_present();
|
||||
return 0x02 | (m_sdcard->get_card_present() ? 0x00 : 0x01);
|
||||
}
|
||||
|
||||
void tsconf_state::tsconf_port_57_zctr_w(offs_t port, u8 data)
|
||||
|
@ -391,7 +391,7 @@ void kcgd_state::kcgd(machine_config &config)
|
||||
|
||||
timer_device &scantimer(TIMER(config, "scantimer"));
|
||||
scantimer.configure_periodic(FUNC(kcgd_state::scanline_callback), attotime::from_hz(50 * 28 * 11));
|
||||
scantimer.set_start_delay(attotime::from_hz(XTAL(30'800'000) / KCGD_HORZ_START));
|
||||
scantimer.set_start_delay(attotime::from_ticks(KCGD_HORZ_START, XTAL(30'800'000)));
|
||||
|
||||
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
|
||||
m_screen->set_screen_update(FUNC(kcgd_state::screen_update));
|
||||
|
Loading…
Reference in New Issue
Block a user