diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-03-13 07:36:43 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-03-14 14:07:14 +0100 |
commit | 115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch) | |
tree | f0230f547f6c750f9974c61479eef28cbe4ad571 /src/mame/drivers/ti74.cpp | |
parent | f155992daab88ad024cec995428a67108218b51d (diff) |
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/ti74.cpp')
-rw-r--r-- | src/mame/drivers/ti74.cpp | 13 |
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"); +} |