summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ryan Holtz <ryan.holtz@arrowheadgs.com>2019-02-11 07:21:32 +0100
committer Ryan Holtz <ryan.holtz@arrowheadgs.com>2019-02-11 07:21:44 +0100
commitf2d0f2ffcf51696baa2982815159c4b317467b61 (patch)
tree6eea82b97897a1aa3a1230fca37e939b7cd4fd86
parentd5960c4fb70f54fa81369410c71354580e3b7510 (diff)
newport: Removed unnecessary read/write handlers, nw
-rw-r--r--src/mame/video/newport.cpp40
-rw-r--r--src/mame/video/newport.h18
2 files changed, 29 insertions, 29 deletions
diff --git a/src/mame/video/newport.cpp b/src/mame/video/newport.cpp
index 8cbb519df63..7050c4b78f2 100644
--- a/src/mame/video/newport.cpp
+++ b/src/mame/video/newport.cpp
@@ -245,7 +245,7 @@ uint32_t newport_video_device::screen_update(screen_device &device, bitmap_rgb32
}
-WRITE32_MEMBER(newport_video_device::cmap0_w)
+void newport_video_device::cmap0_write(uint32_t data)
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -263,7 +263,7 @@ WRITE32_MEMBER(newport_video_device::cmap0_w)
}
}
-READ32_MEMBER(newport_video_device::cmap0_r)
+uint32_t newport_video_device::cmap0_read()
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -279,7 +279,7 @@ READ32_MEMBER(newport_video_device::cmap0_r)
}
}
-READ32_MEMBER(newport_video_device::cmap1_r)
+uint32_t newport_video_device::cmap1_read()
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -295,7 +295,7 @@ READ32_MEMBER(newport_video_device::cmap1_r)
}
}
-READ32_MEMBER(newport_video_device::xmap0_r)
+uint32_t newport_video_device::xmap0_read()
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -353,7 +353,7 @@ READ32_MEMBER(newport_video_device::xmap0_r)
return 0;
}
-WRITE32_MEMBER(newport_video_device::xmap0_w)
+void newport_video_device::xmap0_write(uint32_t data)
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -392,7 +392,7 @@ WRITE32_MEMBER(newport_video_device::xmap0_w)
}
}
-READ32_MEMBER(newport_video_device::xmap1_r)
+uint32_t newport_video_device::xmap1_read()
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -450,7 +450,7 @@ READ32_MEMBER(newport_video_device::xmap1_r)
return 0;
}
-WRITE32_MEMBER(newport_video_device::xmap1_w)
+void newport_video_device::xmap1_write(uint32_t data)
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -489,7 +489,7 @@ WRITE32_MEMBER(newport_video_device::xmap1_w)
}
}
-READ32_MEMBER(newport_video_device::vc2_r)
+uint32_t newport_video_device::vc2_read()
{
switch (m_rex3.m_dcb_reg_select)
{
@@ -571,7 +571,7 @@ READ32_MEMBER(newport_video_device::vc2_r)
}
}
-WRITE32_MEMBER(newport_video_device::vc2_w)
+void newport_video_device::vc2_write(uint32_t data)
{
switch (m_rex3.m_xfer_width)
{
@@ -881,15 +881,15 @@ READ32_MEMBER(newport_video_device::rex3_r)
switch (m_rex3.m_dcb_slave_select)
{
case 0x00:
- return vc2_r(space, 0, mem_mask);
+ return vc2_read();
case 0x02:
- return cmap0_r(space, 0, mem_mask);
+ return cmap0_read();
case 0x03:
- return cmap1_r(space, 0, mem_mask);
+ return cmap1_read();
case 0x05:
- return xmap0_r(space, 0, mem_mask);
+ return xmap0_read();
case 0x06:
- return xmap1_r(space, 0, mem_mask);
+ return xmap1_read();
default:
LOGMASKED(LOG_REX3, "REX3 Display Control Bus Data MSW Read: %08x\n", m_rex3.m_dcb_data_msw);
break;
@@ -1978,20 +1978,20 @@ WRITE32_MEMBER(newport_video_device::rex3_w)
switch (m_rex3.m_dcb_slave_select)
{
case 0x00:
- vc2_w(space, 0, data, mem_mask);
+ vc2_write(data);
break;
case 0x01:
- cmap0_w(space, 0, data, mem_mask);
+ cmap0_write(data);
break;
case 0x04:
- xmap0_w(space, 0, data, mem_mask);
- xmap1_w(space, 0, data, mem_mask);
+ xmap0_write(data);
+ xmap1_write(data);
break;
case 0x05:
- xmap0_w(space, 0, data, mem_mask);
+ xmap0_write(data);
break;
case 0x06:
- xmap1_w(space, 0, data, mem_mask);
+ xmap1_write(data);
break;
default:
LOGMASKED(LOG_REX3 | LOG_UNKNOWN, "REX3 Display Control Bus Data MSW Write: %08x\n", data);
diff --git a/src/mame/video/newport.h b/src/mame/video/newport.h
index ebb36d3b52d..79f92d41e84 100644
--- a/src/mame/video/newport.h
+++ b/src/mame/video/newport.h
@@ -164,15 +164,15 @@ private:
// internal state
- DECLARE_READ32_MEMBER(cmap0_r);
- DECLARE_WRITE32_MEMBER(cmap0_w);
- DECLARE_READ32_MEMBER(cmap1_r);
- DECLARE_READ32_MEMBER(xmap0_r);
- DECLARE_WRITE32_MEMBER(xmap0_w);
- DECLARE_READ32_MEMBER(xmap1_r);
- DECLARE_WRITE32_MEMBER(xmap1_w);
- DECLARE_READ32_MEMBER(vc2_r);
- DECLARE_WRITE32_MEMBER(vc2_w);
+ uint32_t cmap0_read();
+ void cmap0_write(uint32_t data);
+ uint32_t cmap1_read();
+ uint32_t xmap0_read();
+ void xmap0_write(uint32_t data);
+ uint32_t xmap1_read();
+ void xmap1_write(uint32_t data);
+ uint32_t vc2_read();
+ void vc2_write(uint32_t data);
void write_pixel(uint32_t x, uint32_t y, uint8_t color);
void do_v_iline(uint16_t x1, uint16_t y1, uint16_t y2, uint8_t color, bool skip_last);