diff options
Diffstat (limited to 'src/devices/bus/ieee488/hp9122c.cpp')
-rw-r--r-- | src/devices/bus/ieee488/hp9122c.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/devices/bus/ieee488/hp9122c.cpp b/src/devices/bus/ieee488/hp9122c.cpp index 9d7f77fed51..808deae2069 100644 --- a/src/devices/bus/ieee488/hp9122c.cpp +++ b/src/devices/bus/ieee488/hp9122c.cpp @@ -376,13 +376,14 @@ void hp9122c_device::cpu_map(address_map &map) map(0xc000, 0xffff).rom().region("cpu", 0); } -MACHINE_CONFIG_START(hp9122c_device::device_add_mconfig) - MCFG_DEVICE_ADD("cpu" , MC6809 , XTAL(8'000'000)) - MCFG_DEVICE_PROGRAM_MAP(cpu_map) +void hp9122c_device::device_add_mconfig(machine_config &config) +{ + MC6809(config, m_cpu, XTAL(8'000'000)); + m_cpu->set_addrmap(AS_PROGRAM, &hp9122c_device::cpu_map); // without this flag, 'DMA' transfer via SYNC instruction // will not work - MCFG_QUANTUM_PERFECT_CPU("cpu") + config.m_perfect_cpu_quantum = subtag("cpu"); MB8876(config, m_fdc, 8_MHz_XTAL / 4); m_fdc->intrq_wr_callback().set(FUNC(hp9122c_device::fdc_intrq_w)); @@ -399,11 +400,7 @@ MACHINE_CONFIG_START(hp9122c_device::device_add_mconfig) m_i8291a->int_write().set(FUNC(hp9122c_device::i8291a_int_w)); m_i8291a->dreq_write().set(FUNC(hp9122c_device::i8291a_dreq_w)); - MCFG_FLOPPY_DRIVE_ADD("floppy0" , hp9122c_floppies , "35hd" , hp9122c_floppy_formats) - MCFG_FLOPPY_DRIVE_SOUND(true) - MCFG_SLOT_FIXED(true) - MCFG_FLOPPY_DRIVE_ADD("floppy1" , hp9122c_floppies , "35hd" , hp9122c_floppy_formats) - MCFG_FLOPPY_DRIVE_SOUND(true) - MCFG_SLOT_FIXED(true) + FLOPPY_CONNECTOR(config, "floppy0" , hp9122c_floppies , "35hd" , hp9122c_floppy_formats, true).enable_sound(true); + FLOPPY_CONNECTOR(config, "floppy1" , hp9122c_floppies , "35hd" , hp9122c_floppy_formats, true).enable_sound(true); config.set_default_layout(layout_hp9122c); -MACHINE_CONFIG_END +} |