Operand

sealed class Operand(source)

Base sealed class for instruction operands.

Different operand types are represented by subclasses.

Inheritors

Types

Link copied to clipboard
data class FloatingPointOperand(val value: Double, val access: AccessType = AccessType.READ) : Operand

Floating-point operand

Link copied to clipboard
data class ImmediateOperand(val value: Long, val access: AccessType = AccessType.READ) : Operand

Immediate (constant) operand

Link copied to clipboard
data class MemoryOperand(val base: Register? = null, val index: Register? = null, val scale: Int = 1, val displacement: Long = 0, val segment: Register? = null, val access: AccessType = AccessType.INVALID) : Operand

Memory operand

Link copied to clipboard
data class RegisterOperand(val register: Register, val access: AccessType = AccessType.INVALID) : Operand

Register operand

Properties

Link copied to clipboard
abstract val access: AccessType

Access type for this operand (read, write, or both)