summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/prof180x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/prof180x.cpp')
-rw-r--r--src/mame/drivers/prof180x.cpp43
1 files changed, 20 insertions, 23 deletions
diff --git a/src/mame/drivers/prof180x.cpp b/src/mame/drivers/prof180x.cpp
index 6deb8e8301e..5c50a37cf6c 100644
--- a/src/mame/drivers/prof180x.cpp
+++ b/src/mame/drivers/prof180x.cpp
@@ -196,7 +196,7 @@ void prof180x_state::prof180x_io(address_map &map)
{
map(0x08, 0x08).mirror(0xff00).w(FUNC(prof180x_state::flr_w));
map(0x09, 0x09).select(0xff00).r(FUNC(prof180x_state::status_r));
- map(0x0a, 0x0a).mirror(0xff00).rw(FDC9268_TAG, FUNC(upd765a_device::dma_r), FUNC(upd765a_device::dma_w));
+ map(0x0a, 0x0a).mirror(0xff00).rw(FDC9268_TAG, FUNC(upd765a_device::mdma_r), FUNC(upd765a_device::mdma_w));
map(0x0b, 0x0b).mirror(0xff00).w("cent_data_out", FUNC(output_latch_device::bus_w));
map(0x0c, 0x0d).mirror(0xff00).m(FDC9268_TAG, FUNC(upd765a_device::map));
}
@@ -238,41 +238,38 @@ void prof180x_state::machine_reset()
}
}
-void prof180x_state::prof180x(machine_config &config)
-{
+MACHINE_CONFIG_START(prof180x_state::prof180x)
/* basic machine hardware */
- z80_device &maincpu(Z80(config, HD64180_TAG, XTAL(9'216'000)));
- maincpu.set_addrmap(AS_PROGRAM, &prof180x_state::prof180x_mem);
- maincpu.set_addrmap(AS_IO, &prof180x_state::prof180x_io);
+ MCFG_DEVICE_ADD(HD64180_TAG, Z80, XTAL(9'216'000))
+ MCFG_DEVICE_PROGRAM_MAP(prof180x_mem)
+ MCFG_DEVICE_IO_MAP(prof180x_io)
/* video hardware */
- screen_device &screen(SCREEN(config, SCREEN_TAG, SCREEN_TYPE_RASTER));
- screen.set_screen_update(FUNC(prof180x_state::screen_update));
- screen.set_refresh_hz(50);
- screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
- screen.set_size(640, 480);
- screen.set_visarea(0, 640-1, 0, 480-1);
+ MCFG_SCREEN_ADD(SCREEN_TAG, RASTER)
+ MCFG_SCREEN_UPDATE_DRIVER(prof180x_state, screen_update)
+ MCFG_SCREEN_REFRESH_RATE(50)
+ MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
+ MCFG_SCREEN_SIZE(640, 480)
+ MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
/* devices */
UPD765A(config, FDC9268_TAG, 8'000'000, false, true);
- FLOPPY_CONNECTOR(config, FDC9268_TAG ":0", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats);
- FLOPPY_CONNECTOR(config, FDC9268_TAG ":1", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats);
- FLOPPY_CONNECTOR(config, FDC9268_TAG ":2", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats);
- FLOPPY_CONNECTOR(config, FDC9268_TAG ":3", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats);
-
- //RTC8583(config, MK3835_TAG, rtc_intf);
+ MCFG_FLOPPY_DRIVE_ADD(FDC9268_TAG ":0", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FDC9268_TAG ":1", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FDC9268_TAG ":2", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FDC9268_TAG ":3", prof180x_floppies, "35dd", floppy_image_device::default_floppy_formats)
- CENTRONICS(config, m_centronics, centronics_devices, "printer");
+ //MCFG_RTC8583_ADD(MK3835_TAG, rtc_intf)
+ MCFG_DEVICE_ADD(m_centronics, CENTRONICS, centronics_devices, "printer")
- output_latch_device &latch(OUTPUT_LATCH(config, "cent_data_out"));
- m_centronics->set_output_latch(latch);
+ MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
/* internal ram */
RAM(config, RAM_TAG).set_default_size("128K").set_extra_options("256K,512K");
/* software lists */
- SOFTWARE_LIST(config, "flop_list").set_original("prof180");
-}
+ MCFG_SOFTWARE_LIST_ADD("flop_list", "prof180")
+MACHINE_CONFIG_END
/* ROM definition */