diff options
Diffstat (limited to 'src/mame/drivers/spacefb.cpp')
-rw-r--r-- | src/mame/drivers/spacefb.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/mame/drivers/spacefb.cpp b/src/mame/drivers/spacefb.cpp index 8317d720f3b..8a8c52e7f6a 100644 --- a/src/mame/drivers/spacefb.cpp +++ b/src/mame/drivers/spacefb.cpp @@ -117,7 +117,6 @@ #include "emu.h" #include "cpu/z80/z80.h" #include "includes/spacefb.h" -#include "cpu/mcs48/mcs48.h" #include "sound/dac.h" @@ -334,22 +333,20 @@ INPUT_PORTS_END MACHINE_CONFIG_START(spacefb_state::spacefb) /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", Z80, SPACEFB_MAIN_CPU_CLOCK) - MCFG_DEVICE_PROGRAM_MAP(spacefb_main_map) - MCFG_DEVICE_IO_MAP(spacefb_main_io_map) + Z80(config, m_maincpu, SPACEFB_MAIN_CPU_CLOCK); + m_maincpu->set_addrmap(AS_PROGRAM, &spacefb_state::spacefb_main_map); + m_maincpu->set_addrmap(AS_IO, &spacefb_state::spacefb_main_io_map); - MCFG_DEVICE_ADD("audiocpu", I8035, SPACEFB_AUDIO_CPU_CLOCK) - MCFG_DEVICE_PROGRAM_MAP(spacefb_audio_map) - MCFG_MCS48_PORT_P1_OUT_CB(WRITE8("dac", dac_byte_interface, data_w)) - MCFG_MCS48_PORT_P2_IN_CB(READ8(*this, spacefb_state, audio_p2_r)) - MCFG_MCS48_PORT_T0_IN_CB(READLINE(*this, spacefb_state, audio_t0_r)) - MCFG_MCS48_PORT_T1_IN_CB(READLINE(*this, spacefb_state, audio_t1_r)) + I8035(config, m_audiocpu, SPACEFB_AUDIO_CPU_CLOCK); + m_audiocpu->set_addrmap(AS_PROGRAM, &spacefb_state::spacefb_audio_map); + m_audiocpu->p1_out_cb().set("dac", FUNC(dac_byte_interface::data_w)); + m_audiocpu->p2_in_cb().set(FUNC(spacefb_state::audio_p2_r)); + m_audiocpu->t0_in_cb().set(FUNC(spacefb_state::audio_t0_r)); + m_audiocpu->t1_in_cb().set(FUNC(spacefb_state::audio_t1_r)); MCFG_QUANTUM_TIME(attotime::from_hz(180)) - /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_RAW_PARAMS(SPACEFB_PIXEL_CLOCK, SPACEFB_HTOTAL, SPACEFB_HBEND, SPACEFB_HBSTART, SPACEFB_VTOTAL, SPACEFB_VBEND, SPACEFB_VBSTART) MCFG_SCREEN_UPDATE_DRIVER(spacefb_state, screen_update) |