From 09171e3fe6b2d7075c78f6db8dfd06662097dc55 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 6 Jan 1997 22:13:39 +0000 Subject: [PATCH] * mn10200-dis.c (disassemble): Mask off unwanted bits after adding in current address for pc-relative operands. Fixes disassembly of backwards 24bit pc-relative addressese. --- opcodes/ChangeLog | 5 +++++ opcodes/mn10200-dis.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e59fe31d506..0203c278e3d 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 6 15:06:55 1997 Jeffrey A Law (law@cygnus.com) + + * mn10200-dis.c (disassemble): Mask off unwanted bits after + adding in current address for pc-relative operands. + start-sanitize-tic80 Mon Jan 6 10:56:25 1997 Fred Fish diff --git a/opcodes/mn10200-dis.c b/opcodes/mn10200-dis.c index ebcc75ac597..2942e89f6e6 100644 --- a/opcodes/mn10200-dis.c +++ b/opcodes/mn10200-dis.c @@ -313,7 +313,7 @@ disassemble (memaddr, info, insn, extension, size) } else if ((operand->flags & MN10200_OPERAND_PCREL) != 0) - (*info->print_address_func) (value + memaddr, info); + (*info->print_address_func) ((value + memaddr) & 0xffffff, info); else if ((operand->flags & MN10200_OPERAND_MEMADDR) != 0) (*info->print_address_func) (value, info); -- 2.30.2