• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..07-May-2022-

MakefileH A D08-Dec-20204 KiB187155

READMEH A D08-Dec-20201.2 KiB3224

test_arm.cH A D08-Dec-20207.6 KiB294241

test_arm64.cH A D08-Dec-20205.8 KiB229185

test_basic.cH A D08-Dec-202010.7 KiB424399

test_bpf.cH A D08-Dec-20204.5 KiB188158

test_customized_mnem.cH A D08-Dec-20202.1 KiB8753

test_detail.cH A D08-Dec-20209.8 KiB375343

test_evm.cH A D08-Dec-20202.5 KiB12794

test_iter.cH A D08-Dec-20209.1 KiB338304

test_m680x.cH A D08-Dec-20209.2 KiB397320

test_m68k.cH A D08-Dec-20205.8 KiB218173

test_mips.cH A D08-Dec-20204.1 KiB176144

test_mos65xx.cH A D08-Dec-20205.7 KiB231194

test_ppc.cH A D08-Dec-20204.2 KiB187152

test_riscv.cH A D08-Dec-20204.1 KiB155123

test_skipdata.cH A D08-Dec-20204.4 KiB185152

test_sparc.cH A D08-Dec-20203.6 KiB153119

test_systemz.cH A D08-Dec-20203.5 KiB146114

test_tms320c64x.cH A D08-Dec-20205.3 KiB194160

test_wasm.cH A D08-Dec-20203.5 KiB150119

test_winkernel.cppH A D08-Dec-20204.6 KiB173116

test_x86.cH A D08-Dec-202011.8 KiB465397

test_xcore.cH A D08-Dec-20203.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