cmd_endwhile Function (ROM Call 0x349)

AMS 1.01 or higher bascmd.h

void cmd_endwhile (void);

Executes TI-Basic 'EndWhile' command.

cmd_endwhile is an internal subroutine used by TI-Basic interpreter for terminating the 'While'...'EndWhile' loop (searches for a matching 'While' instruction and transfers the control there). 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 the while keyword to learn how to use loops in the C language which are similar to While...EndWhile loops in TI-Basic.


Uses: next_expression_index, push_internal_simplify, top_estack, NG_control, ROM Call 0x5C8


See also: cmd_while