• Home
Name Date Size #Lines LOC

..--

MakefileD03-May-20243.7 KiB174142

READMED03-May-20241.2 KiB3224

test_arm.cD03-May-202410.7 KiB355241

test_arm64.cD03-May-20248.9 KiB286187

test_basic.cD03-May-20249.4 KiB389357

test_customized_mnem.cD03-May-20242.1 KiB8753

test_detail.cD03-May-202410.1 KiB380333

test_evm.cD03-May-20242.5 KiB12794

test_iter.cD03-May-20248.4 KiB322274

test_m680x.cD03-May-20249.3 KiB400321

test_m68k.cD03-May-20245.7 KiB213167

test_mips.cD03-May-20244.5 KiB183144

test_mos65xx.cD03-May-20244 KiB170136

test_ppc.cD03-May-20244.2 KiB187152

test_skipdata.cD03-May-20244.4 KiB185152

test_sparc.cD03-May-20243.6 KiB153119

test_systemz.cD03-May-20243.5 KiB146114

test_tms320c64x.cD03-May-20245.3 KiB194160

test_winkernel.cppD03-May-20244.6 KiB173116

test_x86.cD03-May-202412.9 KiB488397

test_xcore.cD03-May-20243.2 KiB141109

README

1This directory contains some test code to show how to use Capstone API.
2
3- test_basic.c
4  This code shows the most simple form of API where we only want to get basic
5  information out of disassembled instruction, such as address, mnemonic and
6  operand string.
7
8- test_detail.c:
9  This code shows how to access to architecture-neutral information in disassembled
10  instructions, such as implicit registers read/written, or groups of instructions
11  that this instruction belong to.
12
13- test_skipdata.c:
14  This code shows how to use SKIPDATA option to skip broken instructions (most likely
15  some data mixed with instructions) and continue to decode at the next legitimate
16  instructions.
17
18- test_iter.c:
19  This code shows how to use the API cs_disasm_iter() to decode one instruction at
20  a time inside a loop.
21
22- test_customized_mnem.c:
23  This code shows how to use MNEMONIC option to customize instruction mnemonic
24  at run-time, and then how to reset the engine to use the default mnemonic.
25
26- test_<arch>.c
27  These code show how to access architecture-specific information for each
28  architecture.
29
30- test_winkernel.cpp
31  This code shows how to use Capstone from a Windows driver.
32