| push_next_internal_var | Function (ROM Call 0x2ED)

AMS 1.01 or higher | estack.h

void push_next_internal_var (ESQ Tag);

Pushes an internal variable to the expression stack.

push_next_internal_var is an auxiliary function used in calculus operations. It pushes the sequence 0, Tag+1, count, 0 to the expression stack, where count is the internal counter of internal variables. Then, the counter is increased by one. TIOS usually passes 0 or 1 for Tag, so it manages a two independent sets of internal variables. You can see that internal variable names consist of two bytes (see VAR_NAME_TAG): one byte is "set number", and another byte is "number of a variable in the set".

Uses: push_quantum_pair, ROM Call 0x5C4
Used by: did_push_anti_deriv, push_1st_derivative, push_csolve, push_czeros, push_def_int, push_desolve, push_factor, push_lim, push_max, push_min, push_nint, push_nsolve, push_solve, push_zeros, push_equals, push_greater_than, push_greater_than_or_equals, push_less_than, push_less_than_or_equals, push_not_equals, get_ub