diff options
author | Scott Stone <tafoid@users.noreply.github.com> | 2011-03-23 19:25:42 +0000 |
---|---|---|
committer | Scott Stone <tafoid@users.noreply.github.com> | 2011-03-23 19:25:42 +0000 |
commit | 92f2e1b645390fd3b8ca8eccb6d0844b0adf9e98 (patch) | |
tree | aaf47e964b7497ee1b682a858647d37a8ee0cdd9 | |
parent | 5f6fb4267cb59c210aea4b00ecffb3841c012ecc (diff) |
Changed clocks based on confirmed XTAL and dumper's notes for Ambush and clones. Audio changed to AY8912 as well. [Tafoid / Tomasz Slanina]
-rw-r--r-- | src/mame/drivers/ambush.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/ambush.c b/src/mame/drivers/ambush.c index 58808dd8d9d..ee8e1580028 100644 --- a/src/mame/drivers/ambush.c +++ b/src/mame/drivers/ambush.c @@ -23,13 +23,13 @@ I/O Ports: - 00-01 R/W AY8910 #0 (Port A = Input Port #0) - 80-81 R/W AY8910 #1 (Port A = Input Port #1) + 00-01 R/W AY8912 #0 (Port A = Input Port #0) + 80-81 R/W AY8912 #1 (Port A = Input Port #1) TODO: - - Verify Z80 and AY8910 clock speeds + - Verify actual Z80 and AY8912 clock speeds from PCB (XTAL confirmed) ***************************************************************************/ @@ -199,7 +199,7 @@ GFXDECODE_END * *************************************/ -static const ay8910_interface ay8910_interface_1 = +static const ay8910_interface ay8912_interface_1 = { AY8910_LEGACY_OUTPUT, AY8910_DEFAULT_LOADS, @@ -209,7 +209,7 @@ static const ay8910_interface ay8910_interface_1 = DEVCB_NULL }; -static const ay8910_interface ay8910_interface_2 = +static const ay8910_interface ay8912_interface_2 = { AY8910_LEGACY_OUTPUT, AY8910_DEFAULT_LOADS, @@ -229,7 +229,7 @@ static const ay8910_interface ay8910_interface_2 = static MACHINE_CONFIG_START( ambush, ambush_state ) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", Z80, 4000000) /* 4.00 MHz??? */ + MCFG_CPU_ADD("maincpu", Z80, XTAL_18_432MHz/6) /* XTAL confirmed, divisor guessed */ MCFG_CPU_PROGRAM_MAP(main_map) MCFG_CPU_IO_MAP(main_portmap) MCFG_CPU_VBLANK_INT("screen", irq0_line_hold) @@ -251,13 +251,13 @@ static MACHINE_CONFIG_START( ambush, ambush_state ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("ay1", AY8910, 1500000) - MCFG_SOUND_CONFIG(ay8910_interface_1) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) + MCFG_SOUND_ADD("ay1", AY8912, XTAL_18_432MHz/6/2) /* XTAL confirmed, divisor guessed */ + MCFG_SOUND_CONFIG(ay8912_interface_1) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) - MCFG_SOUND_ADD("ay2", AY8910, 1500000) - MCFG_SOUND_CONFIG(ay8910_interface_2) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) + MCFG_SOUND_ADD("ay2", AY8912, XTAL_18_432MHz/6/2) /* XTAL confirmed, divisor guessed */ + MCFG_SOUND_CONFIG(ay8912_interface_2) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) MACHINE_CONFIG_END |