diff options
author | Denis Chertykov <denisc@overta.ru> | 2000-06-09 17:58:33 +0000 |
---|---|---|
committer | Denis Chertykov <denisc@overta.ru> | 2000-06-09 17:58:33 +0000 |
commit | f70d15e6c1585e4742b0ae349ca2127d006825f0 (patch) | |
tree | b52a38819fe1c9d107fa21c0e97797bb6bfb3bb2 /opcodes/avr-dis.c | |
parent | 38752062839da09e00612744c7472219dbb02218 (diff) | |
download | binutils-redhat-f70d15e6c1585e4742b0ae349ca2127d006825f0.tar.gz |
* avr-dis.c (avr_operand): Bugfix for jmp/call address.
Diffstat (limited to 'opcodes/avr-dis.c')
-rw-r--r-- | opcodes/avr-dis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/avr-dis.c b/opcodes/avr-dis.c index 1ffd218f48..a774d8b7c3 100644 --- a/opcodes/avr-dis.c +++ b/opcodes/avr-dis.c @@ -135,7 +135,8 @@ avr_operand (insn, insn2, pc, constraint, buf, comment, regs) break; case 'h': - sprintf (buf, "0x%x%x", (insn & 1) | ((insn & (0x1f << 4)) >> 3), insn2); + sprintf (buf, "0x%x", + ((((insn & 1) | ((insn & 0x1f0) >> 3)) << 16) | insn2) * 2); break; case 'L': |