OLD | NEW |
1 /* Disassembler code for Renesas RL78. | 1 /* Disassembler code for Renesas RL78. |
2 Copyright 2011 Free Software Foundation, Inc. | 2 Copyright 2011, 2012 Free Software Foundation, Inc. |
3 Contributed by Red Hat. | 3 Contributed by Red Hat. |
4 Written by DJ Delorie. | 4 Written by DJ Delorie. |
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 program; if not, write to the Free Software | 19 along with this program; if not, write to the Free Software |
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
21 MA 02110-1301, USA. */ | 21 MA 02110-1301, USA. */ |
22 | 22 |
| 23 #include "sysdep.h" |
23 #include <stdio.h> | 24 #include <stdio.h> |
24 | 25 |
25 #include "bfd.h" | 26 #include "bfd.h" |
26 #include "dis-asm.h" | 27 #include "dis-asm.h" |
27 #include "opcode/rl78.h" | 28 #include "opcode/rl78.h" |
28 | 29 |
29 #define DEBUG_SEMANTICS 0 | 30 #define DEBUG_SEMANTICS 0 |
30 | 31 |
31 typedef struct | 32 typedef struct |
32 { | 33 { |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 319 } |
319 | 320 |
320 #if DEBUG_SEMANTICS | 321 #if DEBUG_SEMANTICS |
321 | 322 |
322 PR (PS, "\t\033[34m(line %d)\033[0m", opcode.lineno); | 323 PR (PS, "\t\033[34m(line %d)\033[0m", opcode.lineno); |
323 | 324 |
324 #endif | 325 #endif |
325 | 326 |
326 return rv; | 327 return rv; |
327 } | 328 } |
OLD | NEW |