summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/shougi.cpp
diff options
context:
space:
mode:
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