Class: SCASM::Register
Instance Method Summary collapse
- #assemble ⇒ Object
-
#initialize(regsym) ⇒ Register
constructor
A new instance of Register.
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#assemble ⇒ Object
19 20 21 |
# File 'lib/scasm/value.rb', line 19 def assemble return REGISTERS[@regsym] end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/scasm/value.rb', line 23 def to_s "reg(#@regsym)" end |