summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/dmv/k230.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-04-21 13:26:02 +0200
committer Olivier Galibert <galibert@pobox.com>2018-04-21 13:27:17 +0200
commitb44fe96e40b3ba347682979832d1d7b50627f668 (patch)
treed3f5b9dd6364c253fc7646ce6c1192354bed5894 /src/devices/bus/dmv/k230.cpp
parent9a35d98c6e223bfa3c2702af5b9388855eddfcd4 (diff)
maps: Finish devices/bus (nw)
That's it for ADDRESS_MAP_START. Please don't try to remove the macros yet, let's wait for a full release before that so that the forks can catch up.
Diffstat (limited to 'src/devices/bus/dmv/k230.cpp')
-rw-r--r--src/devices/bus/dmv/k230.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/devices/bus/dmv/k230.cpp b/src/devices/bus/dmv/k230.cpp
index cc86c45e7bf..bbf0efdb1cb 100644
--- a/src/devices/bus/dmv/k230.cpp
+++ b/src/devices/bus/dmv/k230.cpp
@@ -46,18 +46,20 @@ void dmv_k230_device::k230_io(address_map &map)
map(0x00, 0xff).rw(this, FUNC(dmv_k230_device::io_r), FUNC(dmv_k230_device::io_w));
}
-ADDRESS_MAP_START(dmv_k230_device::k234_mem)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE( 0x00000, 0x7ffff ) AM_READWRITE(program_r, program_w)
- AM_RANGE( 0xfff00, 0xfffff ) AM_READWRITE(io_r, io_w)
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(dmv_k230_device::k235_io)
- ADDRESS_MAP_UNMAP_HIGH
- ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE( 0x00, 0xff ) AM_READWRITE(io_r, io_w)
- AM_RANGE( 0x90, 0x91 ) AM_DEVREADWRITE("pic8259", pic8259_device, read, write)
-ADDRESS_MAP_END
+void dmv_k230_device::k234_mem(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x00000, 0x7ffff).rw(this, FUNC(dmv_k230_device::program_r), FUNC(dmv_k230_device::program_w));
+ map(0xfff00, 0xfffff).rw(this, FUNC(dmv_k230_device::io_r), FUNC(dmv_k230_device::io_w));
+}
+
+void dmv_k230_device::k235_io(address_map &map)
+{
+ map.unmap_value_high();
+ map.global_mask(0xff);
+ map(0x00, 0xff).rw(this, FUNC(dmv_k230_device::io_r), FUNC(dmv_k230_device::io_w));
+ map(0x90, 0x91).rw("pic8259", FUNC(pic8259_device::read), FUNC(pic8259_device::write));
+}
static INPUT_PORTS_START( dmv_k235 )
PORT_START("DSW")