summaryrefslogtreecommitdiff
path: root/opcodes/avr-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-07-01 16:11:25 +0000
committerNick Clifton <nickc@redhat.com>2011-07-01 16:11:25 +0000
commit591089435d9110fe214d55c8b813db9641ccdb6d (patch)
tree64f30d3626f9f62d3377d1996675052cd770b870 /opcodes/avr-dis.c
parent35e0b373f1db118b1f449f3bf87e742159fd352c (diff)
downloadbinutils-redhat-591089435d9110fe214d55c8b813db9641ccdb6d.tar.gz
PR binutils/12329
* avr-dis.c (avr_operand): Fix disassembly of ELPM, LPM and SPM insns using post-increment addressing. * avr.h (AVR_ISA_AVR6): Fix typo, adding AVR_ISA_SPMX.
Diffstat (limited to 'opcodes/avr-dis.c')
-rw-r--r--opcodes/avr-dis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/avr-dis.c b/opcodes/avr-dis.c
index 85d7ab3fec..b895ad53ff 100644
--- a/opcodes/avr-dis.c
+++ b/opcodes/avr-dis.c
@@ -125,7 +125,8 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
{
if (*s == '+')
{
- *buf++ = '+';
+ if (insn & (1 << (15 - (s - opcode_str))))
+ *buf++ = '+';
break;
}
}