summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/tms9900
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2023-01-02 01:08:01 +0100
committer hap <happppp@users.noreply.github.com>2023-01-02 01:08:01 +0100
commit47a484001cbebf0a28e554fb0a5ae8aeb6e1b2f7 (patch)
treed4a09575124b8208dbc0610011435f24de653a4b /src/devices/cpu/tms9900
parent2bfe2358fb9d6b29830f4f9b71e91e76f4eca68c (diff)
distate: don't try to read unused value() during formatstr
Diffstat (limited to 'src/devices/cpu/tms9900')
-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 8c94a0662f8..6f9ef5f7926 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 && started())
+ if (index <= TMS9900_R15)
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 = started() ? read_workspace_register_debug(index-TMS9900_R0) : 0;
+ m_state_any = read_workspace_register_debug(index-TMS9900_R0);
break;
}
}
diff --git a/src/devices/cpu/tms9900/tms9995.cpp b/src/devices/cpu/tms9900/tms9995.cpp
index 6cbb64a350c..c1b07bcbc70 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 && started())
+ if (index <= TMS9995_R15)
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 = started() ? read_workspace_register_debug(index-TMS9995_R0) : 0;
+ m_state_any = read_workspace_register_debug(index-TMS9995_R0);
break;
}
}