summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bogeyman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bogeyman.cpp')
-rw-r--r--src/mame/drivers/bogeyman.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/mame/drivers/bogeyman.cpp b/src/mame/drivers/bogeyman.cpp
index 8c10a6efd21..e4b4ead65a8 100644
--- a/src/mame/drivers/bogeyman.cpp
+++ b/src/mame/drivers/bogeyman.cpp
@@ -48,20 +48,21 @@ WRITE8_MEMBER(bogeyman_state::ay8910_control_w)
/* Memory Map */
-ADDRESS_MAP_START(bogeyman_state::bogeyman_map)
- AM_RANGE(0x0000, 0x17ff) AM_RAM
- AM_RANGE(0x1800, 0x1bff) AM_RAM_WRITE(videoram2_w) AM_SHARE("videoram2")
- AM_RANGE(0x1c00, 0x1fff) AM_RAM_WRITE(colorram2_w) AM_SHARE("colorram2")
- AM_RANGE(0x2000, 0x20ff) AM_RAM_WRITE(videoram_w) AM_SHARE("videoram")
- AM_RANGE(0x2100, 0x21ff) AM_RAM_WRITE(colorram_w) AM_SHARE("colorram")
- AM_RANGE(0x2800, 0x2bff) AM_RAM AM_SHARE("spriteram")
- AM_RANGE(0x3000, 0x300f) AM_RAM_DEVWRITE("palette", palette_device, write8) AM_SHARE("palette")
- AM_RANGE(0x3800, 0x3800) AM_READ_PORT("P1") AM_WRITE(ay8910_control_w)
- AM_RANGE(0x3801, 0x3801) AM_READ_PORT("P2") AM_WRITE(ay8910_latch_w)
- AM_RANGE(0x3802, 0x3802) AM_READ_PORT("DSW1")
- AM_RANGE(0x3803, 0x3803) AM_READ_PORT("DSW2") AM_WRITENOP // ??? sound
- AM_RANGE(0x4000, 0xffff) AM_ROM
-ADDRESS_MAP_END
+void bogeyman_state::bogeyman_map(address_map &map)
+{
+ map(0x0000, 0x17ff).ram();
+ map(0x1800, 0x1bff).ram().w(this, FUNC(bogeyman_state::videoram2_w)).share("videoram2");
+ map(0x1c00, 0x1fff).ram().w(this, FUNC(bogeyman_state::colorram2_w)).share("colorram2");
+ map(0x2000, 0x20ff).ram().w(this, FUNC(bogeyman_state::videoram_w)).share("videoram");
+ map(0x2100, 0x21ff).ram().w(this, FUNC(bogeyman_state::colorram_w)).share("colorram");
+ map(0x2800, 0x2bff).ram().share("spriteram");
+ map(0x3000, 0x300f).ram().w(m_palette, FUNC(palette_device::write8)).share("palette");
+ map(0x3800, 0x3800).portr("P1").w(this, FUNC(bogeyman_state::ay8910_control_w));
+ map(0x3801, 0x3801).portr("P2").w(this, FUNC(bogeyman_state::ay8910_latch_w));
+ map(0x3802, 0x3802).portr("DSW1");
+ map(0x3803, 0x3803).portr("DSW2").nopw(); // ??? sound
+ map(0x4000, 0xffff).rom();
+}
/* Input Ports */