diff options
author | 2018-03-13 07:36:43 +0100 | |
---|---|---|
committer | 2018-03-14 14:07:14 +0100 | |
commit | 115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch) | |
tree | f0230f547f6c750f9974c61479eef28cbe4ad571 /src/devices/bus/abckb/abc77.cpp | |
parent | f155992daab88ad024cec995428a67108218b51d (diff) |
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/devices/bus/abckb/abc77.cpp')
-rw-r--r-- | src/devices/bus/abckb/abc77.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/devices/bus/abckb/abc77.cpp b/src/devices/bus/abckb/abc77.cpp index 3f2f58d27eb..46be92f6e1b 100644 --- a/src/devices/bus/abckb/abc77.cpp +++ b/src/devices/bus/abckb/abc77.cpp @@ -89,19 +89,21 @@ const tiny_rom_entry *abc77_device::device_rom_region() const // ADDRESS_MAP( abc77_mem ) //------------------------------------------------- -ADDRESS_MAP_START(abc77_device::abc77_map) - AM_RANGE(0x000, 0xfff) AM_ROM AM_REGION("z16", 0) -ADDRESS_MAP_END +void abc77_device::abc77_map(address_map &map) +{ + map(0x000, 0xfff).rom().region("z16", 0); +} //------------------------------------------------- // ADDRESS_MAP( abc77_io ) //------------------------------------------------- -ADDRESS_MAP_START(abc77_device::abc77_io) - AM_RANGE(0x00, 0x00) AM_MIRROR(0xff) AM_WRITE(j3_w) - AM_RANGE(0x00, 0x00) AM_MIRROR(0xff) AM_READ_PORT("DSW") -ADDRESS_MAP_END +void abc77_device::abc77_io(address_map &map) +{ + map(0x00, 0x00).mirror(0xff).w(this, FUNC(abc77_device::j3_w)); + map(0x00, 0x00).mirror(0xff).portr("DSW"); +} //------------------------------------------------- |