Class: Crabstone::MOS65XX::Operand

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

Instance Method Summary collapse

Methods included from Extension::Operand

#valid?, #value

Instance Method Details

#imm?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/crabstone/arch/5/mos65xx.rb', line 32

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

#mem?Boolean

Returns:

  • (Boolean)


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

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

#reg?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/crabstone/arch/5/mos65xx.rb', line 28

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