diff options
author | 2024-03-02 01:43:34 +0100 | |
---|---|---|
committer | 2024-03-02 20:27:54 +0100 | |
commit | f154215ceee7031b6dc3d48a2b87748c09bf2e13 (patch) | |
tree | 59f1562b69c8282a287eb06443e9f110b58f4389 /src/devices/cpu/h8/h8.cpp | |
parent | c0a2d627332085f93e544a2206e219b5e6025447 (diff) |
h8_timer: fix edge with compare match if both tt and tgr are larger than counter_cycle,
h8325: mask unused iscr/ier bits
Diffstat (limited to 'src/devices/cpu/h8/h8.cpp')
-rw-r--r-- | src/devices/cpu/h8/h8.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/h8/h8.cpp b/src/devices/cpu/h8/h8.cpp index b9bb981b95b..fa6985f1e98 100644 --- a/src/devices/cpu/h8/h8.cpp +++ b/src/devices/cpu/h8/h8.cpp @@ -612,7 +612,7 @@ int h8_device::trapa_setup() u8 h8_device::do_addx8(u8 v1, u8 v2) { - u8 c = (m_CCR & F_C) ? 1 : 0; + u8 c = m_CCR & F_C ? 1 : 0; u16 res = v1 + v2 + c; m_CCR &= ~(F_N|F_V|F_C); if(m_has_hc) { @@ -634,7 +634,7 @@ u8 h8_device::do_addx8(u8 v1, u8 v2) u8 h8_device::do_subx8(u8 v1, u8 v2) { - u8 c = (m_CCR & F_C) ? 1 : 0; + u8 c = m_CCR & F_C ? 1 : 0; u16 res = v1 - v2 - c; m_CCR &= ~(F_N|F_V|F_C); if(m_has_hc) { |