Class: YTLJit::OpMemory

Inherits:
Operand show all
Defined in:
lib/ytljit/instruction.rb

Direct Known Subclasses

OpMem16, OpMem32, OpMem64, OpMem8

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Operand

#using

Constructor Details

#initialize(address) ⇒ OpMemory

Returns a new instance of OpMemory.



70
71
72
# File 'lib/ytljit/instruction.rb', line 70

def initialize(address)
  @value = address
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



78
79
80
# File 'lib/ytljit/instruction.rb', line 78

def value
  @value
end

Instance Method Details

#addressObject



74
75
76
# File 'lib/ytljit/instruction.rb', line 74

def address
  @value
end

#to_asObject



80
81
82
# File 'lib/ytljit/instruction.rb', line 80

def to_as
  "#{value.to_s(16)}"
end