summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/higemaru.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/higemaru.cpp')
-rw-r--r--src/mame/drivers/higemaru.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/mame/drivers/higemaru.cpp b/src/mame/drivers/higemaru.cpp
index c3e24da5083..790ff23fe37 100644
--- a/src/mame/drivers/higemaru.cpp
+++ b/src/mame/drivers/higemaru.cpp
@@ -33,21 +33,22 @@ TIMER_DEVICE_CALLBACK_MEMBER(higemaru_state::higemaru_scanline)
}
-ADDRESS_MAP_START(higemaru_state::higemaru_map)
- AM_RANGE(0x0000, 0x7fff) AM_ROM
- AM_RANGE(0xc000, 0xc000) AM_READ_PORT("P1")
- AM_RANGE(0xc001, 0xc001) AM_READ_PORT("P2")
- AM_RANGE(0xc002, 0xc002) AM_READ_PORT("SYSTEM")
- AM_RANGE(0xc003, 0xc003) AM_READ_PORT("DSW1")
- AM_RANGE(0xc004, 0xc004) AM_READ_PORT("DSW2")
- AM_RANGE(0xc800, 0xc800) AM_WRITE(higemaru_c800_w)
- AM_RANGE(0xc801, 0xc802) AM_DEVWRITE("ay1", ay8910_device, address_data_w)
- AM_RANGE(0xc803, 0xc804) AM_DEVWRITE("ay2", ay8910_device, address_data_w)
- AM_RANGE(0xd000, 0xd3ff) AM_RAM_WRITE(higemaru_videoram_w) AM_SHARE("videoram")
- AM_RANGE(0xd400, 0xd7ff) AM_RAM_WRITE(higemaru_colorram_w) AM_SHARE("colorram")
- AM_RANGE(0xd880, 0xd9ff) AM_RAM AM_SHARE("spriteram")
- AM_RANGE(0xe000, 0xefff) AM_RAM
-ADDRESS_MAP_END
+void higemaru_state::higemaru_map(address_map &map)
+{
+ map(0x0000, 0x7fff).rom();
+ map(0xc000, 0xc000).portr("P1");
+ map(0xc001, 0xc001).portr("P2");
+ map(0xc002, 0xc002).portr("SYSTEM");
+ map(0xc003, 0xc003).portr("DSW1");
+ map(0xc004, 0xc004).portr("DSW2");
+ map(0xc800, 0xc800).w(this, FUNC(higemaru_state::higemaru_c800_w));
+ map(0xc801, 0xc802).w("ay1", FUNC(ay8910_device::address_data_w));
+ map(0xc803, 0xc804).w("ay2", FUNC(ay8910_device::address_data_w));
+ map(0xd000, 0xd3ff).ram().w(this, FUNC(higemaru_state::higemaru_videoram_w)).share("videoram");
+ map(0xd400, 0xd7ff).ram().w(this, FUNC(higemaru_state::higemaru_colorram_w)).share("colorram");
+ map(0xd880, 0xd9ff).ram().share("spriteram");
+ map(0xe000, 0xefff).ram();
+}
static INPUT_PORTS_START( higemaru )