fix div10 return sequence

did not return at all before
This commit is contained in:
Torsten Ruger
2018-03-24 16:51:26 +02:00
parent 267237b776
commit 3ceb2c2f69
2 changed files with 31 additions and 25 deletions

View File

@ -16,7 +16,7 @@ module Risc
end
def div10 context
def div10( context )
s = "div_10"
compiler = compiler_for(:Integer,:div10 ,{})
me = compiler.add_known( :receiver )
@ -68,6 +68,7 @@ module Risc
# return q + tmp
compiler.add_code Risc.op( s , "+" , q , tmp )
compiler.add_reg_to_slot( s , q , :message , :return_value)
compiler.add_mom( Mom::ReturnSequence.new)
return compiler.method
end
end