/* Opcode table for TI TMS320C80 (MVP).
- Copyright 1996, 1997, 2000, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1996-2019 Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
-#include <stdio.h>
#include "sysdep.h"
+#include <stdio.h>
#include "opcode/tic80.h"
/* This file holds various tables for the TMS320C80 (MVP).
in CLASS, and translates it to a numeric value, which it returns.
If CLASS is zero, any symbol that matches NAME is translated. If
- CLASS is non-zero, then only a symbol that has class CLASS is
+ CLASS is non-zero, then only a symbol that has symbol_class CLASS is
matched.
If no translation is possible, it returns -1, a value not used by
*/
int
-tic80_symbol_to_value (name, class)
- char *name;
- int class;
+tic80_symbol_to_value (char *name, int symbol_class)
{
const struct predefined_symbol *pdsp;
int low = 0;
{
low = middle + 1;
}
- else
+ else
{
pdsp = &tic80_predefined_symbols[middle];
- if ((class == 0) || (class & PDS_VALUE (pdsp)))
+ if ((symbol_class == 0) || (symbol_class & PDS_VALUE (pdsp)))
{
rtnval = PDS_VALUE (pdsp);
}
}
/* This function takes a value VAL and finds a matching predefined
- symbol that is in the operand class specified by CLASS. If CLASS
+ symbol that is in the operand symbol_class specified by CLASS. If CLASS
is zero, the first matching symbol is returned. */
const char *
-tic80_value_to_symbol (val, class)
- int val;
- int class;
+tic80_value_to_symbol (int val, int symbol_class)
{
const struct predefined_symbol *pdsp;
int ival;
ival = PDS_VALUE (pdsp) & ~TIC80_OPERAND_MASK;
if (ival == val)
{
- if ((class == 0) || (class & PDS_VALUE (pdsp)))
+ if ((symbol_class == 0) || (symbol_class & PDS_VALUE (pdsp)))
{
/* Found the desired match */
name = PDS_NAME (pdsp);
returns NULL. */
const struct predefined_symbol *
-tic80_next_predefined_symbol (pdsp)
- const struct predefined_symbol *pdsp;
+tic80_next_predefined_symbol (const struct predefined_symbol *pdsp)
{
if (pdsp == NULL)
{