else
{
if ((signed_operand_val > -256) && (signed_operand_val < 256))
- (*info->fprintf_func) (info->stream, "%d", signed_operand_val);
+ (*info->fprintf_styled_func) (info->stream, dis_style_immediate,
+ "%d", signed_operand_val);
else
- (*info->fprintf_func) (info->stream, "0x%x", signed_operand_val);
+ (*info->fprintf_styled_func) (info->stream, dis_style_immediate,
+ "0x%x", signed_operand_val);
}
}
else
{
int i = 1;
xtensa_regfile opnd_rf = xtensa_operand_regfile (isa, opc, opnd);
- (*info->fprintf_func) (info->stream, "%s%u",
- xtensa_regfile_shortname (isa, opnd_rf),
- operand_val);
+ (*info->fprintf_styled_func) (info->stream, dis_style_register,
+ "%s%u",
+ xtensa_regfile_shortname (isa, opnd_rf),
+ operand_val);
while (i < xtensa_operand_num_regs (isa, opc, opnd))
{
operand_val++;
- (*info->fprintf_func) (info->stream, ":%s%u",
- xtensa_regfile_shortname (isa, opnd_rf),
- operand_val);
+ (*info->fprintf_styled_func) (info->stream, dis_style_register,
+ ":%s%u",
+ xtensa_regfile_shortname (isa, opnd_rf),
+ operand_val);
i++;
}
}
}
else
{
- (*info->fprintf_func) (info->stream, ".byte %#02x", priv.byte_buf[0]);
+ (*info->fprintf_styled_func) (info->stream,
+ dis_style_assembler_directive,
+ ".byte");
+ (*info->fprintf_func) (info->stream, "\t");
+ (*info->fprintf_styled_func) (info->stream,
+ dis_style_immediate,
+ "%#02x", priv.byte_buf[0]);
return 1;
}
}
xtensa_format_get_slot (isa, fmt, n, insn_buffer, slot_buffer);
opc = xtensa_opcode_decode (isa, fmt, n, slot_buffer);
- (*info->fprintf_func) (info->stream, "%s",
- xtensa_opcode_name (isa, opc));
+ (*info->fprintf_styled_func) (info->stream,
+ dis_style_mnemonic, "%s",
+ xtensa_opcode_name (isa, opc));
if (xtensa_opcode_is_branch (isa, opc))
info->insn_type = dis_condbranch;