cmd_exit Function (ROM Call 0x34A)

AMS 1.01 or higher bascmd.h

void cmd_exit (void);

Executes TI-Basic 'Exit' command.

cmd_exit is an internal subroutine used by the TI-Basic interpreter for executing the Exit command (performs searching for a matching EndFor instruction, etc.). 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: If you want to achieve the similar effect in the C language like using the Exit command in TI-Basic, you should use the break keyword.


Uses: next_expression_index, index_after_match_endtag, ROM Call 0x5C8