* avr-dis.c (avr_operand): Bugfix for jmp/call address.
authorDenis Chertykov <denisc@overta.ru>
Fri, 9 Jun 2000 17:58:33 +0000 (17:58 +0000)
committerDenis Chertykov <denisc@overta.ru>
Fri, 9 Jun 2000 17:58:33 +0000 (17:58 +0000)
opcodes/ChangeLog
opcodes/avr-dis.c

index 3009d85a7e75ecd9cd61a49bc1f7048e41d7774f..78ea691f8da3a8be6e829e2f6e3686b8d3506e30 100644 (file)
@@ -1,3 +1,7 @@
+Fri Jun  9 21:49:02 2000  Denis Chertykov  <denisc@overta.ru>
+
+       * avr-dis.c (avr_operand): Bugfix for jmp/call address.
+
 Wed Jun  7 21:36:45 2000  Denis Chertykov  <denisc@overta.ru>
 
        * avr-dis.c: completely rewritten.
index 1ffd218f48b44ceb391cfc290604a25d7945b08f..a774d8b7c3437c0692568ba31ebe67c996ad9559 100644 (file)
@@ -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':
This page took 0.042362 seconds and 4 git commands to generate.