From: Denis Chertykov Date: Fri, 9 Jun 2000 17:58:33 +0000 (+0000) Subject: * avr-dis.c (avr_operand): Bugfix for jmp/call address. X-Git-Tag: readline-pre-41-import~233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8776c5feceb732ac1a22226d4f841100852dc21d;p=external%2Fbinutils.git * avr-dis.c (avr_operand): Bugfix for jmp/call address. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 3009d85..78ea691 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 9 21:49:02 2000 Denis Chertykov + + * avr-dis.c (avr_operand): Bugfix for jmp/call address. + Wed Jun 7 21:36:45 2000 Denis Chertykov * avr-dis.c: completely rewritten. 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':