mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 21:49:46 +00:00
cstool: print instruction ID & name
This commit is contained in:
parent
071a970e8f
commit
3bb1479056
@ -265,6 +265,8 @@ static void usage(char *prog)
|
||||
|
||||
static void print_details(csh handle, cs_arch arch, cs_mode md, cs_insn *ins)
|
||||
{
|
||||
printf("\tID: %u (%s)\n", ins->id, cs_insn_name(handle, ins->id));
|
||||
|
||||
switch(arch) {
|
||||
case CS_ARCH_X86:
|
||||
print_insn_detail_x86(handle, md, ins);
|
||||
|
Loading…
Reference in New Issue
Block a user