wip, fixed some label, need more fixing

This commit is contained in:
Torsten Ruger
2018-05-30 10:29:38 +03:00
parent c55b41afae
commit 074ec34659
8 changed files with 34 additions and 11 deletions

View File

@ -32,6 +32,7 @@ module Mom
# adding the label to the instruction list (usually an if/while)
def to_risc(compiler)
int = Parfait.object_space.get_integer
puts "ADDING int #{int}"
compiler.add_constant(int)
@risc_label ||= Risc.label(self,name , int , nil)
end