adding sources to register instructions

This commit is contained in:
Torsten Ruger
2015-07-27 12:13:39 +03:00
parent f91c9fabe8
commit 36f635f7c1
16 changed files with 55 additions and 47 deletions

View File

@ -5,7 +5,8 @@ module Register
# second argument is the register the constant is loaded into
class LoadConstant < Instruction
def initialize constant , register
def initialize source , constant , register
super(source)
@register = register
@constant = constant
end