From 886796f9fafcfd676a03b35b3b07ab2c94efb43d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 4 Jun 1999 07:14:10 +0000 Subject: Make LDRH/LDRB consistent with LDR when target is PC-relative --- opcodes/arm-dis.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'opcodes/arm-dis.c') diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index 4aabf72..5bc1350 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -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); } -- cgit v1.1