*** empty log message ***
[deliverable/binutils-gdb.git] / opcodes / m10200-dis.c
index 92bc2fd84fd15e564df7151866b192ff35ae2b24..6c69c0016ce61d4b02e7e91ba044773f5fe39a1d 100644 (file)
@@ -1,15 +1,17 @@
 /* Disassemble MN10200 instructions.
-   Copyright 1996, 1997, 1998, 2000, 2005 Free Software Foundation, Inc.
+   Copyright 1996, 1997, 1998, 2000, 2005, 2007 Free Software Foundation, Inc.
 
-   This program is free software; you can redistribute it and/or modify
+   This file is part of the GNU opcodes library.
+
+   This library is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
+   the Free Software Foundation; either version 3, or (at your option)
+   any later version.
 
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
+   It is distributed in the hope that it will be useful, but WITHOUT
+   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
+   License for more details.
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
@@ -108,14 +110,14 @@ disassemble (bfd_vma memaddr,
                {
                  value = ((insn >> (operand->shift + extra_shift))
                           & ((1 << operand->bits) - 1));
-                 (*info->fprintf_func) (info->stream, "d%d", value);
+                 (*info->fprintf_func) (info->stream, "d%ld", value);
                }
 
              else if ((operand->flags & MN10200_OPERAND_AREG) != 0)
                {
                  value = ((insn >> (operand->shift + extra_shift))
                           & ((1 << operand->bits) - 1));
-                 (*info->fprintf_func) (info->stream, "a%d", value);
+                 (*info->fprintf_func) (info->stream, "a%ld", value);
                }
 
              else if ((operand->flags & MN10200_OPERAND_PSW) != 0)
@@ -323,7 +325,7 @@ print_insn_mn10200 (bfd_vma memaddr, struct disassemble_info *info)
     }
   else
     {
-      (*info->fprintf_func) (info->stream, _("unknown\t0x%02x"), insn);
+      (*info->fprintf_func) (info->stream, _("unknown\t0x%02lx"), insn);
       return 1;
     }
 
This page took 0.029742 seconds and 4 git commands to generate.