push_switch Function (ROM Call 0x327)

AMS 1.01 or higher basfunc.h

void push_switch (CESI WinNum);

Executes TI-Basic 'switch' function.

push_switch expects that WinNum points to an integer expression. If this integer is 0, push_switch pushes the active window number (1 for left or top window, 2 for right or bottom window) to the expression stack. If this integer is 1 or 2, push_switch activates window 1 or 2 and pushes the previously active window number to the expressions stack. If WinNum points to END_TAG, push_switch switches windows and pushes the previously active window number to the expression stack. Of course, window switching is ignored if the calculator is not displaying a split screen.


Uses: push_approx, push_ulong_to_integer, top_estack, EV_switch, estack_to_float, EV_appSide, _bcd_math