In general, most compilers for most architectures picks a register to store the scalar return value of a subroutine. For TTP, let us choose register A as the register storing the return value.
Let us consider the following C subroutine:
Its equivalent TTP assembly code is as follows: