(byte[] arr)
| 37 | } |
| 38 | |
| 39 | private static String array2hex(byte[] arr) { |
| 40 | String ret = ""; |
| 41 | for (int i=0 ;i<arr.length; i++) |
| 42 | ret += String.format("0x%02x ", arr[i]); |
| 43 | return ret; |
| 44 | } |
| 45 | |
| 46 | public static void print_ins_detail(Capstone.CsInsn ins) { |
| 47 | System.out.printf("0x%x:\t%s\t%s\n", ins.address, ins.mnemonic, ins.opStr); |