Lines Matching refs:AppendToBuffer
330 PRINTF_FORMAT(2, 3) void AppendToBuffer(const char* format, ...);
336 AppendToBuffer("'Unimplemented Instruction'"); in UnimplementedInstruction()
342 void DisassemblerX87::AppendToBuffer(const char* format, ...) { in AppendToBuffer() function in disasm::DisassemblerX87
362 AppendToBuffer("[0x%x]", disp); in PrintRightOperandHelper()
369 AppendToBuffer("[%s]", (this->*register_name)(rm)); in PrintRightOperandHelper()
373 AppendToBuffer("[%s*%d%s0x%x]", in PrintRightOperandHelper()
381 AppendToBuffer("[%s+%s*%d]", in PrintRightOperandHelper()
391 AppendToBuffer("[%s]", (this->*register_name)(rm)); in PrintRightOperandHelper()
404 AppendToBuffer("[%s%s0x%x]", in PrintRightOperandHelper()
409 AppendToBuffer("[%s+%s*%d%s0x%x]", in PrintRightOperandHelper()
421 AppendToBuffer("[%s%s0x%x]", in PrintRightOperandHelper()
429 AppendToBuffer("%s", (this->*register_name)(rm)); in PrintRightOperandHelper()
467 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop)); in PrintOperands()
472 AppendToBuffer("%s ", mnem); in PrintOperands()
474 AppendToBuffer(",%s", NameOfCPURegister(regop)); in PrintOperands()
503 AppendToBuffer("%s ", mnem); in PrintImmediateOp()
506 AppendToBuffer(",0x%x", *(data + 1 + count)); in PrintImmediateOp()
509 AppendToBuffer(",0x%x", *reinterpret_cast<int32_t*>(data + 1 + count)); in PrintImmediateOp()
547 AppendToBuffer("%s ", mnem); in F7Instruction()
550 AppendToBuffer(",0x%x", *reinterpret_cast<int32_t*>(data + count)); in F7Instruction()
590 AppendToBuffer("%s ", mnem); in D1D3C1Instruction()
601 AppendToBuffer(",%d", imm8); in D1D3C1Instruction()
603 AppendToBuffer(",cl"); in D1D3C1Instruction()
614 AppendToBuffer("jmp %s", NameOfAddress(dest)); in JumpShort()
625 AppendToBuffer("%s %s", mnem, NameOfAddress(dest)); in JumpConditional()
627 AppendToBuffer(", %s", comment); in JumpConditional()
639 AppendToBuffer("%s %s", mnem, NameOfAddress(dest)); in JumpConditionalShort()
641 AppendToBuffer(", %s", comment); in JumpConditionalShort()
652 AppendToBuffer("%s ", mnem); in SetCC()
759 AppendToBuffer("%s ", mnem); in MemoryFPUInstruction()
885 AppendToBuffer("%s st%d", mnem, modrm_byte & 0x7); in RegisterFPUInstruction()
887 AppendToBuffer("%s", mnem); in RegisterFPUInstruction()
951 AppendToBuffer("lock "); in InstructionDecode()
960 AppendToBuffer("%s", idesc.mnem); in InstructionDecode()
974 AppendToBuffer("%s %s", idesc.mnem, NameOfCPURegister(*data & 0x07)); in InstructionDecode()
980 AppendToBuffer("mov %s,%s", in InstructionDecode()
989 AppendToBuffer("%s %s", idesc.mnem, NameOfAddress(addr)); in InstructionDecode()
996 AppendToBuffer("%s eax,%s", idesc.mnem, NameOfAddress(addr)); in InstructionDecode()
1002 AppendToBuffer("%s al,0x%x", idesc.mnem, data[1]); in InstructionDecode()
1018 AppendToBuffer("ret 0x%x", *reinterpret_cast<uint16_t*>(data+1)); in InstructionDecode()
1025 AppendToBuffer(",%d", *data); in InstructionDecode()
1032 AppendToBuffer(",%d", *reinterpret_cast<int32_t*>(data)); in InstructionDecode()
1042 AppendToBuffer("test_b "); in InstructionDecode()
1045 AppendToBuffer(",0x%x", imm); in InstructionDecode()
1066 AppendToBuffer("%s%s ", f0mnem, suffix[regop & 0x03]); in InstructionDecode()
1069 AppendToBuffer("nop"); // 3 byte nop. in InstructionDecode()
1072 AppendToBuffer("nop"); // 4 byte nop. in InstructionDecode()
1076 AppendToBuffer("nop"); // 5 byte nop. in InstructionDecode()
1080 AppendToBuffer("nop"); // 7 byte nop. in InstructionDecode()
1085 AppendToBuffer("nop"); // 8 byte nop. in InstructionDecode()
1088 AppendToBuffer("%s", f0mnem); in InstructionDecode()
1094 AppendToBuffer("movaps %s,%s", in InstructionDecode()
1118 AppendToBuffer("%s %s,", in InstructionDecode()
1126 AppendToBuffer("movmskps %s,%s", in InstructionDecode()
1136 AppendToBuffer("shufps %s,%s,%d", in InstructionDecode()
1154 AppendToBuffer("%s ", f0mnem); in InstructionDecode()
1159 AppendToBuffer("%s,%s,%d", NameOfCPURegister(rm), in InstructionDecode()
1164 AppendToBuffer("%s ", f0mnem); in InstructionDecode()
1169 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1171 AppendToBuffer(",%s,cl", NameOfCPURegister(regop)); in InstructionDecode()
1176 AppendToBuffer("%s ", f0mnem); in InstructionDecode()
1180 AppendToBuffer(",%s", NameOfByteCPURegister(regop)); in InstructionDecode()
1189 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop)); in InstructionDecode()
1195 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop)); in InstructionDecode()
1208 AppendToBuffer("pop "); in InstructionDecode()
1227 AppendToBuffer("%s ", mnem); in InstructionDecode()
1237 AppendToBuffer("%s ", "mov_b"); in InstructionDecode()
1240 AppendToBuffer(",0x%x", imm); in InstructionDecode()
1243 AppendToBuffer("%s ", "mov"); in InstructionDecode()
1246 AppendToBuffer(",0x%x", imm); in InstructionDecode()
1262 AppendToBuffer("%s ", mnem); in InstructionDecode()
1265 AppendToBuffer(",0x%x", imm); in InstructionDecode()
1277 AppendToBuffer("%s ", "mov_b"); in InstructionDecode()
1279 AppendToBuffer(",%s", NameOfByteCPURegister(regop)); in InstructionDecode()
1281 AppendToBuffer("%s ", "mov"); in InstructionDecode()
1283 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1291 AppendToBuffer("nop"); // 0x66 prefix in InstructionDecode()
1300 AppendToBuffer("cmpw "); in InstructionDecode()
1303 AppendToBuffer(",0x%x", imm); in InstructionDecode()
1309 AppendToBuffer("xchg_w %s,", NameOfCPURegister(regop)); in InstructionDecode()
1315 AppendToBuffer("mov_w "); in InstructionDecode()
1317 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1322 AppendToBuffer("nop"); // 0x66 prefix in InstructionDecode()
1325 AppendToBuffer("%s ", "mov_w"); in InstructionDecode()
1328 AppendToBuffer(",0x%x", imm); in InstructionDecode()
1332 AppendToBuffer("%s ", "test_w"); in InstructionDecode()
1335 AppendToBuffer(",0x%x", imm); in InstructionDecode()
1345 AppendToBuffer("ptest %s,%s", in InstructionDecode()
1362 AppendToBuffer("roundsd %s,%s,%d", in InstructionDecode()
1372 AppendToBuffer("pextrd %s,%s,%d", in InstructionDecode()
1382 AppendToBuffer("extractps %s,%s,%d", in InstructionDecode()
1392 AppendToBuffer("pinsrd %s,%s,%d", in InstructionDecode()
1406 AppendToBuffer("%s %s,%s", mnem, in InstructionDecode()
1411 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
1418 AppendToBuffer("movmskpd %s,%s", in InstructionDecode()
1426 AppendToBuffer("andpd %s,%s", in InstructionDecode()
1434 AppendToBuffer("orpd %s,%s", in InstructionDecode()
1442 AppendToBuffer("xorpd %s,%s", in InstructionDecode()
1450 AppendToBuffer("movd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1456 AppendToBuffer("movdqa %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1463 AppendToBuffer("pshufd %s,%s,%d", in InstructionDecode()
1472 AppendToBuffer("pcmpeqd %s,%s", in InstructionDecode()
1478 AppendToBuffer("nop"); // 2 byte nop. in InstructionDecode()
1483 AppendToBuffer("psllq %s,%s", in InstructionDecode()
1493 AppendToBuffer("%s %s,%d", in InstructionDecode()
1502 AppendToBuffer("psrlq %s,%s", in InstructionDecode()
1507 AppendToBuffer("movdqa "); in InstructionDecode()
1512 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1517 AppendToBuffer("movd "); in InstructionDecode()
1519 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1524 AppendToBuffer("pand %s,%s", in InstructionDecode()
1542 AppendToBuffer("pxor %s,%s", in InstructionDecode()
1550 AppendToBuffer("por %s,%s", in InstructionDecode()
1570 AppendToBuffer("dec_b "); in InstructionDecode()
1579 AppendToBuffer("push 0x%x", *reinterpret_cast<int32_t*>(data+1)); in InstructionDecode()
1584 AppendToBuffer("push 0x%x", *reinterpret_cast<int8_t*>(data + 1)); in InstructionDecode()
1589 AppendToBuffer("test al,0x%x", *reinterpret_cast<uint8_t*>(data+1)); in InstructionDecode()
1594 AppendToBuffer("test eax,0x%x", *reinterpret_cast<int32_t*>(data+1)); in InstructionDecode()
1623 AppendToBuffer("movsd "); in InstructionDecode()
1628 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1633 AppendToBuffer("movsd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1639 AppendToBuffer("cvtsd2ss %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1657 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
1660 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop)); in InstructionDecode()
1674 AppendToBuffer("%s %s,%s", in InstructionDecode()
1680 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
1693 AppendToBuffer("movss "); in InstructionDecode()
1698 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1703 AppendToBuffer("movss %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1709 AppendToBuffer("cvttss2si %s,", NameOfCPURegister(regop)); in InstructionDecode()
1715 AppendToBuffer("cvtss2sd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1721 AppendToBuffer("movdqu %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1724 AppendToBuffer("movdqu "); in InstructionDecode()
1729 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1735 AppendToBuffer("rep_movs"); in InstructionDecode()
1738 AppendToBuffer("rep_stos"); in InstructionDecode()