From 5e03663f3dbec4330c0bee3f4b120f38e02eeb77 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 18 Oct 2005 07:53:17 +0000 Subject: m32r.opc (parse_slo16): Better version of previous patch. --- cpu/m32r.opc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/m32r.opc') diff --git a/cpu/m32r.opc b/cpu/m32r.opc index afe12eb..2459fec 100644 --- a/cpu/m32r.opc +++ b/cpu/m32r.opc @@ -182,8 +182,8 @@ parse_slo16 (CGEN_CPU_DESC cd, { value &= 0xffff; if (value & 0x8000) - value |= ~0xffff; - } + value = ((value & 0xffff) ^ 0x8000) - 0x8000; + } *valuep = value; return errmsg; } -- cgit v1.1