Lines Matching defs:operand
28 /* Print an integer operand. Try to be somewhat smart about the
96 /* Print the operand as directed by the flags. */
106 const struct tic80_operand *operand,
109 if ((operand->flags & TIC80_OPERAND_GPR) != 0)
112 if (M_SI (insn, operand) || M_LI (insn, operand))
117 else if ((operand->flags & TIC80_OPERAND_FPA) != 0)
120 else if ((operand->flags & TIC80_OPERAND_PCREL) != 0)
123 else if ((operand->flags & TIC80_OPERAND_BASEREL) != 0)
126 else if ((operand->flags & TIC80_OPERAND_BITNUM) != 0)
129 else if ((operand->flags & TIC80_OPERAND_CC) != 0)
132 else if ((operand->flags & TIC80_OPERAND_CR) != 0)
135 else if ((operand->flags & TIC80_OPERAND_FLOAT) != 0)
138 else if ((operand->flags & TIC80_OPERAND_BITFIELD))
144 /* If this is a scaled operand, then print the modifier. */
145 if (R_SCALED (insn, operand))
195 const struct tic80_operand *operand;
205 operand = tic80_operands + *opindex;
208 if (operand->extract)
209 value = (*operand->extract) (insn, NULL);
211 else if (operand->bits == 32)
219 value = (insn >> operand->shift) & ((1 << operand->bits) - 1);
221 if ((operand->flags & TIC80_OPERAND_SIGNED) != 0
222 && (value & (1 << (operand->bits - 1))) != 0)
223 value -= 1 << operand->bits;
226 /* If this operand is enclosed in parenthesis, then print
228 separator, except for the first operand. */
229 if ((operand->flags & TIC80_OPERAND_PARENS) == 0)
241 print_operand (info, value, insn, operand, memaddr);
243 /* If we printed an open paren before printing this operand, close