summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bottom9.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bottom9.cpp')
-rw-r--r--src/mame/drivers/bottom9.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/mame/drivers/bottom9.cpp b/src/mame/drivers/bottom9.cpp
index fe13cbb240e..fa72a86bbc9 100644
--- a/src/mame/drivers/bottom9.cpp
+++ b/src/mame/drivers/bottom9.cpp
@@ -300,31 +300,31 @@ void bottom9_state::machine_reset()
m_nmienable = 0;
}
-MACHINE_CONFIG_START(bottom9_state::bottom9)
-
+void bottom9_state::bottom9(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", HD6309E, XTAL(24'000'000) / 8) // 63C09E
- MCFG_DEVICE_PROGRAM_MAP(main_map)
+ HD6309E(config, m_maincpu, XTAL(24'000'000) / 8); // 63C09E
+ m_maincpu->set_addrmap(AS_PROGRAM, &bottom9_state::main_map);
- MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(3'579'545))
- MCFG_DEVICE_PROGRAM_MAP(audio_map)
- MCFG_DEVICE_PERIODIC_INT_DRIVER(bottom9_state, bottom9_sound_interrupt, 8*60) /* irq is triggered by the main CPU */
+ Z80(config, m_audiocpu, XTAL(3'579'545));
+ m_audiocpu->set_addrmap(AS_PROGRAM, &bottom9_state::audio_map);
+ m_audiocpu->set_periodic_int(FUNC(bottom9_state::bottom9_sound_interrupt), attotime::from_hz(8*60)); /* irq is triggered by the main CPU */
WATCHDOG_TIMER(config, "watchdog");
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_REFRESH_RATE(60)
- MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
- MCFG_SCREEN_SIZE(64*8, 32*8)
- MCFG_SCREEN_VISIBLE_AREA(14*8, (64-14)*8-1, 2*8, 30*8-1 )
- MCFG_SCREEN_UPDATE_DRIVER(bottom9_state, screen_update_bottom9)
- MCFG_SCREEN_PALETTE("palette")
- MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, bottom9_state, vblank_irq))
-
- MCFG_PALETTE_ADD("palette", 1024)
- MCFG_PALETTE_ENABLE_SHADOWS()
- MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
+ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
+ screen.set_refresh_hz(60);
+ screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
+ screen.set_size(64*8, 32*8);
+ screen.set_visarea(14*8, (64-14)*8-1, 2*8, 30*8-1);
+ screen.set_screen_update(FUNC(bottom9_state::screen_update_bottom9));
+ screen.screen_vblank().set(FUNC(bottom9_state::vblank_irq));
+ screen.set_palette(m_palette);
+
+ PALETTE(config, m_palette, 1024);
+ m_palette->enable_shadows();
+ m_palette->set_format(PALETTE_FORMAT_xBBBBBGGGGGRRRRR);
K052109(config, m_k052109, 0); // 051961 on schematics
m_k052109->set_palette(m_palette);
@@ -344,16 +344,16 @@ MACHINE_CONFIG_START(bottom9_state::bottom9)
GENERIC_LATCH_8(config, "soundlatch");
- MCFG_DEVICE_ADD("k007232_1", K007232, XTAL(3'579'545))
- MCFG_K007232_PORT_WRITE_HANDLER(WRITE8(*this, bottom9_state, volume_callback0))
- MCFG_SOUND_ROUTE(0, "mono", 0.40)
- MCFG_SOUND_ROUTE(1, "mono", 0.40)
+ K007232(config, m_k007232_1, XTAL(3'579'545));
+ m_k007232_1->port_write().set(FUNC(bottom9_state::volume_callback0));
+ m_k007232_1->add_route(0, "mono", 0.40);
+ m_k007232_1->add_route(1, "mono", 0.40);
- MCFG_DEVICE_ADD("k007232_2", K007232, XTAL(3'579'545))
- MCFG_K007232_PORT_WRITE_HANDLER(WRITE8(*this, bottom9_state, volume_callback1))
- MCFG_SOUND_ROUTE(0, "mono", 0.40)
- MCFG_SOUND_ROUTE(1, "mono", 0.40)
-MACHINE_CONFIG_END
+ K007232(config, m_k007232_2, XTAL(3'579'545));
+ m_k007232_2->port_write().set(FUNC(bottom9_state::volume_callback1));
+ m_k007232_2->add_route(0, "mono", 0.40);
+ m_k007232_2->add_route(1, "mono", 0.40);
+}
/***************************************************************************