fixed the SetImplementation with new register instructions
This commit is contained in:
14
lib/register/instructions/load_constant.rb
Normal file
14
lib/register/instructions/load_constant.rb
Normal 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
|
Reference in New Issue
Block a user