summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2017-11-28 08:28:46 +0100
committer Olivier Galibert <galibert@pobox.com>2017-11-28 08:30:35 +0100
commitcec449c33b4244a1adef7281b83e959105fe5056 (patch)
tree15bdb96c6114c21916dad3748887adc12a832ea1
parentcbfa34e2c91be0e603e401078a3f8666f490fd99 (diff)
Fix tms0980 debugger hook and remove leftover debug code (nw)
-rw-r--r--src/devices/cpu/tms1000/tms0980.cpp2
-rw-r--r--src/emu/debug/debugbuf.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/cpu/tms1000/tms0980.cpp b/src/devices/cpu/tms1000/tms0980.cpp
index f0dbc0c65d7..fa8d274c559 100644
--- a/src/devices/cpu/tms1000/tms0980.cpp
+++ b/src/devices/cpu/tms1000/tms0980.cpp
@@ -173,7 +173,7 @@ u32 tms0980_cpu_device::read_micro()
void tms0980_cpu_device::read_opcode()
{
- debugger_instruction_hook(this, m_rom_address << 1);
+ debugger_instruction_hook(this, m_rom_address);
m_opcode = m_program->read_word(m_rom_address << 1) & 0x1ff;
m_c4 = BITSWAP8(m_opcode,7,6,5,4,0,1,2,3) & 0xf; // opcode operand is bitswapped for most opcodes
diff --git a/src/emu/debug/debugbuf.cpp b/src/emu/debug/debugbuf.cpp
index a3d864330cf..4bae66cbab9 100644
--- a/src/emu/debug/debugbuf.cpp
+++ b/src/emu/debug/debugbuf.cpp
@@ -60,8 +60,6 @@ address_space *debug_disasm_buffer::debug_data_buffer::get_underlying_space() co
void debug_disasm_buffer::debug_data_buffer::fill(offs_t lstart, offs_t size) const
{
- if(lstart & ~m_pc_mask)
- abort();
offs_t lend = (lstart + size) & m_pc_mask;
if(m_page_mask) {
if((lstart ^ lend) & ~m_page_mask) {