aboutsummaryrefslogtreecommitdiff
path: root/cpu/m32r.opc
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/m32r.opc')
-rw-r--r--cpu/m32r.opc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/m32r.opc b/cpu/m32r.opc
index 63f41a5..afe12eb 100644
--- a/cpu/m32r.opc
+++ b/cpu/m32r.opc
@@ -182,7 +182,7 @@ parse_slo16 (CGEN_CPU_DESC cd,
{
value &= 0xffff;
if (value & 0x8000)
- value |= 0xffff0000;
+ value |= ~0xffff;
}
*valuep = value;
return errmsg;