summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds8874.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2022-08-02 00:12:25 +0200
committer hap <happppp@users.noreply.github.com>2022-08-02 00:16:14 +0200
commit1525cc1ee31eec9ae7fb68ca32fabcb5f1ee571c (patch)
tree581fdc12435371203c60d9546bf9c49e39c12475 /src/devices/machine/ds8874.cpp
parent36404db06478a25542600d73635f91eed66991cd (diff)
misc hap devices: move variables init to device_start
Diffstat (limited to 'src/devices/machine/ds8874.cpp')
-rw-r--r--src/devices/machine/ds8874.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/devices/machine/ds8874.cpp b/src/devices/machine/ds8874.cpp
index f4d2f984e31..8b6003dcad3 100644
--- a/src/devices/machine/ds8874.cpp
+++ b/src/devices/machine/ds8874.cpp
@@ -39,6 +39,11 @@ void ds8874_device::device_start()
// resolve callbacks
m_write_output.resolve_safe();
+ // zerofill
+ m_data = 0;
+ m_cp = 0;
+ m_shift = 0xff;
+
// register for savestates
save_item(NAME(m_data));
save_item(NAME(m_cp));