CapstoneOption

sealed class CapstoneOption(source)

Sealed class representing Capstone runtime options.

Use these with CapstoneEngine.setOption to configure the disassembler.

Example:

engine.setOption(CapstoneOption.Detail(true))
engine.setOption(CapstoneOption.Syntax(Syntax.INTEL))

Inheritors

Types

Link copied to clipboard
data class ChangeMode(val newMode: BitField<Mode>) : CapstoneOption

Change disassembly mode at runtime.

Link copied to clipboard
data class Detail(val enabled: Boolean) : CapstoneOption

Enable or disable detailed instruction information.

Link copied to clipboard
data class LitBase(val value: Long) : CapstoneOption

Set LITBASE register value for Xtensa architecture.

Link copied to clipboard
data class OnlyOffsetBranch(val enabled: Boolean) : CapstoneOption

For branch instructions, only print the offset without adding to PC.

Link copied to clipboard
data class SkipData(val enabled: Boolean) : CapstoneOption

Enable or disable SKIPDATA mode.

Link copied to clipboard
data class Syntax(val style: Syntax) : CapstoneOption

Set assembly syntax style (Intel, AT&T, MASM, etc.)

Link copied to clipboard
data class Unsigned(val enabled: Boolean) : CapstoneOption

Print immediate operands in unsigned form.