projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Power10 byte reverse instructions
[deliverable/binutils-gdb.git]
/
opcodes
/
tic54x-dis.c
diff --git
a/opcodes/tic54x-dis.c
b/opcodes/tic54x-dis.c
index e12349dd0ecb018d5039cff6d32a3f8f7edbbc89..2ec585181d4e006ea601aca877324c68ef00aca5 100644
(file)
--- a/
opcodes/tic54x-dis.c
+++ b/
opcodes/tic54x-dis.c
@@
-1,5
+1,5
@@
/* Disassembly routines for TMS320C54X architecture
/* Disassembly routines for TMS320C54X architecture
- Copyright (C) 1999-20
16
Free Software Foundation, Inc.
+ Copyright (C) 1999-20
20
Free Software Foundation, Inc.
Contributed by Timothy Wall (twall@cygnus.com)
This file is part of the GNU opcodes library.
Contributed by Timothy Wall (twall@cygnus.com)
This file is part of the GNU opcodes library.
@@
-23,7
+23,7
@@
#include <errno.h>
#include <math.h>
#include <stdlib.h>
#include <errno.h>
#include <math.h>
#include <stdlib.h>
-#include "dis
-asm
.h"
+#include "dis
assemble
.h"
#include "opcode/tic54x.h"
#include "coff/tic54x.h"
#include "opcode/tic54x.h"
#include "coff/tic54x.h"
@@
-394,8
+394,7
@@
print_instruction (disassemble_info *info,
break;
}
case OP_k5:
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:
info->fprintf_func (info->stream, "%s%s", comma, operand[i]);
break;
case OP_k8u:
This page took
0.035913 seconds
and
4
git commands to generate.