Rev 5191 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5191 | Rev 6324 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* Opcode decoder for the Renesas RL78 |
1 | /* Opcode decoder for the Renesas RL78 |
2 | Copyright 2011 |
- | |
3 | Free Software Foundation, Inc. |
2 | Copyright (C) 2011-2015 Free Software Foundation, Inc. |
4 | Written by DJ Delorie |
3 | Written by DJ Delorie |
Line 5... | Line 4... | ||
5 | 4 | ||
Line 6... | Line 5... | ||
6 | This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler. |
5 | This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler. |
Line 25... | Line 24... | ||
25 | decodes the next opcode into the following structures. */ |
24 | decodes the next opcode into the following structures. */ |
Line 26... | Line 25... | ||
26 | 25 | ||
27 | #ifndef RL78_OPCODES_H_INCLUDED |
26 | #ifndef RL78_OPCODES_H_INCLUDED |
Line -... | Line 27... | ||
- | 27 | #define RL78_OPCODES_H_INCLUDED |
|
- | 28 | ||
- | 29 | #ifdef __cplusplus |
|
- | 30 | extern "C" { |
|
- | 31 | #endif |
|
- | 32 | ||
- | 33 | typedef enum { |
|
- | 34 | RL78_ISA_DEFAULT, |
|
- | 35 | RL78_ISA_G10, |
|
- | 36 | RL78_ISA_G13, |
|
- | 37 | RL78_ISA_G14, |
|
28 | #define RL78_OPCODES_H_INCLUDED |
38 | } RL78_Dis_Isa; |
29 | 39 | ||
30 | /* For the purposes of these structures, the RL78 registers are as |
40 | /* For the purposes of these structures, the RL78 registers are as |
31 | follows, despite most of these being memory-mapped and |
41 | follows, despite most of these being memory-mapped and |
32 | bank-switched: */ |
42 | bank-switched: */ |
Line 161... | Line 171... | ||
161 | RL78_Size size; |
171 | RL78_Size size; |
162 | /* By convention, these are destination, source. */ |
172 | /* By convention, these are destination, source. */ |
163 | RL78_Opcode_Operand op[2]; |
173 | RL78_Opcode_Operand op[2]; |
164 | } RL78_Opcode_Decoded; |
174 | } RL78_Opcode_Decoded; |
Line 165... | Line 175... | ||
165 | 175 | ||
- | 176 | int rl78_decode_opcode (unsigned long, RL78_Opcode_Decoded *, int (*)(void *), void *, RL78_Dis_Isa); |
|
- | 177 | ||
- | 178 | #ifdef __cplusplus |
|
- | 179 | } |
|
Line 166... | Line 180... | ||
166 | int rl78_decode_opcode (unsigned long, RL78_Opcode_Decoded *, int (*)(void *), void *); |
180 | #endif |