From 735bd1f62632c853f5401051e1c47b54aa746174 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 28 Jun 2022 16:17:40 -0400 Subject: cchance: Derive clocks from known XTAL --- src/mame/taito/cchance.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mame/taito/cchance.cpp b/src/mame/taito/cchance.cpp index 8d469ae837d..b105123d9b6 100644 --- a/src/mame/taito/cchance.cpp +++ b/src/mame/taito/cchance.cpp @@ -12,6 +12,7 @@ TODO: -imperfect hopper emulation makes this game to not coin up and gives "hopper time out errors" when you win (put dsw 1 (0x01) and 8 (0x80) to enable hopper full-mode); -Wrong colors,caused by missing color proms; +-Verify clock dividers for Z80 and YM2149 ============================================================================================================================ @@ -219,11 +220,11 @@ void cchance_state::machine_reset() void cchance_state::cchance(machine_config &config) { - Z80(config, m_maincpu, 4000000); /* ? MHz */ + Z80(config, m_maincpu, 12_MHz_XTAL / 2); // LH0080B m_maincpu->set_addrmap(AS_PROGRAM, &cchance_state::main_map); m_maincpu->set_vblank_int("screen", FUNC(cchance_state::irq0_line_hold)); - SETA001_SPRITE(config, m_seta001, 16000000, m_palette, gfx_cchance); + SETA001_SPRITE(config, m_seta001, 12_MHz_XTAL, m_palette, gfx_cchance); m_seta001->set_fg_yoffsets( -0x12, 0x0e ); m_seta001->set_bg_yoffsets( 0x1, -0x1 ); @@ -241,7 +242,7 @@ void cchance_state::cchance(machine_config &config) SPEAKER(config, "mono").front_center(); - ym2149_device &aysnd(YM2149(config, "aysnd", 1500000/2)); + ym2149_device &aysnd(YM2149(config, "aysnd", 12_MHz_XTAL / 8)); aysnd.port_a_read_callback().set_ioport("DSW1"); aysnd.port_b_read_callback().set_ioport("DSW2"); aysnd.add_route(ALL_OUTPUTS, "mono", 0.25); -- cgit v1.2.3