compile from mom compiler to risc

This commit is contained in:
2019-08-10 12:42:47 +03:00
parent 5994cd3276
commit d5f89a4979
8 changed files with 51 additions and 45 deletions

View File

@ -33,9 +33,9 @@ module Mom
end
# generate the risc label lazily
def risc_label(comiler)
def risc_label(compiler)
@risc_label ||= Risc.label(self,name)
comiler.add_constant(@risc_label.address)
compiler.add_constant(@risc_label.address)
@risc_label
end