diff options
Diffstat (limited to 'opcodes/m32r-asm.c')
-rw-r--r-- | opcodes/m32r-asm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/m32r-asm.c b/opcodes/m32r-asm.c index b45f720..3954608 100644 --- a/opcodes/m32r-asm.c +++ b/opcodes/m32r-asm.c @@ -144,8 +144,8 @@ parse_slo16 (CGEN_CPU_DESC cd, { value &= 0xffff; if (value & 0x8000) - value |= ~0xffff; - } + value = ((value & 0xffff) ^ 0x8000) - 0x8000; + } *valuep = value; return errmsg; } |