Home | History | Annotate | Download | only in libenc

Lines Matching refs:decInst

116 void printDecoderInst(Inst & decInst) {
121 EncoderBase::toStr(decInst.mn));
122 for(unsigned int k = 0; k < decInst.argc; k++) {
127 printOperand(decInst.operands[decInst.argc-1-k]);
153 Inst decInst;
154 unsigned numBytes = DecoderBase::decode(stream_start, &decInst);
155 printDecoderInst(decInst);
172 Inst decInst;
173 unsigned numBytes = DecoderBase::decode(stream, &decInst);
183 Inst decInst;
184 unsigned numBytes = DecoderBase::decode(stream, &decInst);
187 add_imm(args, decInst.operands[0].size(), imm, true/*is_signed*/);
188 char* stream_next = (char *)EncoderBase::encode(stream, decInst.mn, args);
190 printEncoderInst(decInst.mn, args);
363 Inst decInst;
364 unsigned numBytes = DecoderBase::decode(stream, &decInst);
366 args.add(decInst.operands[0]);
367 add_imm(args, decInst.operands[1].size(), imm, true/*is_signed*/);
368 char* stream_next = (char *)EncoderBase::encode(stream, decInst.mn, args);
370 printEncoderInst(decInst.mn, args);
531 // Disassemble the instruction "decInst" and put the readable format
533 void DisassembleInstToBuf(Inst& decInst, char* strbuf, unsigned int len)
537 sz += snprintf(&strbuf[sz], len-sz, "%s ", EncoderBase::toStr(decInst.mn));
538 if (decInst.argc > 0) {
539 sz += DisassembleOperandToBuf(decInst.operands[decInst.argc-1],
541 for(k = decInst.argc-2; k >= 0; k--) {
543 sz += DisassembleOperandToBuf(decInst.operands[k], &strbuf[sz], len-sz);
554 Inst decInst;
555 unsigned numBytes = DecoderBase::decode(stream, &decInst);
556 DisassembleInstToBuf(decInst, strbuf, len);