diff options
Diffstat (limited to 'src/devices/bus/adamnet/printer.cpp')
-rw-r--r-- | src/devices/bus/adamnet/printer.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/devices/bus/adamnet/printer.cpp b/src/devices/bus/adamnet/printer.cpp index 511de1f8bd8..2f9165d3eaf 100644 --- a/src/devices/bus/adamnet/printer.cpp +++ b/src/devices/bus/adamnet/printer.cpp @@ -50,23 +50,25 @@ const tiny_rom_entry *adam_printer_device::device_rom_region() const // ADDRESS_MAP( adam_prn_mem ) //------------------------------------------------- -ADDRESS_MAP_START(adam_printer_device::adam_prn_mem) - AM_RANGE(0x0000, 0x001f) AM_DEVREADWRITE(M6801_TAG, m6801_cpu_device, m6801_io_r, m6801_io_w) - AM_RANGE(0x0080, 0x00ff) AM_RAM - AM_RANGE(0xf800, 0xffff) AM_ROM AM_REGION(M6801_TAG, 0) -ADDRESS_MAP_END +void adam_printer_device::adam_prn_mem(address_map &map) +{ + map(0x0000, 0x001f).rw(M6801_TAG, FUNC(m6801_cpu_device::m6801_io_r), FUNC(m6801_cpu_device::m6801_io_w)); + map(0x0080, 0x00ff).ram(); + map(0xf800, 0xffff).rom().region(M6801_TAG, 0); +} //------------------------------------------------- // ADDRESS_MAP( adam_prn_io ) //------------------------------------------------- -ADDRESS_MAP_START(adam_printer_device::adam_prn_io) - AM_RANGE(M6801_PORT1, M6801_PORT1) AM_WRITE(p1_w) - AM_RANGE(M6801_PORT2, M6801_PORT2) AM_READWRITE(p2_r, p2_w) - AM_RANGE(M6801_PORT3, M6801_PORT3) AM_READ(p3_r) - AM_RANGE(M6801_PORT4, M6801_PORT4) AM_READWRITE(p4_r, p4_w) -ADDRESS_MAP_END +void adam_printer_device::adam_prn_io(address_map &map) +{ + map(M6801_PORT1, M6801_PORT1).w(this, FUNC(adam_printer_device::p1_w)); + map(M6801_PORT2, M6801_PORT2).rw(this, FUNC(adam_printer_device::p2_r), FUNC(adam_printer_device::p2_w)); + map(M6801_PORT3, M6801_PORT3).r(this, FUNC(adam_printer_device::p3_r)); + map(M6801_PORT4, M6801_PORT4).rw(this, FUNC(adam_printer_device::p4_r), FUNC(adam_printer_device::p4_w)); +} //------------------------------------------------- |