summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh/sh2comn.cpp
diff options
context:
space:
mode:
author Angelo Salese <lordkale4@gmail.com>2019-06-22 14:43:16 +0200
committer Angelo Salese <lordkale4@gmail.com>2019-06-22 14:43:16 +0200
commit78d20c4dadcb55f272176390017ac6f8902fc398 (patch)
tree9cc9704ad81579b35d9177ff8fe8efae6dfcffdd /src/devices/cpu/sh/sh2comn.cpp
parent8f197619a92e93dc82e7c337c090d97a4d65fb4d (diff)
mega32x.cpp: refactor and convert read/write handlers to 16-bit space [Angelo Salese]
Diffstat (limited to 'src/devices/cpu/sh/sh2comn.cpp')
-rw-r--r--src/devices/cpu/sh/sh2comn.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/cpu/sh/sh2comn.cpp b/src/devices/cpu/sh/sh2comn.cpp
index e9503099fc2..7a7829e9db9 100644
--- a/src/devices/cpu/sh/sh2comn.cpp
+++ b/src/devices/cpu/sh/sh2comn.cpp
@@ -729,6 +729,10 @@ WRITE32_MEMBER( sh2_device::vcrdiv_w )
sh2_recalc_irq();
}
+/*
+ * DIVU
+ */
+
READ32_MEMBER( sh2_device::dvcr_r )
{
return (m_divu_ovfie == true ? 2 : 0) | (m_divu_ovf == true ? 1 : 0);
@@ -744,15 +748,11 @@ WRITE32_MEMBER( sh2_device::dvcr_w )
{
m_divu_ovfie = bool(BIT(data, 1));
if (m_divu_ovfie == true)
- LOG("SH2: unemulated DIVU OVF interrupt enable\n");
+ logerror("SH2: unemulated DIVU OVF interrupt enable\n");
}
sh2_recalc_irq();
}
}
-
-/*
- * DMAC
- */
READ32_MEMBER( sh2_device::dvsr_r )
{