fixed the SetImplementation with new register instructions

This commit is contained in:
Torsten Ruger
2014-10-03 11:07:18 +03:00
parent 38a286942e
commit 1af66567fb
5 changed files with 53 additions and 6 deletions

View File

@ -0,0 +1,14 @@
module Register
# load a constant into a register
#
# 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
end
end