Lines Matching +full:- +full:- +full:platforms
38 if (ins->detail == NULL) in print_insn_detail()
41 mips = &(ins->detail->mips); in print_insn_detail()
42 if (mips->op_count) in print_insn_detail()
43 printf("\top_count: %u\n", mips->op_count); in print_insn_detail()
45 for (i = 0; i < mips->op_count; i++) { in print_insn_detail()
46 cs_mips_op *op = &(mips->operands[i]); in print_insn_detail()
47 switch((int)op->type) { in print_insn_detail()
51 printf("\t\toperands[%u].type: REG = %s\n", i, cs_reg_name(handle, op->reg)); in print_insn_detail()
54 printf("\t\toperands[%u].type: IMM = 0x%" PRIx64 "\n", i, op->imm); in print_insn_detail()
58 if (op->mem.base != MIPS_REG_INVALID) in print_insn_detail()
60 i, cs_reg_name(handle, op->mem.base)); in print_insn_detail()
61 if (op->mem.disp != 0) in print_insn_detail()
62 printf("\t\t\toperands[%u].mem.disp: 0x%" PRIx64 "\n", i, op->mem.disp); in print_insn_detail()
87 struct platform platforms[] = { in test() local
92 sizeof(MIPS_CODE) - 1, in test()
93 "MIPS-32 (Big-endian)" in test()
99 sizeof(MIPS_CODE2) - 1, in test()
100 "MIPS-64-EL (Little-endian)" in test()
106 sizeof(MIPS_32R6M) - 1, in test()
107 "MIPS-32R6 | Micro (Big-endian)" in test()
113 sizeof(MIPS_32R6) - 1, in test()
114 "MIPS-32R6 (Big-endian)" in test()
120 sizeof(MIPS_64SD) - 1, in test()
121 "MIPS-64-EL + Mips II (Little-endian)" in test()
127 sizeof(MIPS_64SD) - 1, in test()
128 "MIPS-64-EL (Little-endian)" in test()
137 for (i = 0; i < sizeof(platforms)/sizeof(platforms[0]); i++) { in test()
138 cs_err err = cs_open(platforms[i].arch, platforms[i].mode, &handle); in test()
146 count = cs_disasm(handle, platforms[i].code, platforms[i].size, address, 0, &insn); in test()
151 printf("Platform: %s\n", platforms[i].comment); in test()
152 print_string_hex("Code:", platforms[i].code, platforms[i].size); in test()
159 printf("0x%" PRIx64 ":\n", insn[j-1].address + insn[j-1].size); in test()
165 printf("Platform: %s\n", platforms[i].comment); in test()
166 print_string_hex("Code:", platforms[i].code, platforms[i].size); in test()