| OLD | NEW |
| 1 /* Disassemble V850 instructions. | 1 /* Disassemble V850 instructions. |
| 2 Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2010 | 2 Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2010, |
| 3 Free Software Foundation, Inc. | 3 2012 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 | 22 |
| 23 #include "sysdep.h" |
| 23 #include <stdio.h> | 24 #include <stdio.h> |
| 24 | |
| 25 #include "sysdep.h" | |
| 26 #include "opcode/v850.h" | 25 #include "opcode/v850.h" |
| 27 #include "dis-asm.h" | 26 #include "dis-asm.h" |
| 28 #include "opintl.h" | 27 #include "opintl.h" |
| 29 | 28 |
| 30 static const char *const v850_reg_names[] = | 29 static const char *const v850_reg_names[] = |
| 31 { | 30 { |
| 32 "r0", "r1", "r2", "sp", "gp", "r5", "r6", "r7", | 31 "r0", "r1", "r2", "sp", "gp", "r5", "r6", "r7", |
| 33 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", | 32 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", |
| 34 "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", | 33 "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", |
| 35 "r24", "r25", "r26", "r27", "r28", "r29", "ep", "lp" | 34 "r24", "r25", "r26", "r27", "r28", "r29", "ep", "lp" |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 { | 632 { |
| 634 insn = bfd_getl32 (buffer + l); | 633 insn = bfd_getl32 (buffer + l); |
| 635 info->fprintf_func (info->stream, ".long\t0x%08lx", insn); | 634 info->fprintf_func (info->stream, ".long\t0x%08lx", insn); |
| 636 l += 4; | 635 l += 4; |
| 637 } | 636 } |
| 638 } | 637 } |
| 639 } | 638 } |
| 640 | 639 |
| 641 return code_length; | 640 return code_length; |
| 642 } | 641 } |
| OLD | NEW |