Class: SCASM::ImmediateMemory

Inherits:
Value
  • Object
show all
Defined in:
lib/scasm/value.rb

Instance Method Summary collapse

Constructor Details

#initialize(imm) ⇒ ImmediateMemory

Returns a new instance of ImmediateMemory.



120
121
122
# File 'lib/scasm/value.rb', line 120

def initialize imm
  @imm = imm
end

Instance Method Details

#assembleObject



124
125
126
# File 'lib/scasm/value.rb', line 124

def assemble
  return 0x1e, @imm
end

#to_sObject



128
129
130
# File 'lib/scasm/value.rb', line 128

def to_s
  "imem(#@imm)"
end