summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2019-09-13 11:32:01 +0700
committer Patrick Mackinlay <pmackinlay@hotmail.com>2019-09-13 11:32:01 +0700
commit316e9390786b8997c55298b16819a7734b147aa3 (patch)
tree66366a2050fb50bb949bc8d5fb49bc9dacc0ed56
parent40de5e0551f18bef6694b360dcd7a4caa787e36e (diff)
wtl3132: expose register state (nw)
-rw-r--r--src/devices/machine/wtl3132.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/machine/wtl3132.h b/src/devices/machine/wtl3132.h
index 0d782e7375d..deca6dd7f26 100644
--- a/src/devices/machine/wtl3132.h
+++ b/src/devices/machine/wtl3132.h
@@ -37,6 +37,17 @@ public:
static std::string abin(u64 const code);
static std::string adst(u64 const code);
+ void state_add(device_state_interface &parent, unsigned base = 0)
+ {
+ parent.state_add(base + 0, "MODE", m_mode).formatstr("%04X");
+ parent.state_add(base + 1, "T1", m_t1.v).formatstr("%08X");
+ parent.state_add(base + 2, "T2", m_t2.v).formatstr("%08X");
+ parent.state_add(base + 3, "T3", m_t3.v).formatstr("%08X");
+
+ for (unsigned i = 0; i < 32; i++)
+ parent.state_add(base + i + 4, util::string_format("F%d", i).c_str(), m_f[i].v).formatstr("%08X");
+ }
+
enum code_mask : u64
{
// opcode is 34 bits wide