OLD | NEW |
1 /* Print VAX instructions. | 1 /* Print VAX instructions. |
2 Copyright 1995, 1998, 2000, 2001, 2002, 2005, 2007, 2009 | 2 Copyright 1995, 1998, 2000, 2001, 2002, 2005, 2007, 2009, 2012 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Contributed by Pauline Middelink <middelin@polyware.iaf.nl> | 4 Contributed by Pauline Middelink <middelin@polyware.iaf.nl> |
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 <setjmp.h> | 24 #include <setjmp.h> |
24 #include <string.h> | 25 #include <string.h> |
25 #include "sysdep.h" | |
26 #include "opcode/vax.h" | 26 #include "opcode/vax.h" |
27 #include "dis-asm.h" | 27 #include "dis-asm.h" |
28 | 28 |
29 static char *reg_names[] = | 29 static char *reg_names[] = |
30 { | 30 { |
31 "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", | 31 "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", |
32 "r8", "r9", "r10", "r11", "ap", "fp", "sp", "pc" | 32 "r8", "r9", "r10", "r11", "ap", "fp", "sp", "pc" |
33 }; | 33 }; |
34 | 34 |
35 /* Definitions for the function entry mask bits. */ | 35 /* Definitions for the function entry mask bits. */ |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 { | 478 { |
479 arg += print_insn_arg (argp, arg, memaddr + arg - buffer, info); | 479 arg += print_insn_arg (argp, arg, memaddr + arg - buffer, info); |
480 argp += 2; | 480 argp += 2; |
481 if (*argp) | 481 if (*argp) |
482 (*info->fprintf_func) (info->stream, ","); | 482 (*info->fprintf_func) (info->stream, ","); |
483 } | 483 } |
484 | 484 |
485 return arg - buffer; | 485 return arg - buffer; |
486 } | 486 } |
487 | 487 |
OLD | NEW |