| OLD | NEW |
| 1 /* mmix-dis.c -- Disassemble MMIX instructions. | 1 /* mmix-dis.c -- Disassemble MMIX instructions. |
| 2 Copyright 2000, 2001, 2002, 2005, 2007 Free Software Foundation, Inc. | 2 Copyright 2000, 2001, 2002, 2005, 2007, 2012 Free Software Foundation, Inc. |
| 3 Written by Hans-Peter Nilsson (hp@bitrange.com) | 3 Written by Hans-Peter Nilsson (hp@bitrange.com) |
| 4 | 4 |
| 5 This file is part of the GNU opcodes library. | 5 This file is part of the GNU opcodes library. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or modify | 7 This library is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3, or (at your option) | 9 the Free Software Foundation; either version 3, or (at your option) |
| 10 any later version. | 10 any later version. |
| 11 | 11 |
| 12 It is distributed in the hope that it will be useful, but WITHOUT | 12 It is distributed in the hope that it will be useful, but WITHOUT |
| 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 15 License for more details. | 15 License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
| 18 along with this file; see the file COPYING. If not, write to the Free | 18 along with this file; see the file COPYING. If not, write to the Free |
| 19 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | 19 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, |
| 20 MA 02110-1301, USA. */ | 20 MA 02110-1301, USA. */ |
| 21 | 21 |
| 22 #include "sysdep.h" |
| 22 #include <stdio.h> | 23 #include <stdio.h> |
| 23 #include <string.h> | |
| 24 #include <stdlib.h> | |
| 25 #include "opcode/mmix.h" | 24 #include "opcode/mmix.h" |
| 26 #include "dis-asm.h" | 25 #include "dis-asm.h" |
| 27 #include "libiberty.h" | 26 #include "libiberty.h" |
| 28 #include "bfd.h" | 27 #include "bfd.h" |
| 29 #include "opintl.h" | 28 #include "opintl.h" |
| 30 | 29 |
| 31 #define BAD_CASE(x) \ | 30 #define BAD_CASE(x) \ |
| 32 do \ | 31 do \ |
| 33 { \ | 32 { \ |
| 34 fprintf (stderr, \ | 33 fprintf (stderr, \ |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 break; | 508 break; |
| 510 | 509 |
| 511 default: | 510 default: |
| 512 (*info->fprintf_func) (info->stream, _("*unknown operands type: %d*"), | 511 (*info->fprintf_func) (info->stream, _("*unknown operands type: %d*"), |
| 513 opcodep->operands); | 512 opcodep->operands); |
| 514 break; | 513 break; |
| 515 } | 514 } |
| 516 | 515 |
| 517 return 4; | 516 return 4; |
| 518 } | 517 } |
| OLD | NEW |