aboutsummaryrefslogtreecommitdiff
path: root/opcodes/alpha-opc.h
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-09-17 11:47:59 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-09-17 11:47:59 +0000
commit3c6c7e445694efd95aa6de3abac9ac36977b46e8 (patch)
tree6aa24436bae7154999ad877d490bfe07af3d58a9 /opcodes/alpha-opc.h
parent30d20d15456466459d4ec80a14667bff20fb5338 (diff)
downloadgdb-3c6c7e445694efd95aa6de3abac9ac36977b46e8.zip
gdb-3c6c7e445694efd95aa6de3abac9ac36977b46e8.tar.gz
gdb-3c6c7e445694efd95aa6de3abac9ac36977b46e8.tar.bz2
* alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
info->fprintf_func for printing and info->print_address_func for address output.
Diffstat (limited to 'opcodes/alpha-opc.h')
-rw-r--r--opcodes/alpha-opc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/alpha-opc.h b/opcodes/alpha-opc.h
index fe5eea5..232e80d 100644
--- a/opcodes/alpha-opc.h
+++ b/opcodes/alpha-opc.h
@@ -26,12 +26,13 @@
#define RB(x) (((x)>>16)& 0x1f)
#define RC(x) (((x)>>0) & 0x1f)
#define DISP(x) ((((x) & 0xffff) ^ 0x8000)-0x8000)
-#define BDISP(x) ((((x) & 0x1fffff) ^ 0x10000)-0x10000)
+#define BDISP(x) ((((x) & 0x1fffff) ^ 0x100000)-0x100000)
#define OPCODE(x) (((x) >>26)&0x3f)
#define JUMP_OPTYPE(x) (((x)>>14) & 0xf)
#define JUMP_HINT(x) ((x) & 0x3fff)
+#define JDISP(x) ((((x) & 0x3fff) ^ 0x2000)-0x2000)
#define OP_OPTYPE(x) (((x)>>5)&0x7f)
-#define OP_IS_CONSTANT(x) ((x) & (1<<13))
+#define OP_IS_CONSTANT(x) ((x) & (1<<12))
#define LITERAL(x) (((x)>>13) & 0xff)