got it down to string equality/identity

This commit is contained in:
Torsten Ruger
2015-05-31 17:54:36 +03:00
parent 1509e7ba2f
commit 5d870ef154
6 changed files with 19 additions and 9 deletions

View File

@ -1,14 +1,14 @@
module Register
# load a constant into a register
#
# first arguemnt is the register the constant is loaded into
# first arguemnt is the register the constant is loaded into
# second is the actual constant
class LoadConstant < Instruction
def initialize value , constant
@value = value
@constant = constant
end
attr_accessor :value , :constant
attr_accessor :value , :constant
end
end