trunk/src/mame/drivers/portrait.c
| r18604 | r18605 | |
| 240 | 240 | GFXDECODE_ENTRY( "gfx1", 0x00000, tile_layout, 0, 0x800/8 ) |
| 241 | 241 | GFXDECODE_END |
| 242 | 242 | |
| 243 | static const tms52xx_config tms_intf = |
| 244 | { |
| 245 | DEVCB_NULL |
| 246 | }; |
| 247 | |
| 248 | |
| 243 | 249 | static MACHINE_CONFIG_START( portrait, portrait_state ) |
| 244 | 250 | MCFG_CPU_ADD("maincpu", Z80, 4000000) /* 4 MHz ? */ |
| 245 | 251 | MCFG_CPU_PROGRAM_MAP(portrait_map) |
| r18604 | r18605 | |
| 264 | 270 | |
| 265 | 271 | /* sound hardware */ |
| 266 | 272 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 267 | | |
| 268 | | MCFG_SOUND_ADD("tms", TMS5200, 640000) |
| 273 | MCFG_SOUND_ADD("tms", TMS5200N, 640000) |
| 269 | 274 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 275 | MCFG_SOUND_CONFIG(tms_intf) |
| 270 | 276 | MACHINE_CONFIG_END |
| 271 | 277 | |
| 272 | 278 | |
trunk/src/mame/drivers/tomcat.c
| r18604 | r18605 | |
| 41 | 41 | public: |
| 42 | 42 | tomcat_state(const machine_config &mconfig, device_type type, const char *tag) |
| 43 | 43 | : driver_device(mconfig, type, tag) , |
| 44 | m_tms(*this, "tms"), |
| 44 | 45 | m_shared_ram(*this, "shared_ram"){ } |
| 45 | 46 | |
| 47 | required_device<tms5220n_device> m_tms; |
| 46 | 48 | int m_control_num; |
| 47 | 49 | required_shared_ptr<UINT16> m_shared_ram; |
| 48 | 50 | UINT8 m_nvram[0x800]; |
| r18604 | r18605 | |
| 394 | 396 | DEVCB_NULL // connected to IRQ line of 6502 |
| 395 | 397 | }; |
| 396 | 398 | |
| 399 | static const tms52xx_config tms_intf = |
| 400 | { |
| 401 | DEVCB_NULL |
| 402 | }; |
| 403 | |
| 397 | 404 | static MACHINE_CONFIG_START( tomcat, tomcat_state ) |
| 398 | 405 | MCFG_CPU_ADD("maincpu", M68010, XTAL_12MHz / 2) |
| 399 | 406 | MCFG_CPU_PROGRAM_MAP(tomcat_map) |
| r18604 | r18605 | |
| 433 | 440 | MCFG_POKEY_ADD("pokey2", XTAL_14_31818MHz / 8) |
| 434 | 441 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.20) |
| 435 | 442 | |
| 436 | | MCFG_SOUND_ADD("tms", TMS5220, 325000) |
| 443 | MCFG_SOUND_ADD("tms", TMS5220N, 325000) |
| 437 | 444 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) |
| 438 | 445 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50) |
| 446 | MCFG_SOUND_CONFIG(tms_intf) |
| 439 | 447 | |
| 440 | 448 | MCFG_YM2151_ADD("ymsnd", XTAL_14_31818MHz / 4) |
| 441 | 449 | MCFG_SOUND_ROUTE(0, "lspeaker", 0.60) |
trunk/src/mame/drivers/polepos.c
| r18604 | r18605 | |
| 957 | 957 | "maincpu", "51xx", NULL, NULL, NULL |
| 958 | 958 | }; |
| 959 | 959 | |
| 960 | static const tms52xx_config tms_intf = |
| 961 | { |
| 962 | DEVCB_NULL |
| 963 | }; |
| 964 | |
| 960 | 965 | static MACHINE_CONFIG_START( topracern, polepos_state ) |
| 961 | 966 | |
| 962 | 967 | /* basic machine hardware */ |
| r18604 | r18605 | |
| 1025 | 1030 | MCFG_CPU_PROGRAM_MAP(sound_z80_bootleg_map) |
| 1026 | 1031 | MCFG_CPU_IO_MAP(sound_z80_bootleg_iomap) |
| 1027 | 1032 | |
| 1028 | | MCFG_SOUND_ADD("tms", TMS5220, 600000) /* ? Mhz */ |
| 1033 | MCFG_SOUND_ADD("tms", TMS5220N, 600000) /* ? Mhz */ |
| 1029 | 1034 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.80) |
| 1030 | 1035 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.80) |
| 1036 | MCFG_SOUND_CONFIG(tms_intf) |
| 1031 | 1037 | MACHINE_CONFIG_END |
| 1032 | 1038 | |
| 1033 | 1039 | |
trunk/src/mame/includes/polepos.h
| r18604 | r18605 | |
| 6 | 6 | |
| 7 | 7 | #include "devlegcy.h" |
| 8 | 8 | #include "sound/discrete.h" |
| 9 | #include "sound/tms5220.h" |
| 9 | 10 | |
| 10 | 11 | |
| 11 | 12 | class polepos_state : public driver_device |
| r18604 | r18605 | |
| 13 | 14 | public: |
| 14 | 15 | polepos_state(const machine_config &mconfig, device_type type, const char *tag) |
| 15 | 16 | : driver_device(mconfig, type, tag) , |
| 17 | m_tms(*this, "tms"), |
| 16 | 18 | m_sprite16_memory(*this, "sprite16_memory"), |
| 17 | 19 | m_road16_memory(*this, "road16_memory"), |
| 18 | 20 | m_alpha16_memory(*this, "alpha16_memory"), |
| 19 | 21 | m_view16_memory(*this, "view16_memory"){ } |
| 20 | 22 | |
| 23 | optional_device<tms5220n_device> m_tms; |
| 21 | 24 | UINT8 m_steer_last; |
| 22 | 25 | UINT8 m_steer_delta; |
| 23 | 26 | INT16 m_steer_accum; |
trunk/src/mame/includes/portrait.h
| r18604 | r18605 | |
| 1 | #include "sound/tms5220.h" |
| 2 | |
| 1 | 3 | class portrait_state : public driver_device |
| 2 | 4 | { |
| 3 | 5 | public: |
| r18604 | r18605 | |
| 3 | 5 | portrait_state(const machine_config &mconfig, device_type type, const char *tag) |
| 4 | 6 | : driver_device(mconfig, type, tag) , |
| 7 | m_tms(*this, "tms"), |
| 5 | 8 | m_bgvideoram(*this, "bgvideoram"), |
| 6 | 9 | m_fgvideoram(*this, "fgvideoram"), |
| 7 | 10 | m_spriteram(*this, "spriteram"){ } |
| 8 | 11 | |
| 12 | required_device<tms5200n_device> m_tms; |
| 9 | 13 | required_shared_ptr<UINT8> m_bgvideoram; |
| 10 | 14 | required_shared_ptr<UINT8> m_fgvideoram; |