summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-06-07 22:50:54 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-06-07 22:51:32 -0400
commit9b6eb85708e8e632d8efb3e0e623dd32026b65ac (patch)
tree5d1796a490313ec131c0a939dd0bf940a931cc24
parenta75002a19af0ff17f78f7567d301fca6348ad43d (diff)
psikyo.cpp: Fix regression by not using a 32-bit handler for 8-bit writes (nw)
-rw-r--r--src/mame/drivers/psikyo.cpp13
-rw-r--r--src/mame/includes/psikyo.h2
2 files changed, 3 insertions, 12 deletions
diff --git a/src/mame/drivers/psikyo.cpp b/src/mame/drivers/psikyo.cpp
index ca2e2365af8..d974cab3999 100644
--- a/src/mame/drivers/psikyo.cpp
+++ b/src/mame/drivers/psikyo.cpp
@@ -125,18 +125,9 @@ static const u8 s1945j_table[256] = {
0x00, 0x00, 0x32, 0x90, 0x00, 0x00, 0xac, 0x64, 0x00, 0x00, 0x2b, 0xc0
};
-WRITE32_MEMBER(psikyo_state::s1945_mcu_w)
+void psikyo_state::s1945_mcu_w(offs_t offset, uint8_t data)
{
- // Accesses are always bytes, so resolve it
- int suboff;
-
- for (suboff = 0; suboff < 3; suboff++)
- if ((0xff << (8 * suboff)) & mem_mask)
- break;
- data >>= 8 * suboff;
- offset = offset * 4 + 4 + (3 - suboff);
-
- switch (offset)
+ switch (offset + 4)
{
case 0x06:
m_s1945_mcu_inlatch = data;
diff --git a/src/mame/includes/psikyo.h b/src/mame/includes/psikyo.h
index a46f8897df7..05fbe0e6428 100644
--- a/src/mame/includes/psikyo.h
+++ b/src/mame/includes/psikyo.h
@@ -109,7 +109,7 @@ private:
DECLARE_READ32_MEMBER(sngkace_input_r);
DECLARE_READ32_MEMBER(gunbird_input_r);
- DECLARE_WRITE32_MEMBER(s1945_mcu_w);
+ void s1945_mcu_w(offs_t offset, uint8_t data);
DECLARE_READ32_MEMBER(s1945_mcu_r);
DECLARE_READ32_MEMBER(s1945_input_r);
DECLARE_WRITE8_MEMBER(s1945bl_okibank_w);