summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/replicator.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-02-01 10:04:01 +0100
committer Olivier Galibert <galibert@pobox.com>2018-02-12 10:04:52 +0100
commitc5219643162cb7d2a8688425a09008d28c8e2437 (patch)
treef2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/replicator.cpp
parent09b6ce46873b38de9030a3c0378ff327f17af881 (diff)
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible soon.
Diffstat (limited to 'src/mame/drivers/replicator.cpp')
-rw-r--r--src/mame/drivers/replicator.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/replicator.cpp b/src/mame/drivers/replicator.cpp
index 69bbf55d92d..3d488f3a951 100644
--- a/src/mame/drivers/replicator.cpp
+++ b/src/mame/drivers/replicator.cpp
@@ -187,6 +187,9 @@ public:
virtual void machine_reset() override;
DECLARE_PALETTE_INIT(replicator);
void replicator(machine_config &config);
+ void replicator_data_map(address_map &map);
+ void replicator_io_map(address_map &map);
+ void replicator_prg_map(address_map &map);
};
void replicator_state::machine_start()
@@ -529,15 +532,15 @@ WRITE8_MEMBER(replicator_state::port_w)
* Address maps *
\****************************************************/
-static ADDRESS_MAP_START( replicator_prg_map, AS_PROGRAM, 8, replicator_state )
+ADDRESS_MAP_START(replicator_state::replicator_prg_map)
AM_RANGE(0x0000, 0x1FFFF) AM_ROM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( replicator_data_map, AS_DATA, 8, replicator_state )
+ADDRESS_MAP_START(replicator_state::replicator_data_map)
AM_RANGE(0x0200, 0x21FF) AM_RAM /* ATMEGA1280 Internal SRAM */
ADDRESS_MAP_END
-static ADDRESS_MAP_START( replicator_io_map, AS_IO, 8, replicator_state )
+ADDRESS_MAP_START(replicator_state::replicator_io_map)
AM_RANGE(AVR8_IO_PORTA, AVR8_IO_PORTL) AM_READWRITE( port_r, port_w )
ADDRESS_MAP_END