Assume same frequencies used between lvcards.cpp and tehkanwc.cpp and closing off MT #02473, nw

This commit is contained in:
angelosa 2016-09-16 21:52:39 +02:00
parent 32c251a3dd
commit 041d558f4e
3 changed files with 16 additions and 21 deletions

View File

@ -7,7 +7,7 @@
TODO:
* Implement ES5510 ESP
* Where does the MB8421 go? Taito F3(and Super Chase) have 2 of them on
* Where does the MB8421 go? Taito F3 (and Super Chase) have 2 of them on
the sound area, Taito JC has one.
****************************************************************************/

View File

@ -68,7 +68,6 @@ I/O Ports:
TODO:
- What do the control ports do? Payout?
- CPU speed/ YM2149 frequencies
- Input ports need to be cleaned up
- NVRAM does not work for lvcards?
@ -451,14 +450,12 @@ GFXDECODE_END
static MACHINE_CONFIG_START( lvcards, lvcards_state )
// basic machine hardware
MCFG_CPU_ADD("maincpu",Z80, 18432000/6) // 3.072 MHz ?
MCFG_CPU_ADD("maincpu",Z80, 18432000/4) // unknown frequency, assume same as tehkanwc.cpp
MCFG_CPU_PROGRAM_MAP(lvcards_map)
MCFG_CPU_IO_MAP(lvcards_io_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", lvcards_state, irq0_line_hold)
// video hardware
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
@ -474,7 +471,7 @@ static MACHINE_CONFIG_START( lvcards, lvcards_state )
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("aysnd", AY8910, 18432000/12)
MCFG_SOUND_ADD("aysnd", AY8910, 18432000/12) // unknown frequency, assume same as tehkanwc.cpp
MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW0"))
MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)

View File

@ -1,22 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Ernesto Corvi, Roberto Fresca
/* Notes: DJH 04 Jan 2008
fixed gridiron079gre (shared access to spriteram was broken)
The inputs seem to be a hacky mess (although there was reportedly a
hardware joystick hack for tehkanwc via plugin logic subboard, is this
attempting to simulate it?
Also there is a hack to reset the sound CPU...
*/
/***************************************************************************
Tehkan World Cup - (c) Tehkan 1985
Ernesto Corvi
ernesto@imagina.com
@ -89,6 +76,17 @@ TO DO :
- Confirm "Difficulty" Dip Switch in 'teedoff'
***************************************************************************/
/* Notes: DJH 04 Jan 2008
fixed gridiron079gre (shared access to spriteram was broken)
The inputs seem to be a hacky mess (although there was reportedly a
hardware joystick hack for tehkanwc via plugin logic subboard, is this
attempting to simulate it?
Also there is a hack to reset the sound CPU...
*/
#include "emu.h"
#include "cpu/z80/z80.h"
@ -665,12 +663,12 @@ static MACHINE_CONFIG_START( tehkanwc, tehkanwc_state )
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
MCFG_SOUND_ADD("ay1", AY8910, 1536000)
MCFG_SOUND_ADD("ay1", AY8910, 18432000/12)
MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(tehkanwc_state, portA_w))
MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(tehkanwc_state, portB_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
MCFG_SOUND_ADD("ay2", AY8910, 1536000)
MCFG_SOUND_ADD("ay2", AY8910, 18432000/12)
MCFG_AY8910_PORT_A_READ_CB(READ8(tehkanwc_state, portA_r))
MCFG_AY8910_PORT_B_READ_CB(READ8(tehkanwc_state, portB_r))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)