diff options
Diffstat (limited to 'src/mame/drivers/hp16500.cpp')
-rw-r--r-- | src/mame/drivers/hp16500.cpp | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/src/mame/drivers/hp16500.cpp b/src/mame/drivers/hp16500.cpp index f3bc942d289..4ed4e5bd469 100644 --- a/src/mame/drivers/hp16500.cpp +++ b/src/mame/drivers/hp16500.cpp @@ -413,14 +413,15 @@ uint32_t hp16500_state::screen_update_hp16500(screen_device &screen, bitmap_rgb3 return 0; } -MACHINE_CONFIG_START(hp16500_state::hp1650) +void hp16500_state::hp1650(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", M68000, 10000000) - MCFG_DEVICE_PROGRAM_MAP(hp1650_map) + M68000(config, m_maincpu, 10000000); + m_maincpu->set_addrmap(AS_PROGRAM, &hp16500_state::hp1650_map); - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_RAW_PARAMS(25000000, 0x330, 0, 0x250, 0x198, 0, 0x180 ) - MCFG_SCREEN_UPDATE_DEVICE( "crtc", mc6845_device, screen_update ) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_raw(25000000, 0x330, 0, 0x250, 0x198, 0, 0x180); + screen.set_screen_update("crtc", FUNC(mc6845_device::screen_update)); mc6845_device &crtc(MC6845(config, "crtc", 25000000/9)); crtc.set_screen("screen"); @@ -429,20 +430,21 @@ MACHINE_CONFIG_START(hp16500_state::hp1650) crtc.set_update_row_callback(FUNC(hp16500_state::crtc_update_row_1650), this); crtc.out_vsync_callback().set(FUNC(hp16500_state::vsync_changed)); - MCFG_DEVICE_ADD("epci", MC2661, 5000000) + MC2661(config, "epci", 5000000); SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); -MACHINE_CONFIG_END +} -MACHINE_CONFIG_START(hp16500_state::hp1651) +void hp16500_state::hp1651(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", M68000, 10000000) - MCFG_DEVICE_PROGRAM_MAP(hp1651_map) + M68000(config, m_maincpu, 10000000); + m_maincpu->set_addrmap(AS_PROGRAM, &hp16500_state::hp1651_map); - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_RAW_PARAMS(25000000, 0x330, 0, 0x250, 0x198, 0, 0x180 ) - MCFG_SCREEN_UPDATE_DEVICE( "crtc", mc6845_device, screen_update ) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_raw(25000000, 0x330, 0, 0x250, 0x198, 0, 0x180); + screen.set_screen_update("crtc", FUNC(mc6845_device::screen_update)); mc6845_device &crtc(MC6845(config, "crtc", 25000000/9)); crtc.set_screen("screen"); @@ -451,20 +453,21 @@ MACHINE_CONFIG_START(hp16500_state::hp1651) crtc.set_update_row_callback(FUNC(hp16500_state::crtc_update_row_1650), this); crtc.out_vsync_callback().set(FUNC(hp16500_state::vsync_changed)); - MCFG_DEVICE_ADD("epci", MC2661, 5000000) + MC2661(config, "epci", 5000000); SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); -MACHINE_CONFIG_END +} -MACHINE_CONFIG_START(hp16500_state::hp16500a) +void hp16500_state::hp16500a(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", M68000, 10000000) - MCFG_DEVICE_PROGRAM_MAP(hp16500a_map) + M68000(config, m_maincpu, 10000000); + m_maincpu->set_addrmap(AS_PROGRAM, &hp16500_state::hp16500a_map); - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_RAW_PARAMS(25000000, 0x320, 0, 0x240, 0x19c, 0, 0x170 ) - MCFG_SCREEN_UPDATE_DEVICE( "crtc", mc6845_device, screen_update ) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_raw(25000000, 0x320, 0, 0x240, 0x19c, 0, 0x170); + screen.set_screen_update("crtc", FUNC(mc6845_device::screen_update)); mc6845_device &crtc(MC6845(config, "crtc", 25000000/9)); crtc.set_screen("screen"); @@ -475,7 +478,7 @@ MACHINE_CONFIG_START(hp16500_state::hp16500a) SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); -MACHINE_CONFIG_END +} void hp16500_state::hp16500b(machine_config &config) { |