diff options
Diffstat (limited to 'src/mame/drivers/btoads.cpp')
-rw-r--r-- | src/mame/drivers/btoads.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/mame/drivers/btoads.cpp b/src/mame/drivers/btoads.cpp index e58548400f1..f9b9ad9b1cf 100644 --- a/src/mame/drivers/btoads.cpp +++ b/src/mame/drivers/btoads.cpp @@ -191,6 +191,7 @@ void btoads_state::main_map(address_map &map) map(0xa8800000, 0xa8ffffff).nopw(); map(0xb0000000, 0xb03fffff).rw(FUNC(btoads_state::vram_bg0_r), FUNC(btoads_state::vram_bg0_w)).share("vram_bg0"); map(0xb4000000, 0xb43fffff).rw(FUNC(btoads_state::vram_bg1_r), FUNC(btoads_state::vram_bg1_w)).share("vram_bg1"); + map(0xc0000000, 0xc00003ff).rw(m_maincpu, FUNC(tms34020_device::io_register_r), FUNC(tms34020_device::io_register_w)); map(0xfc000000, 0xffffffff).rom().region("user1", 0); } @@ -302,8 +303,8 @@ INPUT_PORTS_END * *************************************/ -void btoads_state::btoads(machine_config &config) -{ +MACHINE_CONFIG_START(btoads_state::btoads) + TMS34020(config, m_maincpu, CPU_CLOCK/2); m_maincpu->set_addrmap(AS_PROGRAM, &btoads_state::main_map); m_maincpu->set_halt_on_reset(false); @@ -313,28 +314,28 @@ void btoads_state::btoads(machine_config &config) m_maincpu->set_shiftreg_in_callback(FUNC(btoads_state::to_shiftreg)); m_maincpu->set_shiftreg_out_callback(FUNC(btoads_state::from_shiftreg)); - Z80(config, m_audiocpu, SOUND_CLOCK/4); - m_audiocpu->set_addrmap(AS_PROGRAM, &btoads_state::sound_map); - m_audiocpu->set_addrmap(AS_IO, &btoads_state::sound_io_map); - m_audiocpu->set_periodic_int(FUNC(btoads_state::irq0_line_assert), attotime::from_ticks(32768, SOUND_CLOCK/4)); + MCFG_DEVICE_ADD("audiocpu", Z80, SOUND_CLOCK/4) + MCFG_DEVICE_PROGRAM_MAP(sound_map) + MCFG_DEVICE_IO_MAP(sound_io_map) + MCFG_DEVICE_PERIODIC_INT_DRIVER(btoads_state, irq0_line_assert, 183) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); /* video hardware */ - TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT); + MCFG_TLC34076_ADD("tlc34076", TLC34076_6_BIT) - SCREEN(config, m_screen, SCREEN_TYPE_RASTER); - m_screen->set_raw(VIDEO_CLOCK/2, 640, 0, 512, 257, 0, 224); - m_screen->set_screen_update("maincpu", FUNC(tms34020_device::tms340x0_rgb32)); + MCFG_SCREEN_ADD("screen", RASTER) + MCFG_SCREEN_RAW_PARAMS(VIDEO_CLOCK/2, 640, 0, 512, 257, 0, 224) + MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34020_device, tms340x0_rgb32) /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); - BSMT2000(config, m_bsmt, SOUND_CLOCK); - m_bsmt->add_route(0, "lspeaker", 1.0); - m_bsmt->add_route(1, "rspeaker", 1.0); -} + MCFG_DEVICE_ADD("bsmt", BSMT2000, SOUND_CLOCK) + MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) + MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) +MACHINE_CONFIG_END |