Previous 199869 Revisions Next

r18605 Friday 19th October, 2012 at 15:11:53 UTC by Tafoid
Hooked up polepos.c, portrait.c and tomcat.c to use the new tms5220 implementation.  [Osso]
[src/mame/drivers]polepos.c portrait.c tomcat.c
[src/mame/includes]polepos.h portrait.h

trunk/src/mame/drivers/portrait.c
r18604r18605
240240   GFXDECODE_ENTRY( "gfx1", 0x00000, tile_layout, 0, 0x800/8 )
241241GFXDECODE_END
242242
243static const tms52xx_config tms_intf =
244{
245   DEVCB_NULL
246};
247 
248
243249static MACHINE_CONFIG_START( portrait, portrait_state )
244250   MCFG_CPU_ADD("maincpu", Z80, 4000000)     /* 4 MHz ? */
245251   MCFG_CPU_PROGRAM_MAP(portrait_map)
r18604r18605
264270
265271   /* sound hardware */
266272   MCFG_SPEAKER_STANDARD_MONO("mono")
267
268   MCFG_SOUND_ADD("tms", TMS5200, 640000)
273   MCFG_SOUND_ADD("tms", TMS5200N, 640000)
269274   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
275   MCFG_SOUND_CONFIG(tms_intf)
270276MACHINE_CONFIG_END
271277
272278
trunk/src/mame/drivers/tomcat.c
r18604r18605
4141public:
4242   tomcat_state(const machine_config &mconfig, device_type type, const char *tag)
4343      : driver_device(mconfig, type, tag) ,
44      m_tms(*this, "tms"),
4445      m_shared_ram(*this, "shared_ram"){ }
4546
47   required_device<tms5220n_device> m_tms;
4648   int m_control_num;
4749   required_shared_ptr<UINT16> m_shared_ram;
4850   UINT8 m_nvram[0x800];
r18604r18605
394396   DEVCB_NULL   // connected to IRQ line of 6502
395397};
396398
399static const tms52xx_config tms_intf =
400{
401   DEVCB_NULL
402};
403
397404static MACHINE_CONFIG_START( tomcat, tomcat_state )
398405   MCFG_CPU_ADD("maincpu", M68010, XTAL_12MHz / 2)
399406   MCFG_CPU_PROGRAM_MAP(tomcat_map)
r18604r18605
433440   MCFG_POKEY_ADD("pokey2", XTAL_14_31818MHz / 8)
434441   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.20)
435442
436   MCFG_SOUND_ADD("tms", TMS5220, 325000)
443   MCFG_SOUND_ADD("tms", TMS5220N, 325000)
437444   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50)
438445   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50)
446   MCFG_SOUND_CONFIG(tms_intf)
439447
440448   MCFG_YM2151_ADD("ymsnd", XTAL_14_31818MHz / 4)
441449   MCFG_SOUND_ROUTE(0, "lspeaker", 0.60)
trunk/src/mame/drivers/polepos.c
r18604r18605
957957   "maincpu", "51xx", NULL, NULL, NULL
958958};
959959
960static const tms52xx_config tms_intf =
961{
962   DEVCB_NULL
963};
964
960965static MACHINE_CONFIG_START( topracern, polepos_state )
961966
962967   /* basic machine hardware */
r18604r18605
10251030   MCFG_CPU_PROGRAM_MAP(sound_z80_bootleg_map)
10261031   MCFG_CPU_IO_MAP(sound_z80_bootleg_iomap)
10271032
1028   MCFG_SOUND_ADD("tms", TMS5220, 600000)   /* ? Mhz */
1033   MCFG_SOUND_ADD("tms", TMS5220N, 600000)   /* ? Mhz */
10291034   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.80)
10301035   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.80)
1036   MCFG_SOUND_CONFIG(tms_intf)
10311037MACHINE_CONFIG_END
10321038
10331039
trunk/src/mame/includes/polepos.h
r18604r18605
66
77#include "devlegcy.h"
88#include "sound/discrete.h"
9#include "sound/tms5220.h"
910
1011
1112class polepos_state : public driver_device
r18604r18605
1314public:
1415   polepos_state(const machine_config &mconfig, device_type type, const char *tag)
1516      : driver_device(mconfig, type, tag) ,
17      m_tms(*this, "tms"),
1618      m_sprite16_memory(*this, "sprite16_memory"),
1719      m_road16_memory(*this, "road16_memory"),
1820      m_alpha16_memory(*this, "alpha16_memory"),
1921      m_view16_memory(*this, "view16_memory"){ }
2022
23   optional_device<tms5220n_device> m_tms;
2124   UINT8 m_steer_last;
2225   UINT8 m_steer_delta;
2326   INT16 m_steer_accum;
trunk/src/mame/includes/portrait.h
r18604r18605
1#include "sound/tms5220.h"
2
13class portrait_state : public driver_device
24{
35public:
r18604r18605
35   portrait_state(const machine_config &mconfig, device_type type, const char *tag)
46      : driver_device(mconfig, type, tag) ,
7      m_tms(*this, "tms"),
58      m_bgvideoram(*this, "bgvideoram"),
69      m_fgvideoram(*this, "fgvideoram"),
710      m_spriteram(*this, "spriteram"){ }
811
12   required_device<tms5200n_device> m_tms;
913   required_shared_ptr<UINT8> m_bgvideoram;
1014   required_shared_ptr<UINT8> m_fgvideoram;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team