MCPcopy Index your code
hub / github.com/capstone-engine/capstone / main

Method main

bindings/java/TestBasic.java:47–177  ·  view source on GitHub ↗
(String argv[])

Source from the content-addressed store, hash-verified

45 public static final byte[] XCORE_CODE = new byte[] { (byte)0xfe, (byte)0x0f, (byte)0xfe, (byte)0x17, (byte)0x13, (byte)0x17, (byte)0xc6, (byte)0xfe, (byte)0xec, (byte)0x17, (byte)0x97, (byte)0xf8, (byte)0xec, (byte)0x4f, (byte)0x1f, (byte)0xfd, (byte)0xec, (byte)0x37, (byte)0x07, (byte)0xf2, (byte)0x45, (byte)0x5b, (byte)0xf9, (byte)0xfa, (byte)0x02, (byte)0x06, (byte)0x1b, (byte)0x10 };
46
47 static public void main(String argv[]) {
48 platform[] platforms = {
49 new platform(
50 Capstone.CS_ARCH_X86,
51 Capstone.CS_MODE_16,
52 Capstone.CS_OPT_SYNTAX_INTEL,
53 new byte[] { (byte)0x8d, (byte)0x4c, (byte)0x32, (byte)0x08, (byte)0x01, (byte)0xd8, (byte)0x81, (byte)0xc6, (byte)0x34, (byte)0x12, (byte)0x00, (byte)0x00 },
54 "X86 16bit (Intel syntax)"
55 ),
56 new platform(
57 Capstone.CS_ARCH_X86,
58 Capstone.CS_MODE_32,
59 Capstone.CS_OPT_SYNTAX_ATT,
60 X86_CODE,
61 "X86 32bit (ATT syntax)"
62 ),
63 new platform(
64 Capstone.CS_ARCH_X86,
65 Capstone.CS_MODE_32,
66 X86_CODE,
67 "X86 32 (Intel syntax)"
68 ),
69 new platform(
70 Capstone.CS_ARCH_X86,
71 Capstone.CS_MODE_64,
72 new byte[] {(byte)0x55, (byte)0x48, (byte)0x8b, (byte)0x05, (byte)0xb8, (byte)0x13, (byte)0x00, (byte)0x00 },
73 "X86 64 (Intel syntax)"
74 ),
75 new platform(
76 Capstone.CS_ARCH_ARM,
77 Capstone.CS_MODE_ARM,
78 new byte[] { (byte)0xED, (byte)0xFF, (byte)0xFF, (byte)0xEB, (byte)0x04, (byte)0xe0, (byte)0x2d, (byte)0xe5, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xe0, (byte)0x83, (byte)0x22, (byte)0xe5, (byte)0xf1, (byte)0x02, (byte)0x03, (byte)0x0e, (byte)0x00, (byte)0x00, (byte)0xa0, (byte)0xe3, (byte)0x02, (byte)0x30, (byte)0xc1, (byte)0xe7, (byte)0x00, (byte)0x00, (byte)0x53, (byte)0xe3 },
79 "ARM"
80 ),
81 new platform(
82 Capstone.CS_ARCH_ARM,
83 Capstone.CS_MODE_THUMB,
84 new byte[] {(byte)0x4f, (byte)0xf0, (byte)0x00, (byte)0x01, (byte)0xbd, (byte)0xe8, (byte)0x00, (byte)0x88, (byte)0xd1, (byte)0xe8, (byte)0x00, (byte)0xf0 },
85 "THUMB-2"
86 ),
87 new platform(
88 Capstone.CS_ARCH_ARM,
89 Capstone.CS_MODE_ARM,
90 new byte[] {(byte)0x10, (byte)0xf1, (byte)0x10, (byte)0xe7, (byte)0x11, (byte)0xf2, (byte)0x31, (byte)0xe7, (byte)0xdc, (byte)0xa1, (byte)0x2e, (byte)0xf3, (byte)0xe8, (byte)0x4e, (byte)0x62, (byte)0xf3 },
91 "ARM: Cortex-A15 + NEON"
92 ),
93 new platform(
94 Capstone.CS_ARCH_ARM,
95 Capstone.CS_MODE_THUMB,
96 new byte[] {(byte)0x70, (byte)0x47, (byte)0xeb, (byte)0x46, (byte)0x83, (byte)0xb0, (byte)0xc9, (byte)0x68 },
97 "THUMB"
98 ),
99 new platform(
100 Capstone.CS_ARCH_MIPS,
101 Capstone.CS_MODE_MIPS32 + Capstone.CS_MODE_BIG_ENDIAN,
102 new byte[] {(byte)0x0C, (byte)0x10, (byte)0x00, (byte)0x97, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x24, (byte)0x02, (byte)0x00, (byte)0x0c, (byte)0x8f, (byte)0xa2, (byte)0x00, (byte)0x00, (byte)0x34, (byte)0x21, (byte)0x34, (byte)0x56 },
103 "MIPS-32 (Big-endian)"
104 ),

Callers

nothing calls this directly

Calls 4

stringToHexMethod · 0.95
setSyntaxMethod · 0.95
disasmMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected