Solved it! I was just missing these four lines in the call macro, just above the Push RETVAL section:
A = TEMP_ADDR
D = *A
A = SP
*A = D
Solved it! I was just missing these four lines in the call macro, just above the Push RETVAL section:
A = TEMP_ADDR
D = *A
A = SP
*A = D