change all to_risc functions to add directly
still #11 test not working yet
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user