cmd_endloop Function (ROM Call 0x347)

AMS 1.01 or higher bascmd.h

void cmd_endloop (void);

Executes TI-Basic 'EndLoop' command.

This is an internal subroutine used by the TI-Basic interpreter for terminating the 'Loop'...'EndLoop' loop (searches for a matching 'Loop' 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 Loop...EndLoop loops in TI-Basic.


Uses: ROM Call 0x5C8


See also: cmd_while