diff options
Diffstat (limited to 'src/mame/drivers/rex6000.cpp')
-rw-r--r-- | src/mame/drivers/rex6000.cpp | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/src/mame/drivers/rex6000.cpp b/src/mame/drivers/rex6000.cpp index e97c01ba358..43c3a8b6209 100644 --- a/src/mame/drivers/rex6000.cpp +++ b/src/mame/drivers/rex6000.cpp @@ -897,22 +897,22 @@ GFXDECODE_END MACHINE_CONFIG_START(rex6000_state::rex6000) /* basic machine hardware */ - Z80(config, m_maincpu, XTAL(4'000'000)); //Toshiba microprocessor Z80 compatible at 4.3MHz - m_maincpu->set_addrmap(AS_PROGRAM, &rex6000_state::rex6000_mem); - m_maincpu->set_addrmap(AS_IO, &rex6000_state::rex6000_io); + MCFG_DEVICE_ADD("maincpu",Z80, XTAL(4'000'000)) //Toshiba microprocessor Z80 compatible at 4.3MHz + MCFG_DEVICE_PROGRAM_MAP(rex6000_mem) + MCFG_DEVICE_IO_MAP(rex6000_io) - TIMER(config, "sec_timer").configure_periodic(FUNC(rex6000_state::sec_timer), attotime::from_hz(1)); - TIMER(config, "irq_timer1").configure_periodic(FUNC(rex6000_state::irq_timer1), attotime::from_hz(32)); - TIMER(config, "irq_timer2").configure_periodic(FUNC(rex6000_state::irq_timer2), attotime::from_hz(4096)); + MCFG_TIMER_DRIVER_ADD_PERIODIC("sec_timer", rex6000_state, sec_timer, attotime::from_hz(1)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_timer1", rex6000_state, irq_timer1, attotime::from_hz(32)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_timer2", rex6000_state, irq_timer2, attotime::from_hz(4096)) /* video hardware */ - screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); - screen.set_refresh_hz(50); - screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */ - screen.set_screen_update(FUNC(rex6000_state::screen_update)); - screen.set_size(240, 120); - screen.set_visarea(0, 240-1, 0, 120-1); - screen.set_palette("palette"); + MCFG_SCREEN_ADD("screen", LCD) + MCFG_SCREEN_REFRESH_RATE(50) + MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ + MCFG_SCREEN_UPDATE_DRIVER(rex6000_state, screen_update) + MCFG_SCREEN_SIZE(240, 120) + MCFG_SCREEN_VISIBLE_AREA(0, 240-1, 0, 120-1) + MCFG_SCREEN_PALETTE("palette") PALETTE(config, "palette", FUNC(rex6000_state::rex6000_palettte), 2); GFXDECODE(config, "gfxdecode", "palette", gfx_rex6000); @@ -934,7 +934,7 @@ MACHINE_CONFIG_START(rex6000_state::rex6000) serport.cts_handler().set(m_uart, FUNC(ins8250_uart_device::cts_w)); /* quickload */ - MCFG_QUICKLOAD_ADD("quickload", rex6000_state, rex6000, "rex,ds2") + MCFG_QUICKLOAD_ADD("quickload", rex6000_state, rex6000, "rex,ds2", 0) tc8521_device &rtc(TC8521(config, TC8521_TAG, XTAL(32'768))); rtc.out_alarm_callback().set(FUNC(rex6000_state::alarm_irq)); @@ -956,18 +956,19 @@ MACHINE_CONFIG_START(rex6000_state::rex6000) /* sound hardware */ SPEAKER(config, "mono").front_center(); - BEEP(config, m_beep, 0).add_route(ALL_OUTPUTS, "mono", 1.00); + MCFG_DEVICE_ADD( "beeper", BEEP, 0 ) + MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) MACHINE_CONFIG_END MACHINE_CONFIG_START(oz750_state::oz750) /* basic machine hardware */ - Z80(config, m_maincpu, XTAL(9'830'400)); //Toshiba microprocessor Z80 compatible at 9.8MHz - m_maincpu->set_addrmap(AS_PROGRAM, &oz750_state::rex6000_mem); - m_maincpu->set_addrmap(AS_IO, &oz750_state::oz750_io); + MCFG_DEVICE_ADD("maincpu",Z80, XTAL(9'830'400)) //Toshiba microprocessor Z80 compatible at 9.8MHz + MCFG_DEVICE_PROGRAM_MAP(rex6000_mem) + MCFG_DEVICE_IO_MAP(oz750_io) - TIMER(config, "sec_timer").configure_periodic(FUNC(rex6000_state::sec_timer), attotime::from_hz(1)); - TIMER(config, "irq_timer1").configure_periodic(FUNC(rex6000_state::irq_timer1), attotime::from_hz(64)); - TIMER(config, "irq_timer2").configure_periodic(FUNC(rex6000_state::irq_timer2), attotime::from_hz(8192)); + MCFG_TIMER_DRIVER_ADD_PERIODIC("sec_timer", rex6000_state, sec_timer, attotime::from_hz(1)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_timer1", rex6000_state, irq_timer1, attotime::from_hz(64)) + MCFG_TIMER_DRIVER_ADD_PERIODIC("irq_timer2", rex6000_state, irq_timer2, attotime::from_hz(8192)) NS16550(config, m_uart, XTAL(9'830'400) / 4); m_uart->out_tx_callback().set("serport", FUNC(rs232_port_device::write_txd)); @@ -983,13 +984,13 @@ MACHINE_CONFIG_START(oz750_state::oz750) //serport.cts_handler().set(m_uart, FUNC(ins8250_uart_device::cts_w)); /* video hardware */ - screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); - screen.set_refresh_hz(50); - screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */ - screen.set_screen_update(FUNC(oz750_state::screen_update_oz)); - screen.set_size(240, 80); - screen.set_visarea(0, 240-1, 0, 80-1); - screen.set_palette("palette"); + MCFG_SCREEN_ADD("screen", LCD) + MCFG_SCREEN_REFRESH_RATE(50) + MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ + MCFG_SCREEN_UPDATE_DRIVER(oz750_state, screen_update_oz) + MCFG_SCREEN_SIZE(240, 80) + MCFG_SCREEN_VISIBLE_AREA(0, 240-1, 0, 80-1) + MCFG_SCREEN_PALETTE("palette") PALETTE(config, "palette", FUNC(rex6000_state::rex6000_palettte), 2); @@ -997,7 +998,7 @@ MACHINE_CONFIG_START(oz750_state::oz750) ADDRESS_MAP_BANK(config, "bank1").set_map(&oz750_state::oz750_banked_map).set_options(ENDIANNESS_LITTLE, 8, 32, 0x2000); /* quickload */ - MCFG_QUICKLOAD_ADD("quickload", oz750_state, oz750, "wzd") + MCFG_QUICKLOAD_ADD("quickload", oz750_state, oz750, "wzd", 0) tc8521_device &rtc(TC8521(config, TC8521_TAG, XTAL(32'768))); rtc.out_alarm_callback().set(FUNC(rex6000_state::alarm_irq)); @@ -1010,7 +1011,8 @@ MACHINE_CONFIG_START(oz750_state::oz750) /* sound hardware */ SPEAKER(config, "mono").front_center(); - BEEP(config, m_beep, 0).add_route(ALL_OUTPUTS, "mono", 1.00); + MCFG_DEVICE_ADD( "beeper", BEEP, 0 ) + MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 ) MACHINE_CONFIG_END /* ROM definition */ |