Home | History | Annotate | Download | only in libenc

Lines Matching full:strbuf

504 // Disassemble the operand "opnd" and put the readable format in "strbuf"
506 unsigned int DisassembleOperandToBuf(const EncoderBase::Operand& opnd, char* strbuf, unsigned int len)
510 sz += snprintf(&strbuf[sz], len-sz, "%s ",
515 sz += snprintf(&strbuf[sz], len-sz, "%d(%s,%s,%d)", opnd.disp(),
519 sz += snprintf(&strbuf[sz], len-sz, "%d(%s)",
523 sz += snprintf(&strbuf[sz], len-sz, "#%x", (int)opnd.imm());
525 sz += snprintf(&strbuf[sz], len-sz, "%s",
532 // in "strbuf" up to a string length of "len".
533 void DisassembleInstToBuf(Inst& decInst, char* strbuf, unsigned int len)
537 sz += snprintf(&strbuf[sz], len-sz, "%s ", EncoderBase::toStr(decInst.mn));
540 &strbuf[sz], len-sz);
542 sz += snprintf(&strbuf[sz], len-sz, ", ");
543 sz += DisassembleOperandToBuf(decInst.operands[k], &strbuf[sz], len-sz);
549 // Put the disassemble text in the "strbuf" up to string length "len".
552 char* decoder_disassemble_instr(char* stream, char* strbuf, unsigned int len)
556 DisassembleInstToBuf(decInst, strbuf, len);