OLD | NEW |
1 /* Disassemble D10V instructions. | 1 /* Disassemble D10V instructions. |
2 Copyright 1996, 1997, 1998, 2000, 2001, 2005, 2007 | 2 Copyright 1996, 1997, 1998, 2000, 2001, 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/d10v.h" | 24 #include "opcode/d10v.h" |
26 #include "dis-asm.h" | 25 #include "dis-asm.h" |
27 | 26 |
28 /* The PC wraps at 18 bits, except for the segment number, | 27 /* The PC wraps at 18 bits, except for the segment number, |
29 so use this mask to keep the parts we want. */ | 28 so use this mask to keep the parts we want. */ |
30 #define PC_MASK 0x0303FFFF | 29 #define PC_MASK 0x0303FFFF |
31 | 30 |
32 static void | 31 static void |
33 print_operand (struct d10v_operand *oper, | 32 print_operand (struct d10v_operand *oper, |
34 unsigned long insn, | 33 unsigned long insn, |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 break; | 289 break; |
291 case FM10: | 290 case FM10: |
292 dis_2_short (insn, memaddr, info, 1); | 291 dis_2_short (insn, memaddr, info, 1); |
293 break; | 292 break; |
294 case FM11: | 293 case FM11: |
295 dis_long (insn, memaddr, info); | 294 dis_long (insn, memaddr, info); |
296 break; | 295 break; |
297 } | 296 } |
298 return 4; | 297 return 4; |
299 } | 298 } |
OLD | NEW |