Class
PlatformInstruction
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
Name | Type | Description |
---|---|---|
InsType | type of enumeration used to represent instructions in this architecture. |
|
GroupType | type of enumeration used to represent instruction groups in this architecture. |
|
RegType | type of enumeration used to represent registers in this architecture. |
Relationships
Conforms To
PlatformInstructionBase<InsType, GroupType>
Properties
registerType
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.
registersAccessed
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.
registersAccessedImplicitly
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.