| OLD | NEW |
| 1 /* Disassembly routines for TMS320C30 architecture | 1 /* Disassembly routines for TMS320C30 architecture |
| 2 Copyright 1998, 1999, 2000, 2002, 2005, 2007, 2009 | 2 Copyright 1998, 1999, 2000, 2002, 2005, 2007, 2009, 2012 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au) | 4 Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au) |
| 5 | 5 |
| 6 This file is part of the GNU opcodes library. | 6 This file is part of the GNU opcodes library. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or modify | 8 This library is free software; you can redistribute it and/or modify |
| 9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
| 10 the Free Software Foundation; either version 3, or (at your option) | 10 the Free Software Foundation; either version 3, or (at your option) |
| 11 any later version. | 11 any later version. |
| 12 | 12 |
| 13 It is distributed in the hope that it will be useful, but WITHOUT | 13 It is distributed in the hope that it will be useful, but WITHOUT |
| 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 16 License for more details. | 16 License for more details. |
| 17 | 17 |
| 18 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
| 19 along with this file; see the file COPYING. If not, write to the | 19 along with this file; see the file COPYING. If not, write to the |
| 20 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | 20 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, |
| 21 MA 02110-1301, USA. */ | 21 MA 02110-1301, USA. */ |
| 22 | 22 |
| 23 #include "sysdep.h" |
| 23 #include <errno.h> | 24 #include <errno.h> |
| 24 #include <math.h> | 25 #include <math.h> |
| 25 #include "sysdep.h" | |
| 26 #include "dis-asm.h" | 26 #include "dis-asm.h" |
| 27 #include "opcode/tic30.h" | 27 #include "opcode/tic30.h" |
| 28 | 28 |
| 29 #define NORMAL_INSN 1 | 29 #define NORMAL_INSN 1 |
| 30 #define PARALLEL_INSN 2 | 30 #define PARALLEL_INSN 2 |
| 31 | 31 |
| 32 /* Gets the type of instruction based on the top 2 or 3 bits of the | 32 /* Gets the type of instruction based on the top 2 or 3 bits of the |
| 33 instruction word. */ | 33 instruction word. */ |
| 34 #define GET_TYPE(insn) (insn & 0x80000000 ? insn & 0xC0000000 : insn & 0xE000000
0) | 34 #define GET_TYPE(insn) (insn & 0x80000000 ? insn & 0xC0000000 : insn & 0xE000000
0) |
| 35 | 35 |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 if (!print_par_insn (info, insn_word, &insn)) | 708 if (!print_par_insn (info, insn_word, &insn)) |
| 709 return -1; | 709 return -1; |
| 710 break; | 710 break; |
| 711 case BRANCHES: | 711 case BRANCHES: |
| 712 if (!print_branch (info, insn_word, &insn)) | 712 if (!print_branch (info, insn_word, &insn)) |
| 713 return -1; | 713 return -1; |
| 714 break; | 714 break; |
| 715 } | 715 } |
| 716 return 4; | 716 return 4; |
| 717 } | 717 } |
| OLD | NEW |