summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michael Zapf <michael.zapf@mizapf.de>2013-11-03 14:33:51 +0000
committer Michael Zapf <michael.zapf@mizapf.de>2013-11-03 14:33:51 +0000
commit59414e62a2de384310184099f4c99e356f147061 (patch)
tree1b319b2f1363dfa04047ec25d98dc080b0ba4404
parent6538beb2327407c718928dd8ba9e79907539e693 (diff)
(MESS) geneve: Provide access to on-chip memory for debugger.(nw)
-rw-r--r--src/mess/machine/ti99/genboard.c2
-rw-r--r--src/mess/machine/ti99/genboard.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mess/machine/ti99/genboard.c b/src/mess/machine/ti99/genboard.c
index 1dd8cf10256..e1f971eede2 100644
--- a/src/mess/machine/ti99/genboard.c
+++ b/src/mess/machine/ti99/genboard.c
@@ -354,6 +354,7 @@ READ8_MEMBER( geneve_mapper_device::readm )
// For the debugger, do the decoding here with no wait states
if (space.debugger_access())
{
+ if (m_cpu->is_onchip(offset)) return m_cpu->debug_read_onchip_memory(offset&0xff);
dec = &debug;
m_debug_no_ws = true;
decode(space, offset, true, dec);
@@ -1174,6 +1175,7 @@ void geneve_mapper_device::device_start()
m_sram = machine().root_device().memregion(SRAM_TAG)->base();
m_dram = machine().root_device().memregion(DRAM_TAG)->base();
+ m_cpu = static_cast<tms9995_device*>(machine().device("maincpu"));
m_geneve_mode = false;
m_direct_mode = true;
diff --git a/src/mess/machine/ti99/genboard.h b/src/mess/machine/ti99/genboard.h
index 03f98c82f18..b7511837aa5 100644
--- a/src/mess/machine/ti99/genboard.h
+++ b/src/mess/machine/ti99/genboard.h
@@ -17,6 +17,7 @@
#include "ti99defs.h"
#include "machine/mm58274c.h"
#include "video/v9938.h"
+#include "cpu/tms9900/tms9995.h"
extern const device_type GENEVE_MOUSE;
extern const device_type GENEVE_KEYBOARD;
@@ -201,6 +202,8 @@ private:
// Devices
mm58274c_device* m_clock;
+ tms9995_device* m_cpu;
+
geneve_keyboard_device* m_keyboard;
bus8z_device* m_video;
bus8z_device* m_peribox;