TMS9900: Fix function calling by having r12 point to local variables
and r10 point to free memory.