summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-12-16 10:51:14 -0500
committer AJR <ajrhacker@users.noreply.github.com>2019-12-16 10:51:14 -0500
commitf7e381b5cddd2d55277b9784418d33b8f0674ead (patch)
tree5ac92c0611e96035a5881a7148c09281d3ee165a
parent8598b492f64bee49a1f3696ab654701f23882c74 (diff)
r65c19: Add bank registers to debug state (nw)
-rw-r--r--src/devices/cpu/m6502/r65c19.cpp3
-rw-r--r--src/devices/cpu/m6502/r65c19.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/devices/cpu/m6502/r65c19.cpp b/src/devices/cpu/m6502/r65c19.cpp
index 47936a62722..4da7a547c79 100644
--- a/src/devices/cpu/m6502/r65c19.cpp
+++ b/src/devices/cpu/m6502/r65c19.cpp
@@ -117,6 +117,9 @@ void c39_device::device_start()
mintf = std::move(intf);
c19_init();
+
+ for (int i = 0; i < 8; i++)
+ state_add(C39_BSR0 + i, string_format("BSR%d", i).c_str(), downcast<mi_banked &>(*mintf).bsr[i]);
}
void r65c19_device::c19_init()
diff --git a/src/devices/cpu/m6502/r65c19.h b/src/devices/cpu/m6502/r65c19.h
index 379915c9df7..6449b1833e2 100644
--- a/src/devices/cpu/m6502/r65c19.h
+++ b/src/devices/cpu/m6502/r65c19.h
@@ -103,6 +103,12 @@ private:
class c39_device : public r65c19_device
{
+public:
+ enum {
+ C39_BSR0 = R65C19_I + 1,
+ C39_BSR1, C39_BSR2, C39_BSR3, C39_BSR4, C39_BSR5, C39_BSR6, C39_BSR7
+ };
+
protected:
c39_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor internal_map);