summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/hp9845_io/98035.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/hp9845_io/98035.cpp')
-rw-r--r--src/devices/bus/hp9845_io/98035.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/devices/bus/hp9845_io/98035.cpp b/src/devices/bus/hp9845_io/98035.cpp
index 2779651ba5b..a91be580774 100644
--- a/src/devices/bus/hp9845_io/98035.cpp
+++ b/src/devices/bus/hp9845_io/98035.cpp
@@ -756,12 +756,13 @@ const tiny_rom_entry *hp98035_io_card_device::device_rom_region() const
return ROM_NAME(hp98035);
}
-MACHINE_CONFIG_START(hp98035_io_card_device::device_add_mconfig)
- MCFG_DEVICE_ADD("np" , HP_NANOPROCESSOR , XTAL(1'000'000))
- MCFG_DEVICE_PROGRAM_MAP(np_program_map)
- MCFG_DEVICE_IO_MAP(np_io_map)
- MCFG_HP_NANO_DC_CHANGED(WRITE8(*this, hp98035_io_card_device , dc_w))
-MACHINE_CONFIG_END
+void hp98035_io_card_device::device_add_mconfig(machine_config &config)
+{
+ HP_NANOPROCESSOR(config, m_cpu, XTAL(1'000'000));
+ m_cpu->set_addrmap(AS_PROGRAM, &hp98035_io_card_device::np_program_map);
+ m_cpu->set_addrmap(AS_IO, &hp98035_io_card_device::np_io_map);
+ m_cpu->dc_changed().set(FUNC(hp98035_io_card_device::dc_w));
+}
// device type definition
DEFINE_DEVICE_TYPE(HP98035_IO_CARD, hp98035_io_card_device, "hp98035", "HP98035 card")