summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/h8s2600.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2024-03-18 19:19:33 +0100
committer hap <happppp@users.noreply.github.com>2024-03-18 19:19:59 +0100
commit9060f36ae80d5392ab83bb0745149349286a37aa (patch)
tree01d98891f9b21515f513973bc8fd40aff7f3a512 /src/devices/cpu/h8/h8s2600.cpp
parentb19c9a27ac66468803bc8f038212ffaa553e6301 (diff)
h8: don't save the mode settings, move mac_saturating var to h8s2600 and hook it up
Diffstat (limited to 'src/devices/cpu/h8/h8s2600.cpp')
-rw-r--r--src/devices/cpu/h8/h8s2600.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/devices/cpu/h8/h8s2600.cpp b/src/devices/cpu/h8/h8s2600.cpp
index 62a041a5ca1..07b187aa700 100644
--- a/src/devices/cpu/h8/h8s2600.cpp
+++ b/src/devices/cpu/h8/h8s2600.cpp
@@ -5,7 +5,8 @@
#include "h8s2600d.h"
h8s2600_device::h8s2600_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor map_delegate) :
- h8s2000_device(mconfig, type, tag, owner, clock, map_delegate)
+ h8s2000_device(mconfig, type, tag, owner, clock, map_delegate),
+ m_mac_saturating(false)
{
m_has_mac = true;
}
@@ -15,4 +16,16 @@ std::unique_ptr<util::disasm_interface> h8s2600_device::create_disassembler()
return std::make_unique<h8s2600_disassembler>();
}
+void h8s2600_device::device_start()
+{
+ h8s2000_device::device_start();
+ save_item(NAME(m_mac_saturating));
+}
+
+void h8s2600_device::device_reset()
+{
+ h8s2000_device::device_reset();
+ m_mac_saturating = false;
+}
+
#include "cpu/h8/h8s2600.hxx"