|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
/* Tang Yuhang <1648200150@qq.com> 2016 */ |
|
|
|
|
/* Tang Yuhang <tyh000011112222@gmail.com> 2016 */ |
|
|
|
|
#include <stdio.h> |
|
|
|
|
#include <inttypes.h> |
|
|
|
|
#include <string.h> |
|
|
|
@ -7,7 +7,7 @@ |
|
|
|
|
|
|
|
|
|
#include <capstone/capstone.h> |
|
|
|
|
|
|
|
|
|
#define VERSION "1.0" |
|
|
|
|
#define VERSION "2.0" |
|
|
|
|
|
|
|
|
|
void print_insn_detail_x86(csh ud, cs_mode mode, cs_insn *ins); |
|
|
|
|
void print_insn_detail_arm(csh handle, cs_insn *ins); |
|
|
|
@ -228,7 +228,7 @@ int main(int argc, char **argv) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!strcmp(mode, "x16")) { |
|
|
|
|
md = CS_MODE_64; |
|
|
|
|
md = CS_MODE_16; |
|
|
|
|
arch = "x86"; |
|
|
|
|
err = cs_open(CS_ARCH_X86, CS_MODE_16, &handle); |
|
|
|
|
} |
|
|
|
|