summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-08-17 16:47:06 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-08-17 16:47:06 -0400
commit78c9b5bce79b570c4830514e91f1ec8d24eef988 (patch)
tree22a722f5e7e9dd34603e43bf37e2ccc77921abfc
parenta55ac80cd54304745cd4213d77b955bf746f0dd7 (diff)
kc82: Log MMU changes
-rw-r--r--src/devices/cpu/z80/kc82.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/devices/cpu/z80/kc82.cpp b/src/devices/cpu/z80/kc82.cpp
index 33ede26b774..dbea8fc70f5 100644
--- a/src/devices/cpu/z80/kc82.cpp
+++ b/src/devices/cpu/z80/kc82.cpp
@@ -9,6 +9,9 @@
#include "emu.h"
#include "kc82.h"
+#define VERBOSE 0
+#include "logmacro.h"
+
//-------------------------------------------------
// kc82_device - constructor
@@ -124,6 +127,16 @@ void kc82_device::mmu_remap_pages()
--n;
base = u32(m_mmu_a[n]) << 10;
}
+ if (m_mmu_base[i] != base)
+ {
+ u32 old_mapping = ((i << 10) + base) & 0xffc00;
+ u32 new_mapping = ((i << 10) + m_mmu_base[i]) & 0xffc00;
+ LOG("%s: MMU: %04X-%04XH => %05X-%05XH (was %05X-%05XH)\n",
+ machine().describe_context(),
+ i << 10, (i << 10) | 0x3ff,
+ old_mapping, old_mapping | 0x3ff,
+ new_mapping, new_mapping | 0x3ff);
+ }
m_mmu_base[i] = base;
}
}