Class: SCASM::ImmediateMemory
Instance Method Summary collapse
- #assemble ⇒ Object
-
#initialize(imm) ⇒ ImmediateMemory
constructor
A new instance of ImmediateMemory.
- #to_s ⇒ Object
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
#assemble ⇒ Object
124 125 126 |
# File 'lib/scasm/value.rb', line 124 def assemble return 0x1e, @imm end |
#to_s ⇒ Object
128 129 130 |
# File 'lib/scasm/value.rb', line 128 def to_s "imem(#@imm)" end |