Lines Matching refs:inst_bytes
257 InstructionLengthDecode(const uint8_t *inst_bytes, int bytes_len, in InstructionLengthDecode() argument
271 ret.primary_opcode = inst_bytes[op_idx]; in InstructionLengthDecode()
315 if (!is_exec_mode_64b && (inst_bytes[op_idx + 1] & 0xc0) != 0xc0) { in InstructionLengthDecode()
321 ret.primary_opcode = inst_bytes[op_idx + 2]; in InstructionLengthDecode()
322 ret.modrm = inst_bytes[op_idx + 3]; in InstructionLengthDecode()
326 if (!is_exec_mode_64b && (inst_bytes[op_idx + 1] & 0xc0) != 0xc0) { in InstructionLengthDecode()
330 ret.opcode_len = inst_bytes[op_idx + 1] & 0x1f; in InstructionLengthDecode()
331 ret.primary_opcode = inst_bytes[op_idx + 3]; in InstructionLengthDecode()
332 ret.modrm = inst_bytes[op_idx + 4]; in InstructionLengthDecode()
337 if (!is_exec_mode_64b && (inst_bytes[op_idx + 1] & 0xc0) != 0xc0) { in InstructionLengthDecode()
341 ret.opcode_len = inst_bytes[op_idx + 1] & 0x03; in InstructionLengthDecode()
342 ret.primary_opcode = inst_bytes[op_idx + 4]; in InstructionLengthDecode()
343 ret.modrm = inst_bytes[op_idx + 5]; in InstructionLengthDecode()
352 ret.primary_opcode = inst_bytes[op_idx]; in InstructionLengthDecode()
353 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
358 ret.primary_opcode = inst_bytes[++op_idx]; // get the next byte in InstructionLengthDecode()
362 ret.primary_opcode = inst_bytes[++op_idx]; // get the next byte in InstructionLengthDecode()
363 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
366 ret.primary_opcode = inst_bytes[++op_idx]; in InstructionLengthDecode()
367 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
370 ret.primary_opcode = inst_bytes[++op_idx]; in InstructionLengthDecode()
371 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
375 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()
378 ret.modrm = inst_bytes[op_idx + 1]; in InstructionLengthDecode()