diff options
author | 2020-11-30 13:51:41 +0100 | |
---|---|---|
committer | 2020-11-30 13:51:41 +0100 | |
commit | 7776021e40cbe8d121e7e5055896eec934dc03d3 (patch) | |
tree | 740a89fe559f777d28c9a704157838db141bd517 | |
parent | 9a38842b8d500ade8c398b9bb0746fe7ef69e1de (diff) |
h8: Fix the watchdog read, fixes mu80 test mode
-rw-r--r-- | src/devices/cpu/h8/h8_watchdog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/h8/h8_watchdog.cpp b/src/devices/cpu/h8/h8_watchdog.cpp index acbdf3db31c..614afb94d2e 100644 --- a/src/devices/cpu/h8/h8_watchdog.cpp +++ b/src/devices/cpu/h8/h8_watchdog.cpp @@ -47,8 +47,8 @@ void h8_watchdog_device::tcnt_update(uint64_t cur_time) // logerror("%10lld tcnt %02x -> %03x shift=%d\n", cur_time, tcnt, next_tcnt, shift); if(next_tcnt >= 0x100) { - logerror("watchdog triggered\n"); if(tcsr & TCSR_WT) { + logerror("%s watchdog triggered\n", machine().time().as_string()); if(type == B && !(tcsr & TCSR_NMI)) intc->internal_interrupt(3); else @@ -72,7 +72,7 @@ uint16_t h8_watchdog_device::wd_r() tcnt_update(); logerror("read\n"); } - return 0; + return (tcsr << 8) | tcnt; } void h8_watchdog_device::wd_w(offs_t offset, uint16_t data, uint16_t mem_mask) |