OLD | NEW |
1 /* Disassemble MSP430 instructions. | 1 /* Disassemble MSP430 instructions. |
2 Copyright (C) 2002, 2004, 2005, 2007, 2009, 2010 | 2 Copyright (C) 2002, 2004, 2005, 2007, 2009, 2010, 2012 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 Contributed by Dmitry Diky <diwil@mail.ru> | 5 Contributed by Dmitry Diky <diwil@mail.ru> |
6 | 6 |
7 This file is part of the GNU opcodes library. | 7 This file is part of the GNU opcodes library. |
8 | 8 |
9 This library is free software; you can redistribute it and/or modify | 9 This library is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
11 the Free Software Foundation; either version 3, or (at your option) | 11 the Free Software Foundation; either version 3, or (at your option) |
12 any later version. | 12 any later version. |
13 | 13 |
14 It is distributed in the hope that it will be useful, but WITHOUT | 14 It is distributed in the hope that it will be useful, but WITHOUT |
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
17 License for more details. | 17 License for more details. |
18 | 18 |
19 You should have received a copy of the GNU General Public License | 19 You should have received a copy of the GNU General Public License |
20 along with this program; if not, write to the Free Software | 20 along with this program; if not, write to the Free Software |
21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 21 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
22 MA 02110-1301, USA. */ | 22 MA 02110-1301, USA. */ |
23 | 23 |
| 24 #include "sysdep.h" |
24 #include <stdio.h> | 25 #include <stdio.h> |
25 #include <ctype.h> | 26 #include <ctype.h> |
26 #include <string.h> | |
27 #include <sys/types.h> | 27 #include <sys/types.h> |
28 | 28 |
29 #include "dis-asm.h" | 29 #include "dis-asm.h" |
30 #include "opintl.h" | 30 #include "opintl.h" |
31 #include "libiberty.h" | 31 #include "libiberty.h" |
32 | 32 |
33 #define DASM_SECTION | 33 #define DASM_SECTION |
34 #include "opcode/msp430.h" | 34 #include "opcode/msp430.h" |
35 #undef DASM_SECTION | 35 #undef DASM_SECTION |
36 | 36 |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 } | 778 } |
779 } | 779 } |
780 if (*comm1) | 780 if (*comm1) |
781 (*prin) (stream, "%s", comm1); | 781 (*prin) (stream, "%s", comm1); |
782 if (*comm1 && *comm2) | 782 if (*comm1 && *comm2) |
783 (*prin) (stream, ","); | 783 (*prin) (stream, ","); |
784 if (*comm2) | 784 if (*comm2) |
785 (*prin) (stream, " %s", comm2); | 785 (*prin) (stream, " %s", comm2); |
786 return cmd_len; | 786 return cmd_len; |
787 } | 787 } |
OLD | NEW |