mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
* 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.
This commit is contained in:
@ -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
|
start-sanitize-tic80
|
||||||
Mon Jan 6 10:56:25 1997 Fred Fish <fnf@cygnus.com>
|
Mon Jan 6 10:56:25 1997 Fred Fish <fnf@cygnus.com>
|
||||||
|
|
||||||
|
@ -313,7 +313,7 @@ disassemble (memaddr, info, insn, extension, size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if ((operand->flags & MN10200_OPERAND_PCREL) != 0)
|
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)
|
else if ((operand->flags & MN10200_OPERAND_MEMADDR) != 0)
|
||||||
(*info->print_address_func) (value, info);
|
(*info->print_address_func) (value, info);
|
||||||
|
Reference in New Issue
Block a user