From 3c6c7e445694efd95aa6de3abac9ac36977b46e8 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Fri, 17 Sep 1993 11:47:59 +0000 Subject: [PATCH] * 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. --- opcodes/alpha-opc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opcodes/alpha-opc.h b/opcodes/alpha-opc.h index fe5eea52fbf..232e80dbf91 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) -- 2.30.2