loading label must translate the labels too

(psst: like arm translator already did. duh)
This commit is contained in:
Torsten Ruger
2018-05-24 19:20:06 +03:00
parent dae8e88b7a
commit 183d4152d5
7 changed files with 37 additions and 31 deletions

View File

@ -5,7 +5,7 @@ module Risc
# second argument is the register the constant is loaded into
class LoadConstant < Instruction
def initialize source , constant , register
def initialize( source , constant , register)
super(source)
@register = register
@constant = constant
@ -33,6 +33,6 @@ module Risc
end
end
def self.load_constant( source , constant , register )
LoadConstant.new source , constant , register
LoadConstant.new( source , constant , register )
end
end