MCPcopy Create free account
hub / github.com/capstone-engine/capstone / cs_reg_name

Function cs_reg_name

cs.c:1213–1223  ·  view source on GitHub ↗

return friendly name of register in a string

Source from the content-addressed store, hash-verified

1211
1212// return friendly name of register in a string
1213CAPSTONE_EXPORT
1214const char * CAPSTONE_API cs_reg_name(csh ud, unsigned int reg)
1215{
1216 struct cs_struct *handle = (struct cs_struct *)(uintptr_t)ud;
1217
1218 if (!handle || handle->reg_name == NULL) {
1219 return NULL;
1220 }
1221
1222 return handle->reg_name(ud, reg);
1223}
1224
1225CAPSTONE_EXPORT
1226const char * CAPSTONE_API cs_insn_name(csh ud, unsigned int insn)

Callers 15

TMS320C64x_post_printerFunction · 0.85
get_detail_armFunction · 0.85
print_read_write_regsFunction · 0.85
get_detail_m68kFunction · 0.85
get_detail_mipsFunction · 0.85
print_read_write_regsFunction · 0.85
get_detail_m680xFunction · 0.85
get_detail_riscvFunction · 0.85
get_detail_bpfFunction · 0.85
get_detail_sparcFunction · 0.85
get_detail_syszFunction · 0.85
get_detail_mos65xxFunction · 0.85

Calls 1

reg_nameMethod · 0.45

Tested by 15

snprint_insn_detailFunction · 0.68
print_insn_detailFunction · 0.68
print_insn_detailFunction · 0.68
print_insn_detailFunction · 0.68
print_read_write_regsFunction · 0.68
print_insn_detailFunction · 0.68
print_read_write_regsFunction · 0.68
print_insn_detailFunction · 0.68
print_insn_detailFunction · 0.68
print_insn_detailFunction · 0.68
print_insn_detailFunction · 0.68
print_insn_detailFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…