| cmd_return | Function (ROM Call 0x385)

AMS 1.01 or higher | bascmd.h

void cmd_return (CESI retval);

Executes TI-Basic 'Return' command.

cmd_return is an internal subroutine used by the TI-Basic interpreter for executing the Return statement (searches for a matching EndFunc or EndPrgm instruction, transfers the control there and eventually returns the expression pointed to by retval). As this function depends heavily on some system state variables of the TI-Basic intepreter which are not set correctly while executing an ASM program, it is extremely unlikely that this function may be used inside a C program for anything useful.
Note: See section How to make a program returning a value to learn about returning values to TI-Basic from a C program.

Uses: next_expression_index, push_internal_simplify, ROM Call 0x5C7, ROM Call 0x5C8

See also: cmd_exit, cmd_passerr