This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] avr port: bug in disassembler


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':


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]