summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms9900/tms9980a.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/tms9900/tms9980a.cpp')
-rw-r--r--src/devices/cpu/tms9900/tms9980a.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/devices/cpu/tms9900/tms9980a.cpp b/src/devices/cpu/tms9900/tms9980a.cpp
index a71beebd9cf..5cb028e543a 100644
--- a/src/devices/cpu/tms9900/tms9980a.cpp
+++ b/src/devices/cpu/tms9900/tms9980a.cpp
@@ -52,7 +52,6 @@
*/
#include "tms9980a.h"
-#include "debug/debugcpu.h"
/*
The following defines can be set to 0 or 1 to disable or enable certain
@@ -95,18 +94,20 @@ void tms9980a_device::resolve_lines()
uint16_t tms9980a_device::read_workspace_register_debug(int reg)
{
+ int temp = m_icount;
int addr = (WP+(reg<<1)) & 0xfffe & m_prgaddr_mask;
-
- return (machine().debugger().cpu().read_byte(*m_prgspace, addr, true) << 8) |
- (machine().debugger().cpu().read_byte(*m_prgspace, addr+1, true) & 0xff);
+ uint16_t value = (m_prgspace->read_byte(addr) << 8) | (m_prgspace->read_byte(addr+1) & 0xff);
+ m_icount = temp;
+ return value;
}
void tms9980a_device::write_workspace_register_debug(int reg, uint16_t data)
{
+ int temp = m_icount;
int addr = (WP+(reg<<1)) & 0xfffe & m_prgaddr_mask;
-
- machine().debugger().cpu().write_byte(*m_prgspace, addr, data>>8, true);
- machine().debugger().cpu().write_byte(*m_prgspace, addr+1, data & 0xff, true);
+ m_prgspace->write_byte(addr, data>>8);
+ m_prgspace->write_byte(addr+1, data & 0xff);
+ m_icount = temp;
}
/*