/* Opcode decoder for the TI MSP430
- Copyright (C) 2012-2014 Free Software Foundation, Inc.
+ Copyright (C) 2012-2020 Free Software Foundation, Inc.
Written by DJ Delorie <dj@redhat.com>
This file is part of GDB, the GNU Debugger.
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum
{
MSO_unknown,
unsigned char condition : 3;
} MSP430_Opcode_Operand;
-typedef enum
-{
- MSP430_Byte = 0,
- MSP430_Word,
- MSP430_Addr
-} MSP430_Size;
-
/* These numerically match the bit encoding. */
typedef enum
{
unsigned repeats:5; /* Contains COUNT-1, or register number. */
int n_bytes; /* Opcode size in BYTES. */
char * syntax;
- MSP430_Size size; /* Operand size in BITS. */
+ int size; /* Operand size in BITS. */
MSP430_Condition cond;
/* By convention, these are [0]destination, [1]source. */
MSP430_Opcode_Operand op[2];
} MSP430_Opcode_Decoded;
int msp430_decode_opcode (unsigned long, MSP430_Opcode_Decoded *, int (*)(void *), void *);
+
+#ifdef __cplusplus
+}
+#endif