From ef8f9d525739ff35f3223df87facd13d4f20f8e3 Mon Sep 17 00:00:00 2001 From: angelosa Date: Tue, 18 Jun 2024 20:47:22 +0200 Subject: aristocrat/caswin.cpp: fix Z80 clock, denote being derived from misc/summit.cpp --- src/mame/aristocrat/caswin.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/mame/aristocrat/caswin.cpp b/src/mame/aristocrat/caswin.cpp index 4aa729e8c7f..ecdfbb0136e 100644 --- a/src/mame/aristocrat/caswin.cpp +++ b/src/mame/aristocrat/caswin.cpp @@ -1,6 +1,6 @@ // license:BSD-3-Clause // copyright-holders:Chris Hardy, Angelo Salese -/******************************************************************************************* +/************************************************************************************************** Royal Casino (c) 1984 Dyna Casino Winner (c) 1985 Aristocrat @@ -9,12 +9,12 @@ driver by Chris Hardy & Angelo Salese original rcasino.c driver by Curt Coder TODO: -- Imperfect 8-liner video mode; +- Imperfect 8-liner video mode, which in turn looks derived from misc/summit.cpp? - Hookup payout (press 'I' to bypass when "call dealer" happens); - Add lamps support; - p1 & p2 inputs are tied to the same port...maybe they are mux-ed with the flip screen bit? -============================================================================================ +=================================================================================================== ---------------------------------------- Casino Royal by Dyna Electronics CO. LTD ---------------------------------------- @@ -65,7 +65,7 @@ TODO: Main processor - Z80A Sound - AY-3-8910 -*******************************************************************************************/ +**************************************************************************************************/ #include "emu.h" #include "cpu/z80/z80.h" @@ -387,13 +387,11 @@ void caswin_state::palette_init(palette_device &palette) const void caswin_state::vvillage(machine_config &config) { - /* basic machine hardware */ - Z80(config, m_maincpu, 4000000); /* ? MHz */ + Z80(config, m_maincpu, XTAL(6'000'000)); // Z80A @ 6 MHz m_maincpu->set_addrmap(AS_PROGRAM, &caswin_state::main_map); m_maincpu->set_addrmap(AS_IO, &caswin_state::main_io); m_maincpu->set_vblank_int("screen", FUNC(caswin_state::irq0_line_hold)); - /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); screen.set_refresh_hz(60); screen.set_vblank_time(ATTOSECONDS_IN_USEC(0)); @@ -409,7 +407,7 @@ void caswin_state::vvillage(machine_config &config) SPEAKER(config, "mono").front_center(); - ay8910_device &aysnd(AY8910(config, "aysnd", 4000000 / 4)); + ay8910_device &aysnd(AY8910(config, "aysnd", XTAL(6'000'000) / 4)); // TODO: unconfirmed clock aysnd.port_a_read_callback().set_ioport("DSW1"); aysnd.port_b_read_callback().set_ioport("DSW2"); aysnd.add_route(ALL_OUTPUTS, "mono", 0.40); -- cgit v1.2.3