diff options
author | Nick Clifton <nickc@redhat.com> | 2004-10-01 11:19:38 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-10-01 11:19:38 +0000 |
commit | 14127cc4f2b98a818bef55c977eb3ea11b0ba5ce (patch) | |
tree | 34363f9efc5cf035e143b555d9e8d626803f84d4 /opcodes/pdp11-dis.c | |
parent | 99f5fc1b7586022516204077e4a2065d5a689213 (diff) | |
download | gdb-14127cc4f2b98a818bef55c977eb3ea11b0ba5ce.zip gdb-14127cc4f2b98a818bef55c977eb3ea11b0ba5ce.tar.gz gdb-14127cc4f2b98a818bef55c977eb3ea11b0ba5ce.tar.bz2 |
Fixes for the encoding and decoding of the PDP11's SOB instruction
Diffstat (limited to 'opcodes/pdp11-dis.c')
-rw-r--r-- | opcodes/pdp11-dis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/pdp11-dis.c b/opcodes/pdp11-dis.c index 4f5bf84..1756e53 100644 --- a/opcodes/pdp11-dis.c +++ b/opcodes/pdp11-dis.c @@ -342,7 +342,8 @@ print_insn_pdp11 (memaddr, info) case PDP11_OPCODE_REG_DISPL: { int displ = (opcode & 0x3f) << 10; - bfd_vma address = memaddr + (sign_extend (displ) >> 9); + bfd_vma address = memaddr - (displ >> 9); + FPRINTF (F, OP.name); FPRINTF (F, AFTER_INSTRUCTION); print_reg (src, info); |