summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/cdp1869.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/cdp1869.cpp')
-rw-r--r--src/devices/sound/cdp1869.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/devices/sound/cdp1869.cpp b/src/devices/sound/cdp1869.cpp
index e94e69f9202..a6603ebb988 100644
--- a/src/devices/sound/cdp1869.cpp
+++ b/src/devices/sound/cdp1869.cpp
@@ -64,13 +64,14 @@ constexpr XTAL cdp1869_device::CPU_CLK_PAL;
DEFINE_DEVICE_TYPE(CDP1869, cdp1869_device, "cdp1869", "RCA CDP1869 VIS")
// I/O map
-ADDRESS_MAP_START(cdp1869_device::io_map)
- AM_RANGE(0x03, 0x03) AM_WRITE(out3_w)
- AM_RANGE(0x04, 0x04) AM_WRITE(out4_w)
- AM_RANGE(0x05, 0x05) AM_WRITE(out5_w)
- AM_RANGE(0x06, 0x06) AM_WRITE(out6_w)
- AM_RANGE(0x07, 0x07) AM_WRITE(out7_w)
-ADDRESS_MAP_END
+void cdp1869_device::io_map(address_map &map)
+{
+ map(0x03, 0x03).w(this, FUNC(cdp1869_device::out3_w));
+ map(0x04, 0x04).w(this, FUNC(cdp1869_device::out4_w));
+ map(0x05, 0x05).w(this, FUNC(cdp1869_device::out5_w));
+ map(0x06, 0x06).w(this, FUNC(cdp1869_device::out6_w));
+ map(0x07, 0x07).w(this, FUNC(cdp1869_device::out7_w));
+}
// character RAM map
void cdp1869_device::char_map(address_map &map)
@@ -85,9 +86,10 @@ void cdp1869_device::page_map(address_map &map)
}
// default address map
-ADDRESS_MAP_START(cdp1869_device::cdp1869)
- AM_RANGE(0x000, 0x7ff) AM_RAM
-ADDRESS_MAP_END
+void cdp1869_device::cdp1869(address_map &map)
+{
+ map(0x000, 0x7ff).ram();
+}