summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/shougi.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/shougi.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/shougi.cpp')
-rw-r--r--src/mame/drivers/shougi.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/shougi.cpp b/src/mame/drivers/shougi.cpp
index 3bc4cd21c21..6fdfc7d6f09 100644
--- a/src/mame/drivers/shougi.cpp
+++ b/src/mame/drivers/shougi.cpp
@@ -119,6 +119,9 @@ public:
virtual void machine_start() override;
void shougi(machine_config &config);
+ void main_map(address_map &map);
+ void readport_sub(address_map &map);
+ void sub_map(address_map &map);
};
@@ -241,7 +244,7 @@ WRITE_LINE_MEMBER(shougi_state::nmi_enable_w)
}
-static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, shougi_state )
+ADDRESS_MAP_START(shougi_state::main_map)
AM_RANGE(0x0000, 0x3fff) AM_ROM
AM_RANGE(0x4000, 0x43ff) AM_RAM /* 2114 x 2 (0x400 x 4bit each) */
AM_RANGE(0x4800, 0x480f) AM_DEVWRITE("mainlatch", ls259_device, write_a3)
@@ -267,12 +270,12 @@ READ8_MEMBER(shougi_state::semaphore_r)
}
-static ADDRESS_MAP_START( sub_map, AS_PROGRAM, 8, shougi_state )
+ADDRESS_MAP_START(shougi_state::sub_map)
AM_RANGE(0x0000, 0x5fff) AM_ROM
AM_RANGE(0x6000, 0x63ff) AM_RAM AM_SHARE("sharedram") /* 2114 x 2 (0x400 x 4bit each) */
ADDRESS_MAP_END
-static ADDRESS_MAP_START( readport_sub, AS_IO, 8, shougi_state )
+ADDRESS_MAP_START(shougi_state::readport_sub)
ADDRESS_MAP_GLOBAL_MASK(0x00ff)
AM_RANGE(0x00, 0x00) AM_READ(semaphore_r)
ADDRESS_MAP_END