(OP_3{0,2,4}00): Properly parenthesize test expression. Add error
if shift count is too high.
(OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
+ (OP_4E09): Make cpfg properly trace the input flags.
+ (op_types): Add OP_FLAG_OUTPUT.
+ (trace_{input,output}): Support OP_FLAG_OUTPUT.
Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
OP_CR_OUTPUT,
OP_CR_REVERSE,
OP_FLAG,
+ OP_FLAG_OUTPUT,
OP_CONSTANT16,
OP_CONSTANT3,
OP_CONSTANT4,
break;
case OP_FLAG:
+ case OP_FLAG_OUTPUT:
if (OP[i] == 0)
sprintf (p, "%sf0", comma);
sprintf (p, "%sf1", comma);
else
- sprintf (p, "%scarry", comma);
+ sprintf (p, "%sc", comma);
p += strlen (p);
comma = ",";
case OP_DREG_OUTPUT:
case OP_CR_OUTPUT:
case OP_ACCUM_OUTPUT:
+ case OP_FLAG_OUTPUT:
(*d10v_callback->printf_filtered) (d10v_callback, "%*s", SIZE_VALUES, "---");
break;
break;
case OP_FLAG:
+ case OP_FLAG_OUTPUT:
(*d10v_callback->printf_filtered) (d10v_callback, " :: %*s F0=%d F1=%d C=%d\n", SIZE_VALUES, "",
State.F0 != 0, State.F1 != 0, State.C != 0);
break;
{
uint8 *src, *dst;
- trace_input ("cpfg", OP_FLAG, OP_VOID, OP_VOID);
+ trace_input ("cpfg", OP_FLAG_OUTPUT, OP_FLAG, OP_VOID);
if (OP[0] == 0)
dst = &State.F0;
else