Capstone Documentation Beta

Class Platform​Instruction

public class PlatformInstruction<InsType: InstructionType, GroupType: RawRepresentable, RegType: RawRepresentable>: PlatformInstructionBase<InsType, GroupType> where GroupType.RawValue == UInt8, RegType.RawValue == UInt16

Base class for platform-specific instructions with registers.

Parameters

Ins​Type

type of enumeration used to represent instructions in this architecture.

Group​Type

type of enumeration used to represent instruction groups in this architecture.

Reg​Type

type of enumeration used to represent registers in this architecture.

%3 PlatformInstruction PlatformInstruction PlatformInstructionBase<InsType, GroupType> PlatformInstructionBase<InsType, GroupType> PlatformInstruction->PlatformInstructionBase<InsType, GroupType>

Conforms To

PlatformInstructionBase<InsType, GroupType>

Properties

register​Type

var registerType: Any.Type?

The type for instructions used in this architecture.

This is an enumeration with values corresponding to instruction mnemonics. The same as the RegType generic parameter.

registers​Accessed

var registersAccessed: (read: [RegType], written: [RegType])

Registers implicitly and explicitly accessed by this instruction.

This API is only valid when detail mode is on (it's off by default). When in 'diet' mode, this API is irrelevant because engine does not store registers.

registers​Accessed​Implicitly

var registersAccessedImplicitly: (read: [RegType], written: [RegType])

Registers implicitly accessed by this instruction.

This API is only valid when detail mode is on (it's off by default). When in 'diet' mode, this API is irrelevant because engine does not store registers.