| OLD | NEW |
| 1 /* Disassemble MN10300 instructions. | 1 /* Disassemble MN10300 instructions. |
| 2 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2007 | 2 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2012 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 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 program; if not, write to the Free Software | 18 along with this program; if not, write to the Free Software |
| 19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 19 Foundation, Inc., 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 | |
| 24 #include "sysdep.h" | |
| 25 #include "opcode/mn10300.h" | 24 #include "opcode/mn10300.h" |
| 26 #include "dis-asm.h" | 25 #include "dis-asm.h" |
| 27 #include "opintl.h" | 26 #include "opintl.h" |
| 28 | 27 |
| 29 #define HAVE_AM33_2 (info->mach == AM33_2) | 28 #define HAVE_AM33_2 (info->mach == AM33_2) |
| 30 #define HAVE_AM33 (info->mach == AM33 || HAVE_AM33_2) | 29 #define HAVE_AM33 (info->mach == AM33 || HAVE_AM33_2) |
| 31 #define HAVE_AM30 (info->mach == AM30) | 30 #define HAVE_AM30 (info->mach == AM30) |
| 32 | 31 |
| 33 static void | 32 static void |
| 34 disassemble (bfd_vma memaddr, | 33 disassemble (bfd_vma memaddr, |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 consume = 7; | 752 consume = 7; |
| 754 /* Handle the 5-byte extended instruction codes. */ | 753 /* Handle the 5-byte extended instruction codes. */ |
| 755 if ((insn & 0xfff80000) == 0xfe800000) | 754 if ((insn & 0xfff80000) == 0xfe800000) |
| 756 consume = 5; | 755 consume = 5; |
| 757 } | 756 } |
| 758 | 757 |
| 759 disassemble (memaddr, info, insn, consume); | 758 disassemble (memaddr, info, insn, consume); |
| 760 | 759 |
| 761 return consume; | 760 return consume; |
| 762 } | 761 } |
| OLD | NEW |