Class: Crabstone::X86::Operand

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

Instance Method Summary collapse

Methods included from Extension::Operand

#valid?, #value

Instance Method Details

#fp?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/crabstone/arch/3/x86.rb', line 54

def fp?
  self[:type] == OP_FP
end

#imm?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/crabstone/arch/3/x86.rb', line 46

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

#mem?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/crabstone/arch/3/x86.rb', line 50

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

#reg?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/crabstone/arch/3/x86.rb', line 42

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