slight call logic modification

simplification, new model is such that the upon start the method:
has a message in r0, works on it and returns to the return address.

Everything else is up to the caller
This commit is contained in:
Torsten Ruger
2015-11-07 21:59:39 +02:00
parent f2c7ed827d
commit 5ddc96718b
2 changed files with 5 additions and 5 deletions

View File

@ -26,5 +26,9 @@ module Register
# do the register call
compiler.add_code FunctionCall.new( source , callee )
compiler.add_code return_label
# move the current message to new_message
compiler.add_code Register::RegisterTransfer.new(source, Register.message_reg , Register.new_message_reg )
# and restore the message from saved value in new_message
compiler.add_code Register.get_slot(source , :new_message , :caller , :message )
end
end