projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR25351 .ARM.attributes not found for symbol
[deliverable/binutils-gdb.git]
/
opcodes
/
pdp11-dis.c
diff --git
a/opcodes/pdp11-dis.c
b/opcodes/pdp11-dis.c
index 33c9095cc0fb41b2c3bd98135a84f574068d967c..02d46a9760d1741d2f1bf8215f5336e5e899e587 100644
(file)
--- a/
opcodes/pdp11-dis.c
+++ b/
opcodes/pdp11-dis.c
@@
-1,5
+1,5
@@
/* Print DEC PDP-11 instructions.
/* Print DEC PDP-11 instructions.
- Copyright (C) 2001-20
15
Free Software Foundation, Inc.
+ Copyright (C) 2001-20
20
Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
This file is part of the GNU opcodes library.
@@
-19,7
+19,7
@@
MA 02110-1301, USA. */
#include "sysdep.h"
MA 02110-1301, USA. */
#include "sysdep.h"
-#include "dis
-asm
.h"
+#include "dis
assemble
.h"
#include "opcode/pdp11.h"
#define AFTER_INSTRUCTION "\t"
#include "opcode/pdp11.h"
#define AFTER_INSTRUCTION "\t"
@@
-31,8
+31,7
@@
#define F info->stream
/* Sign-extend a 16-bit number in an int. */
#define F info->stream
/* Sign-extend a 16-bit number in an int. */
-#define SIGN_BITS (8 * sizeof (int) - 16)
-#define sign_extend(x) (((x) << SIGN_BITS) >> SIGN_BITS)
+#define sign_extend(x) ((((x) & 0xffff) ^ 0x8000) - 0x8000)
static int
read_word (bfd_vma memaddr, int *word, disassemble_info *info)
static int
read_word (bfd_vma memaddr, int *word, disassemble_info *info)
This page took
0.025331 seconds
and
4
git commands to generate.