summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ieee488/hp9895.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ieee488/hp9895.cpp')
-rw-r--r--src/devices/bus/ieee488/hp9895.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/devices/bus/ieee488/hp9895.cpp b/src/devices/bus/ieee488/hp9895.cpp
index 72d99ce1c4f..2e15e9d4279 100644
--- a/src/devices/bus/ieee488/hp9895.cpp
+++ b/src/devices/bus/ieee488/hp9895.cpp
@@ -885,11 +885,12 @@ const tiny_rom_entry *hp9895_device::device_rom_region() const
return ROM_NAME(hp9895);
}
-MACHINE_CONFIG_START(hp9895_device::device_add_mconfig)
- MCFG_DEVICE_ADD("cpu" , Z80 , 4000000)
- MCFG_DEVICE_PROGRAM_MAP(z80_program_map)
- MCFG_DEVICE_IO_MAP(z80_io_map)
- MCFG_Z80_SET_REFRESH_CALLBACK(WRITE8(*this, hp9895_device , z80_m1_w))
+void hp9895_device::device_add_mconfig(machine_config &config)
+{
+ Z80(config, m_cpu, 4000000);
+ m_cpu->set_addrmap(AS_PROGRAM, &hp9895_device::z80_program_map);
+ m_cpu->set_addrmap(AS_IO, &hp9895_device::z80_io_map);
+ m_cpu->refresh_cb().set(FUNC(hp9895_device::z80_m1_w));
PHI(config, m_phi, 0);
m_phi->signal_write_cb<phi_device::PHI_488_EOI>().set(FUNC(hp9895_device::phi_eoi_w));
@@ -905,8 +906,6 @@ MACHINE_CONFIG_START(hp9895_device::device_add_mconfig)
m_phi->int_write_cb().set(FUNC(hp9895_device::phi_int_w));
m_phi->sys_cntrl_read_cb().set_constant(0);
- MCFG_FLOPPY_DRIVE_ADD("floppy0" , hp9895_floppies , "8dsdd" , hp9895_floppy_formats)
- MCFG_SLOT_FIXED(true)
- MCFG_FLOPPY_DRIVE_ADD("floppy1" , hp9895_floppies , "8dsdd" , hp9895_floppy_formats)
- MCFG_SLOT_FIXED(true)
-MACHINE_CONFIG_END
+ FLOPPY_CONNECTOR(config, "floppy0", hp9895_floppies, "8dsdd", hp9895_floppy_formats).set_fixed(true);
+ FLOPPY_CONNECTOR(config, "floppy1", hp9895_floppies, "8dsdd", hp9895_floppy_formats).set_fixed(true);
+}