summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ti99_8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ti99_8.cpp')
-rw-r--r--src/mame/drivers/ti99_8.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mame/drivers/ti99_8.cpp b/src/mame/drivers/ti99_8.cpp
index 66cb6e44a0b..cc515c5ae1a 100644
--- a/src/mame/drivers/ti99_8.cpp
+++ b/src/mame/drivers/ti99_8.cpp
@@ -292,9 +292,10 @@ private:
Memory map. We have a configurable mapper, so we need to delegate the
job to the mapper completely.
*/
-ADDRESS_MAP_START(ti99_8_state::memmap)
- AM_RANGE(0x0000, 0xffff) AM_DEVREADWRITE(TI998_MAINBOARD_TAG, bus::ti99::internal::mainboard8_device, read, write) AM_DEVSETOFFSET(TI998_MAINBOARD_TAG, bus::ti99::internal::mainboard8_device, setoffset)
-ADDRESS_MAP_END
+void ti99_8_state::memmap(address_map &map)
+{
+ map(0x0000, 0xffff).rw(TI998_MAINBOARD_TAG, FUNC(bus::ti99::internal::mainboard8_device::read), FUNC(bus::ti99::internal::mainboard8_device::write)).setoffset(TI998_MAINBOARD_TAG, FUNC(bus::ti99::internal::mainboard8_device::setoffset));
+}
/*
CRU map - see description above
@@ -303,13 +304,14 @@ ADDRESS_MAP_END
(decoded by the "Vaquerro" chip, signal NNOICS*)
*/
-ADDRESS_MAP_START(ti99_8_state::crumap)
- AM_RANGE(0x0000, 0x02ff) AM_READ(cruread)
- AM_RANGE(0x0000, 0x0003) AM_DEVREAD(TI_TMS9901_TAG, tms9901_device, read)
+void ti99_8_state::crumap(address_map &map)
+{
+ map(0x0000, 0x02ff).r(this, FUNC(ti99_8_state::cruread));
+ map(0x0000, 0x0003).r(m_tms9901, FUNC(tms9901_device::read));
- AM_RANGE(0x0000, 0x17ff) AM_WRITE(cruwrite)
- AM_RANGE(0x0000, 0x001f) AM_DEVWRITE(TI_TMS9901_TAG, tms9901_device, write)
-ADDRESS_MAP_END
+ map(0x0000, 0x17ff).w(this, FUNC(ti99_8_state::cruwrite));
+ map(0x0000, 0x001f).w(m_tms9901, FUNC(tms9901_device::write));
+}
/* ti99/8 : 54-key keyboard */
static INPUT_PORTS_START(ti99_8)