diff --git a/src/devices/cpu/ns32000/ns32000.cpp b/src/devices/cpu/ns32000/ns32000.cpp index 673c410a356..188a0acc900 100644 --- a/src/devices/cpu/ns32000/ns32000.cpp +++ b/src/devices/cpu/ns32000/ns32000.cpp @@ -2820,6 +2820,10 @@ template void ns32000_device::execute_run() { m_psr |= PSR_F; + // updating the destination when out of bounds + // is undefined, but required by DB32016 + m_r[reg] = src - lower; + tex = mode[0].tea + mode[1].tea + top(size, bounds) * 2 + ((src >= lower) ? 7 : 10); } }