capstone/tests
Inokentiy Babushkin 10827a6f32 Reduced confusion caused by the m68k test being out of date
* added a new case branch to account for floating point operands.
2016-05-13 09:08:36 +02:00
..
Makefile This adds M68K support to Capstone 2015-10-02 20:47:00 +02:00
README Added test build target, fixed CMake warning 2015-05-31 09:01:38 +02:00
test_arm64.c arm64: indentation 2016-01-22 22:37:59 +08:00
test_arm.c Fixed trivial (all) compiler warnings 2016-05-08 23:25:58 +02:00
test_basic.c m68k: add M68K code to test_basic.c & test_detail.c 2015-10-04 15:05:26 +08:00
test_customized_mnem.c Make tests fail loudly 2015-05-31 09:01:38 +02:00
test_detail.c [tests] avoid overlap i variable namespace 2015-10-06 15:00:45 +11:00
test_iter.c tests: properly define HAS_XXX marcros so some tests work 2015-08-09 09:47:53 -07:00
test_m68k.c Reduced confusion caused by the m68k test being out of date 2016-05-13 09:08:36 +02:00
test_mips.c Fixed trivial (all) compiler warnings 2016-05-08 23:25:58 +02:00
test_ppc.c Fixed trivial (all) compiler warnings 2016-05-08 23:25:58 +02:00
test_skipdata.c tests: properly define HAS_XXX marcros so some tests work 2015-08-09 09:47:53 -07:00
test_sparc.c Make tests fail loudly 2015-05-31 09:01:38 +02:00
test_systemz.c Make tests fail loudly 2015-05-31 09:01:38 +02:00
test_x86.c Remove never used cs_x86_op::fp 2016-04-23 14:45:24 +03:00
test_xcore.c Make tests fail loudly 2015-05-31 09:01:38 +02:00

This directory contains some test code to show how to use Capstone API.

- test_basic.c
  This code shows the most simple form of API where we only want to get basic
  information out of disassembled instruction, such as address, mnemonic and
  operand string.

- test_detail.c:
  This code shows how to access to architecture-neutral information in disassembled
  instructions, such as implicit registers read/written, or groups of instructions
  that this instruction belong to.

- test_skipdata.c:
  This code shows how to use SKIPDATA option to skip broken instructions (most likely
  some data mixed with instructions) and continue to decode at the next legitimate
  instructions.

- test_iter.c:
  This code shows how to use the API cs_disasm_iter() to decode one instruction at
  a time inside a loop.

- test_customized_mnem.c:
  This code shows how to use MNEMONIC option to customize instruction mnemonic
  at run-time, and then how to reset the engine to use the default mnemonic.

- test_<arch>.c
  These code show how to access architecture-specific information for each
  architecture.