change all to_risc functions to add directly

still #11
test not working yet
This commit is contained in:
Torsten Ruger
2018-08-19 13:18:25 +03:00
parent 57dc6c45bb
commit 253d2fead8
8 changed files with 16 additions and 21 deletions

View File

@@ -12,7 +12,8 @@ module Mom
@label = label
end
def to_risc(compiler)
Risc::Branch.new(self , @label.to_risc(compiler))
label = @label.to_risc(compiler)
compiler.add_code Risc::Branch.new(self , label)
end
end