summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/hmcs40/hmcs40.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/hmcs40/hmcs40.c')
-rw-r--r--src/emu/cpu/hmcs40/hmcs40.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/hmcs40/hmcs40.c b/src/emu/cpu/hmcs40/hmcs40.c
index 16d85efd6ad..b40e1299e06 100644
--- a/src/emu/cpu/hmcs40/hmcs40.c
+++ b/src/emu/cpu/hmcs40/hmcs40.c
@@ -144,12 +144,12 @@ hd44828_device::hd44828_device(const machine_config &mconfig, const char *tag, d
// disasm
-void hmcs40_cpu_device::state_string_export(const device_state_entry &entry, astring &str)
+void hmcs40_cpu_device::state_string_export(const device_state_entry &entry, std::string &str)
{
switch (entry.index())
{
case STATE_GENFLAGS:
- str.printf("%c%c",
+ strprintf(str, "%c%c",
m_c ? 'C':'c',
m_s ? 'S':'s'
);
@@ -502,7 +502,7 @@ void hmcs40_cpu_device::execute_set_input(int line, int state)
void hmcs40_cpu_device::reset_prescaler()
{
// reset 6-bit timer prescaler
- attotime base = attotime::from_hz(unscaled_clock() / 4 / 64);
+ attotime base = attotime::from_ticks(4 * 64, unscaled_clock());
m_timer->adjust(base);
}