-#include "d10v_sim.h"
+#include "config.h"
+#include <stdio.h>
+#include <ctype.h>
+#include <limits.h>
+#include "ansidecl.h"
+#include "opcode/d10v.h"
static void write_header PARAMS ((void));
static void write_opcodes PARAMS ((void));
if ((flags & OPERAND_REG) || (flags & OPERAND_NUM) || (flags & OPERAND_ADDR))
j++;
}
- printf ("%d,{",j);
+ printf ("%d,",j);
j = 0;
for (i=0;i<6;i++)
int shift = d10v_operands[opcode->operands[i]].shift;
if ((flags & OPERAND_REG) || (flags & OPERAND_NUM)|| (flags & OPERAND_ADDR))
{
- if (j)
+ if (j == 0)
+ printf ("{");
+ else
printf (", ");
if ((flags & OPERAND_REG) && (opcode->format == LONG_L))
shift += 15;
j = 1;
}
}
- printf ("}},\n");
+ if (j)
+ printf ("}");
+ printf ("},\n");
}
}
- printf ("{ 0,0,0,0,0,0,NULL,0,{ }},\n};\n");
+ printf ("{ 0,0,0,0,0,0,0,(void (*)(void))0,0,{0,0,0}},\n};\n");
}