[patch] avr port: bug in disassembler
Denis Chertykov
denisc@overta.ru
Fri Jun 9 10:57:00 GMT 2000
Fri Jun 9 21:49:02 2000 Denis Chertykov <denisc@overta.ru>
* avr-dis.c (avr_operand): Bugfix for jmp/call address.
Index: opcodes/avr-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/avr-dis.c,v
retrieving revision 1.5
diff -c -3 -p -r1.5 avr-dis.c
*** avr-dis.c 2000/06/07 17:45:44 1.5
--- avr-dis.c 2000/06/09 17:56:35
*************** avr_operand (insn, insn2, pc, constraint
*** 135,141 ****
break;
case 'h':
! sprintf (buf, "0x%x%x", (insn & 1) | ((insn & (0x1f << 4)) >> 3), insn2);
break;
case 'L':
--- 135,142 ----
break;
case 'h':
! sprintf (buf, "0x%x",
! ((((insn & 1) | ((insn & 0x1f0) >> 3)) << 16) | insn2) * 2);
break;
case 'L':
More information about the Binutils
mailing list