summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/starfire.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/starfire.cpp')
-rw-r--r--src/mame/drivers/starfire.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/starfire.cpp b/src/mame/drivers/starfire.cpp
index b8f42454e77..4aac999675a 100644
--- a/src/mame/drivers/starfire.cpp
+++ b/src/mame/drivers/starfire.cpp
@@ -190,12 +190,13 @@ READ8_MEMBER(starfire_state::fireone_input_r)
*
*************************************/
-ADDRESS_MAP_START(starfire_state::main_map)
- AM_RANGE(0x0000, 0x7fff) AM_ROM
- AM_RANGE(0x8000, 0x9fff) AM_READWRITE(starfire_scratch_r, starfire_scratch_w)
- AM_RANGE(0xa000, 0xbfff) AM_READWRITE(starfire_colorram_r, starfire_colorram_w) AM_SHARE("colorram")
- AM_RANGE(0xc000, 0xffff) AM_READWRITE(starfire_videoram_r, starfire_videoram_w) AM_SHARE("videoram")
-ADDRESS_MAP_END
+void starfire_state::main_map(address_map &map)
+{
+ map(0x0000, 0x7fff).rom();
+ map(0x8000, 0x9fff).rw(this, FUNC(starfire_state::starfire_scratch_r), FUNC(starfire_state::starfire_scratch_w));
+ map(0xa000, 0xbfff).rw(this, FUNC(starfire_state::starfire_colorram_r), FUNC(starfire_state::starfire_colorram_w)).share("colorram");
+ map(0xc000, 0xffff).rw(this, FUNC(starfire_state::starfire_videoram_r), FUNC(starfire_state::starfire_videoram_w)).share("videoram");
+}