eco32: call exit with return code from main

When main returns, the return code (in register $2) is
placed in the first function parameter register ($4)
and exit is called.