Class: Crabstone::Sparc::Operand

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

Instance Method Summary collapse

Methods included from Extension::Operand

#valid?, #value

Instance Method Details

#imm?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/crabstone/arch/3/sparc.rb', line 40

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

#mem?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/crabstone/arch/3/sparc.rb', line 44

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

#reg?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/crabstone/arch/3/sparc.rb', line 36

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