diff options
Diffstat (limited to 'src/mame/drivers/socrates.cpp')
-rw-r--r-- | src/mame/drivers/socrates.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/socrates.cpp b/src/mame/drivers/socrates.cpp index 70d57681b05..8f35a9c9f49 100644 --- a/src/mame/drivers/socrates.cpp +++ b/src/mame/drivers/socrates.cpp @@ -1464,11 +1464,11 @@ TIMER_CALLBACK_MEMBER(socrates_state::kbmcu_sim_cb) MACHINE_CONFIG_START(socrates_state::socrates) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", Z80, XTAL(21'477'272)/6) /* Toshiba TMPZ84C00AP @ 3.579545 MHz, verified, xtal is divided by 6 */ - MCFG_CPU_PROGRAM_MAP(z80_mem) - MCFG_CPU_IO_MAP(z80_io) + MCFG_DEVICE_ADD("maincpu", Z80, XTAL(21'477'272)/6) /* Toshiba TMPZ84C00AP @ 3.579545 MHz, verified, xtal is divided by 6 */ + MCFG_DEVICE_PROGRAM_MAP(z80_mem) + MCFG_DEVICE_IO_MAP(z80_io) MCFG_QUANTUM_TIME(attotime::from_hz(60)) - MCFG_CPU_VBLANK_INT_DRIVER("screen", socrates_state, assert_irq) + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", socrates_state, assert_irq) MCFG_DEVICE_ADD("rombank1", ADDRESS_MAP_BANK, 0) MCFG_DEVICE_PROGRAM_MAP(socrates_rombank_map) @@ -1502,7 +1502,7 @@ MACHINE_CONFIG_START(socrates_state::socrates) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("soc_snd", SOCRATES_SOUND, XTAL(21'477'272)/(512+256)) // this is correct, as strange as it sounds. + MCFG_DEVICE_ADD("soc_snd", SOCRATES_SOUND, XTAL(21'477'272)/(512+256)) // this is correct, as strange as it sounds. MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "socrates_cart") @@ -1513,11 +1513,11 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(socrates_state::socrates_pal) socrates(config); - MCFG_CPU_REPLACE("maincpu", Z80, XTAL(26'601'712)/8) - MCFG_CPU_PROGRAM_MAP(z80_mem) - MCFG_CPU_IO_MAP(z80_io) + MCFG_DEVICE_REPLACE("maincpu", Z80, XTAL(26'601'712)/8) + MCFG_DEVICE_PROGRAM_MAP(z80_mem) + MCFG_DEVICE_IO_MAP(z80_io) MCFG_QUANTUM_TIME(attotime::from_hz(50)) - MCFG_CPU_VBLANK_INT_DRIVER("screen", socrates_state, assert_irq) + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", socrates_state, assert_irq) MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_REFRESH_RATE(50) @@ -1526,16 +1526,16 @@ MACHINE_CONFIG_START(socrates_state::socrates_pal) MCFG_SCREEN_VISIBLE_AREA(0, 263, 0, 229) // the last few rows are usually cut off by the screen bottom but are indeed displayed if you mess with v-hold MCFG_SCREEN_UPDATE_DRIVER(socrates_state, screen_update_socrates) - MCFG_SOUND_REPLACE("soc_snd", SOCRATES_SOUND, XTAL(26'601'712)/(512+256)) // this is correct, as strange as it sounds. + MCFG_DEVICE_REPLACE("soc_snd", SOCRATES_SOUND, XTAL(26'601'712)/(512+256)) // this is correct, as strange as it sounds. MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MACHINE_CONFIG_END MACHINE_CONFIG_START(iqunlimz_state::iqunlimz) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", Z80, XTAL(4'000'000)) /* not accurate */ - MCFG_CPU_PROGRAM_MAP(iqunlimz_mem) - MCFG_CPU_IO_MAP(iqunlimz_io) - MCFG_CPU_VBLANK_INT_DRIVER("screen", iqunlimz_state, assert_irq) + MCFG_DEVICE_ADD("maincpu", Z80, XTAL(4'000'000)) /* not accurate */ + MCFG_DEVICE_PROGRAM_MAP(iqunlimz_mem) + MCFG_DEVICE_IO_MAP(iqunlimz_io) + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", iqunlimz_state, assert_irq) MCFG_DEVICE_ADD("rombank1", ADDRESS_MAP_BANK, 0) MCFG_DEVICE_PROGRAM_MAP(iqunlimz_rombank_map) @@ -1575,7 +1575,7 @@ MACHINE_CONFIG_START(iqunlimz_state::iqunlimz) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("soc_snd", SOCRATES_SOUND, XTAL(21'477'272)/(512+256)) + MCFG_DEVICE_ADD("soc_snd", SOCRATES_SOUND, XTAL(21'477'272)/(512+256)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, nullptr) |