Lines Matching full:platforms
166 struct platform platforms[] = { in test() local
204 for (i = 0; i < sizeof(platforms)/sizeof(platforms[0]); i++) { in test()
205 cs_err err = cs_open(platforms[i].arch, platforms[i].mode, &handle); in test()
211 if (platforms[i].opt_type) in test()
212 cs_option(handle, platforms[i].opt_type, platforms[i].opt_value); in test()
216 count = cs_disasm(handle, platforms[i].code, platforms[i].size, address, 0, &insn); in test()
221 printf("Platform: %s\n", platforms[i].comment); in test()
222 print_string_hex("Code:", platforms[i].code, platforms[i].size); in test()
227 print_insn_detail(handle, platforms[i].mode, &insn[j]); in test()
235 printf("Platform: %s\n", platforms[i].comment); in test()
236 print_string_hex("Code:", platforms[i].code, platforms[i].size); in test()