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.



76
77
78
# File 'lib/ytljit/instruction.rb', line 76

def initialize(address)
  @value = address
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



84
85
86
# File 'lib/ytljit/instruction.rb', line 84

def value
  @value
end

Instance Method Details

#addressObject



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

def address
  @value
end

#to_asObject



86
87
88
# File 'lib/ytljit/instruction.rb', line 86

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