aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c/m32c.opc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m32c/m32c.opc')
-rw-r--r--sim/m32c/m32c.opc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m32c/m32c.opc b/sim/m32c/m32c.opc
index b271acf..a2ddda9 100644
--- a/sim/m32c/m32c.opc
+++ b/sim/m32c/m32c.opc
@@ -125,7 +125,7 @@ prefix (src_allowed, dest_allowed, index_bytewidth)
mb = sign_ext (s, dc.bytes * 8); \
v = ma op mb op c; \
tprintf("%d " #op " %d " #op " %d = %d\n", ma, mb, c, v); \
- set_oszc (v, dc.bytes, ll > ((1 op 1) ? b2mask[dc.bytes] : 0)); \
+ set_oszc (v, dc.bytes, (1 op 1) ? (ll > b2mask[dc.bytes]) : (ll >= 0)); \
put_dest (dc, v); \
}