summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/68340dma.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
commit7c19aac60e12d6f5ea301bdb34d7826a01e0b06f (patch)
treef310d86aa2c6bfc19d115307dedde4eb0cd52dad /src/devices/machine/68340dma.cpp
parenta57b46ae933badd7441ce1644711dbb851e2b504 (diff)
Rename *.c -> *.cpp in our source (nw)
Diffstat (limited to 'src/devices/machine/68340dma.cpp')
-rw-r--r--src/devices/machine/68340dma.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/devices/machine/68340dma.cpp b/src/devices/machine/68340dma.cpp
new file mode 100644
index 00000000000..9ee0ae5114e
--- /dev/null
+++ b/src/devices/machine/68340dma.cpp
@@ -0,0 +1,39 @@
+// license:BSD-3-Clause
+// copyright-holders:David Haywood
+/* 68340 DMA module */
+
+#include "emu.h"
+#include "68340.h"
+
+
+READ32_MEMBER( m68340cpu_device::m68340_internal_dma_r )
+{
+ m68340cpu_device *m68k = this;
+ m68340_dma* dma = m68k->m68340DMA;
+ assert(dma != NULL);
+
+ if (dma)
+ {
+ int pc = space.device().safe_pc();
+ logerror("%08x m68340_internal_dma_r %08x, (%08x)\n", pc, offset*4,mem_mask);
+ }
+
+ return 0x00000000;
+}
+
+WRITE32_MEMBER( m68340cpu_device::m68340_internal_dma_w )
+{
+ m68340cpu_device *m68k = this;
+ m68340_dma* dma = m68k->m68340DMA;
+ assert(dma != NULL);
+
+ if (dma)
+ {
+ int pc = space.device().safe_pc();
+ logerror("%08x m68340_internal_dma_w %08x, %08x (%08x)\n", pc, offset*4,data,mem_mask);
+ }
+}
+
+void m68340_dma::reset(void)
+{
+}