summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/devices/cpu/tms9900/tms9900.cpp4
-rw-r--r--src/devices/cpu/tms9900/tms9995.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/tms9900/tms9900.cpp b/src/devices/cpu/tms9900/tms9900.cpp
index 6f9ef5f7926..8c94a0662f8 100644
--- a/src/devices/cpu/tms9900/tms9900.cpp
+++ b/src/devices/cpu/tms9900/tms9900.cpp
@@ -341,7 +341,7 @@ void tms99xx_device::state_import(const device_state_entry &entry)
break;
default:
// Workspace registers
- if (index <= TMS9900_R15)
+ if (index <= TMS9900_R15 && started())
write_workspace_register_debug(index-TMS9900_R0, (uint16_t)m_state_any);
break;
}
@@ -373,7 +373,7 @@ void tms99xx_device::state_export(const device_state_entry &entry)
default:
// Workspace registers
if (index <= TMS9900_R15)
- m_state_any = read_workspace_register_debug(index-TMS9900_R0);
+ m_state_any = started() ? read_workspace_register_debug(index-TMS9900_R0) : 0;
break;
}
}
diff --git a/src/devices/cpu/tms9900/tms9995.cpp b/src/devices/cpu/tms9900/tms9995.cpp
index c1b07bcbc70..6cbb64a350c 100644
--- a/src/devices/cpu/tms9900/tms9995.cpp
+++ b/src/devices/cpu/tms9900/tms9995.cpp
@@ -339,7 +339,7 @@ void tms9995_device::state_import(const device_state_entry &entry)
break;
default:
// Workspace registers
- if (index <= TMS9995_R15)
+ if (index <= TMS9995_R15 && started())
write_workspace_register_debug(index-TMS9995_R0, (uint16_t)m_state_any);
break;
}
@@ -371,7 +371,7 @@ void tms9995_device::state_export(const device_state_entry &entry)
default:
// Workspace registers
if (index <= TMS9995_R15)
- m_state_any = read_workspace_register_debug(index-TMS9995_R0);
+ m_state_any = started() ? read_workspace_register_debug(index-TMS9995_R0) : 0;
break;
}
}
afc22e7d20eb17a1cbb4120?s=128&d=retro' /> hap2019-02-191-1/+0 * Start cleaning up palette configuration: Vas Crabb2018-12-291-8/+6 * -arcadia, binbug, cd2650, cvs, dm7000, dolphunk, galaxia, hp48, instruct, kon... mooglyguy2018-12-151-21/+24 * stronger private: use (N, O, P, Q, R) (#3717) David Haywood2018-06-301-2/+1 * quizshow: siftware verified m2 rom (nw) hap2018-07-011-1/+1 * Remove emupal.h from emu.h (nw) AJR2018-06-131-0/+1 * as if millions of this pointers suddenly cried out in terror, and were sudden... Vas Crabb2018-06-081-8/+8 * use plural names for output finders when there are multiple outputs (#3595) wilbertpol2018-05-271-8/+8 * Replace set_led_value and set_lamp_value with output_finders. [Wilbe… (#3592) wilbertpol2018-05-201-6/+9 * More cleanup/streamlining of machine configuration and macros: Vas Crabb2018-05-151-2/+2 * Removed DRIVER_INIT-related macros, made driver init entry in GAME/COMP/CONS ... MooglyGuy2018-05-131-7/+5 * dsp16: fix condition mask in disassembler (nw)