summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dday.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dday.cpp')
-rw-r--r--src/mame/drivers/dday.cpp33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/mame/drivers/dday.cpp b/src/mame/drivers/dday.cpp
index 74242aaf235..9fa0fb511fc 100644
--- a/src/mame/drivers/dday.cpp
+++ b/src/mame/drivers/dday.cpp
@@ -58,22 +58,23 @@ write:
#include "speaker.h"
-ADDRESS_MAP_START(dday_state::dday_map)
- AM_RANGE(0x0000, 0x3fff) AM_ROM
- AM_RANGE(0x4000, 0x4000) AM_WRITE(dday_sl_control_w)
- AM_RANGE(0x5000, 0x53ff) AM_RAM_WRITE(dday_textvideoram_w) AM_SHARE("textvideoram")
- AM_RANGE(0x5400, 0x57ff) AM_RAM_WRITE(dday_fgvideoram_w) AM_SHARE("fgvideoram")
- AM_RANGE(0x5800, 0x5bff) AM_RAM_WRITE(dday_bgvideoram_w) AM_SHARE("bgvideoram")
- AM_RANGE(0x5c00, 0x5fff) AM_READWRITE(dday_colorram_r, dday_colorram_w) AM_SHARE("colorram")
- AM_RANGE(0x6000, 0x63ff) AM_RAM
- AM_RANGE(0x6400, 0x6401) AM_MIRROR(0x000e) AM_DEVWRITE("ay1", ay8910_device, address_data_w)
- AM_RANGE(0x6800, 0x6801) AM_DEVWRITE("ay2", ay8910_device, address_data_w)
- AM_RANGE(0x6c00, 0x6c00) AM_READ_PORT("BUTTONS")
- AM_RANGE(0x7000, 0x7000) AM_READ_PORT("DSW0")
- AM_RANGE(0x7400, 0x7400) AM_READ_PORT("DSW1")
- AM_RANGE(0x7800, 0x7800) AM_READWRITE(dday_countdown_timer_r, dday_control_w)
- AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("PADDLE")
-ADDRESS_MAP_END
+void dday_state::dday_map(address_map &map)
+{
+ map(0x0000, 0x3fff).rom();
+ map(0x4000, 0x4000).w(this, FUNC(dday_state::dday_sl_control_w));
+ map(0x5000, 0x53ff).ram().w(this, FUNC(dday_state::dday_textvideoram_w)).share("textvideoram");
+ map(0x5400, 0x57ff).ram().w(this, FUNC(dday_state::dday_fgvideoram_w)).share("fgvideoram");
+ map(0x5800, 0x5bff).ram().w(this, FUNC(dday_state::dday_bgvideoram_w)).share("bgvideoram");
+ map(0x5c00, 0x5fff).rw(this, FUNC(dday_state::dday_colorram_r), FUNC(dday_state::dday_colorram_w)).share("colorram");
+ map(0x6000, 0x63ff).ram();
+ map(0x6400, 0x6401).mirror(0x000e).w(m_ay1, FUNC(ay8910_device::address_data_w));
+ map(0x6800, 0x6801).w("ay2", FUNC(ay8910_device::address_data_w));
+ map(0x6c00, 0x6c00).portr("BUTTONS");
+ map(0x7000, 0x7000).portr("DSW0");
+ map(0x7400, 0x7400).portr("DSW1");
+ map(0x7800, 0x7800).rw(this, FUNC(dday_state::dday_countdown_timer_r), FUNC(dday_state::dday_control_w));
+ map(0x7c00, 0x7c00).portr("PADDLE");
+}