summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/microkit.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/microkit.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/microkit.cpp')
-rw-r--r--src/mame/drivers/microkit.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/microkit.cpp b/src/mame/drivers/microkit.cpp
index 21696f72e8f..fe216a8d688 100644
--- a/src/mame/drivers/microkit.cpp
+++ b/src/mame/drivers/microkit.cpp
@@ -54,6 +54,8 @@ public:
DECLARE_READ8_MEMBER(ram_r);
void microkit(machine_config &config);
+ void microkit_io(address_map &map);
+ void microkit_mem(address_map &map);
private:
virtual void machine_reset() override;
uint8_t m_resetcnt;
@@ -63,13 +65,13 @@ private:
required_device<generic_terminal_device> m_terminal;
};
-static ADDRESS_MAP_START( microkit_mem, AS_PROGRAM, 8, microkit_state )
+ADDRESS_MAP_START(microkit_state::microkit_mem)
AM_RANGE(0x0000, 0x0000) AM_READWRITE(ram_r,ram_w)
AM_RANGE(0x8000, 0x81ff) AM_ROM AM_REGION("maincpu", 0)
AM_RANGE(0x8200, 0x83ff) AM_RAM
ADDRESS_MAP_END
-static ADDRESS_MAP_START( microkit_io, AS_IO, 8, microkit_state )
+ADDRESS_MAP_START(microkit_state::microkit_io)
AM_RANGE(0x07, 0x07) AM_WRITENOP // writes a lots of zeros here
ADDRESS_MAP_END