aboutsummaryrefslogtreecommitdiff
path: root/opcodes/avr-dis.c
diff options
context:
space:
mode:
authorDenis Chertykov <denisc@overta.ru>2000-06-09 17:58:33 +0000
committerDenis Chertykov <denisc@overta.ru>2000-06-09 17:58:33 +0000
commit8776c5feceb732ac1a22226d4f841100852dc21d (patch)
tree59c2050ce1e847db45e1ede98aa702637c5897c3 /opcodes/avr-dis.c
parentce844ae26dc0f1d3e30fe5b93db9d4b2e65bf8ab (diff)
downloadgdb-8776c5feceb732ac1a22226d4f841100852dc21d.zip
gdb-8776c5feceb732ac1a22226d4f841100852dc21d.tar.gz
gdb-8776c5feceb732ac1a22226d4f841100852dc21d.tar.bz2
* avr-dis.c (avr_operand): Bugfix for jmp/call address.
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 1ffd218..a774d8b 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':