add the addresses from labels as constants

This commit is contained in:
Torsten Ruger
2018-08-29 21:06:29 +03:00
parent ea7f3c9653
commit dc12c1d70b
6 changed files with 15 additions and 12 deletions

View File

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