summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hp16500.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hp16500.cpp')
-rw-r--r--src/mame/drivers/hp16500.cpp49
1 files changed, 23 insertions, 26 deletions
diff --git a/src/mame/drivers/hp16500.cpp b/src/mame/drivers/hp16500.cpp
index 4ed4e5bd469..f3bc942d289 100644
--- a/src/mame/drivers/hp16500.cpp
+++ b/src/mame/drivers/hp16500.cpp
@@ -413,15 +413,14 @@ uint32_t hp16500_state::screen_update_hp16500(screen_device &screen, bitmap_rgb3
return 0;
}
-void hp16500_state::hp1650(machine_config &config)
-{
+MACHINE_CONFIG_START(hp16500_state::hp1650)
/* basic machine hardware */
- M68000(config, m_maincpu, 10000000);
- m_maincpu->set_addrmap(AS_PROGRAM, &hp16500_state::hp1650_map);
+ MCFG_DEVICE_ADD("maincpu", M68000, 10000000)
+ MCFG_DEVICE_PROGRAM_MAP(hp1650_map)
- 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));
+ 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 )
mc6845_device &crtc(MC6845(config, "crtc", 25000000/9));
crtc.set_screen("screen");
@@ -430,21 +429,20 @@ void hp16500_state::hp1650(machine_config &config)
crtc.set_update_row_callback(FUNC(hp16500_state::crtc_update_row_1650), this);
crtc.out_vsync_callback().set(FUNC(hp16500_state::vsync_changed));
- MC2661(config, "epci", 5000000);
+ MCFG_DEVICE_ADD("epci", MC2661, 5000000)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
-}
+MACHINE_CONFIG_END
-void hp16500_state::hp1651(machine_config &config)
-{
+MACHINE_CONFIG_START(hp16500_state::hp1651)
/* basic machine hardware */
- M68000(config, m_maincpu, 10000000);
- m_maincpu->set_addrmap(AS_PROGRAM, &hp16500_state::hp1651_map);
+ MCFG_DEVICE_ADD("maincpu", M68000, 10000000)
+ MCFG_DEVICE_PROGRAM_MAP(hp1651_map)
- 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));
+ 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 )
mc6845_device &crtc(MC6845(config, "crtc", 25000000/9));
crtc.set_screen("screen");
@@ -453,21 +451,20 @@ void hp16500_state::hp1651(machine_config &config)
crtc.set_update_row_callback(FUNC(hp16500_state::crtc_update_row_1650), this);
crtc.out_vsync_callback().set(FUNC(hp16500_state::vsync_changed));
- MC2661(config, "epci", 5000000);
+ MCFG_DEVICE_ADD("epci", MC2661, 5000000)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
-}
+MACHINE_CONFIG_END
-void hp16500_state::hp16500a(machine_config &config)
-{
+MACHINE_CONFIG_START(hp16500_state::hp16500a)
/* basic machine hardware */
- M68000(config, m_maincpu, 10000000);
- m_maincpu->set_addrmap(AS_PROGRAM, &hp16500_state::hp16500a_map);
+ MCFG_DEVICE_ADD("maincpu", M68000, 10000000)
+ MCFG_DEVICE_PROGRAM_MAP(hp16500a_map)
- 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));
+ 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 )
mc6845_device &crtc(MC6845(config, "crtc", 25000000/9));
crtc.set_screen("screen");
@@ -478,7 +475,7 @@ void hp16500_state::hp16500a(machine_config &config)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
-}
+MACHINE_CONFIG_END
void hp16500_state::hp16500b(machine_config &config)
{