Class: Crabstone::TRICORE::Operand

Inherits:
FFI::Struct
  • Object
show all
Includes:
Extension::Operand
Defined in:
lib/crabstone/arch/5/tricore.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/5/tricore.rb', line 40

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

#mem?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/crabstone/arch/5/tricore.rb', line 44

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

#reg?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/crabstone/arch/5/tricore.rb', line 36

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