/* v850.h -- Header file for NEC V850 opcode table
- Copyright (C) 1996-2016 Free Software Foundation, Inc.
+ Copyright (C) 1996-2021 Free Software Foundation, Inc.
Written by J.T. Conklin, Cygnus Support
This file is part of GDB, GAS, and the GNU binutils.
#ifndef V850_H
#define V850_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* The opcode table is an array of struct v850_opcode. */
struct v850_opcode
operand value is legal, *ERRMSG will be unchanged (most operands
can accept any value). */
unsigned long (* insert)
- (unsigned long instruction, long op, const char ** errmsg);
+ (unsigned long instruction, unsigned long op, const char ** errmsg);
/* Extraction function. This is used by the disassembler. To
extract this operand type from an instruction, check this field.
/* The operand has '%' prefix. */
#define V850_OPERAND_PERCENT 0x200000
-/* This operand is a cache oparation. */
+/* This operand is a cache operation. */
#define V850_OPERAND_CACHEOP 0x400000
-/* This operand is a prefetch oparation. */
+/* This operand is a prefetch operation. */
#define V850_OPERAND_PREFOP 0x800000
/* A PC-relative displacement where a positive value indicates a backwards displacement. */
extern int v850_msg_is_out_of_range (const char *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* V850_H */