ns32000: fix check instruction undefined behavior

This commit is contained in:
Patrick Mackinlay 2021-07-16 15:00:34 +07:00
parent 8a01776853
commit 9e036c84b2

View File

@ -2820,6 +2820,10 @@ template <int Width> void ns32000_device<Width>::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);
}
}