Add unlink support to moxie simulator
[deliverable/binutils-gdb.git] / opcodes / tic54x-dis.c
index c4ecdda1876511dc23da7daeb3c94d7ac5ecb28a..d8b80a3bf7dbb45492e955ba14ba917650c5906f 100644 (file)
@@ -394,8 +394,7 @@ print_instruction (disassemble_info *info,
             break;
           }
         case OP_k5:
-          sprintf (operand[i], "#%d",
-                   (int) (((signed char) opcode & 0x1F) << 3) >> 3);
+          sprintf (operand[i], "#%d", ((opcode & 0x1F) ^ 0x10) - 0x10);
           info->fprintf_func (info->stream, "%s%s", comma, operand[i]);
           break;
         case OP_k8u:
This page took 0.023912 seconds and 4 git commands to generate.