Commit 886796f9 authored by Nick Clifton's avatar Nick Clifton
Browse files

Make LDRH/LDRB consistent with LDR when target is PC-relative

parent 5164c382
1999-06-03 Philip Blundell <philb@gnu.org>
* arm-dis.c (print_insn_arm): Make LDRH/LDRB consistent with LDR
when target is PC-relative.
1999-05-28 Linus Nordberg <linus.nordberg@canit.se>
* m68k-opc.c: Rename MACL/MSACL to MAC/MSAC. Add MACM/MSACM. Add
......
......@@ -195,8 +195,12 @@ print_insn_arm (pc, info, given)
{
/* PC relative with immediate offset */
int offset = ((given & 0xf00) >> 4) | (given & 0xf);
if ((given & 0x00800000) == 0)
offset = -offset;
func (stream, "[pc, #%x]\t; ", offset);
(*info->print_address_func)
(offset + pc + 8, info);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment