Class: Crabstone::XCore::Operand

Inherits:
FFI::Struct
  • Object
show all
Includes:
Extension::Operand
Defined in:
lib/crabstone/arch/3/xcore.rb,
lib/crabstone/arch/4/xcore.rb,
lib/crabstone/arch/5/xcore.rb

Instance Method Summary collapse

Methods included from Extension::Operand

#valid?, #value

Instance Method Details

#imm?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/crabstone/arch/3/xcore.rb', line 41

def imm?
  self[:type] == OP_IMM
end

#mem?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/crabstone/arch/3/xcore.rb', line 45

def mem?
  self[:type] == OP_MEM
end

#reg?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/crabstone/arch/3/xcore.rb', line 37

def reg?
  self[:type] == OP_REG
end