cmd_endfor Function (ROM Call 0x346)

AMS 1.01 or higher bascmd.h

void cmd_endfor (void);

Executes TI-Basic 'EndFor' command.

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


Uses: push_difference, push_sum, is_narrowly_independent_of, next_expression_index, push_internal_simplify, top_estack, assign_between, divide_top, Integer1Index, is_negative, is0, primary_tag_list, ROM Call 0x480, ROM Call 0x5C8


See also: cmd_for