summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/ti74.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ti74.cpp')
-rw-r--r--src/mame/drivers/ti74.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/ti74.cpp b/src/mame/drivers/ti74.cpp
index ddecc778809..49c52b93a52 100644
--- a/src/mame/drivers/ti74.cpp
+++ b/src/mame/drivers/ti74.cpp
@@ -266,13 +266,14 @@ WRITE8_MEMBER(ti74_state::bankswitch_w)
// d3: N/C
}
-ADDRESS_MAP_START(ti74_state::main_map)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x1000, 0x1001) AM_DEVREADWRITE("hd44780", hd44780_device, read, write)
- AM_RANGE(0x2000, 0x3fff) AM_RAM AM_SHARE("sysram.ic3")
+void ti74_state::main_map(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x1000, 0x1001).rw("hd44780", FUNC(hd44780_device::read), FUNC(hd44780_device::write));
+ map(0x2000, 0x3fff).ram().share("sysram.ic3");
//AM_RANGE(0x4000, 0xbfff) // mapped by the cartslot
- AM_RANGE(0xc000, 0xdfff) AM_ROMBANK("sysbank")
-ADDRESS_MAP_END
+ map(0xc000, 0xdfff).bankr("sysbank");
+}