746
Appendix A: System Routines — Logic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
replace_top2_with_and
Declaration:
void
replace_top2_with_and
(EStackIndex
i
)
Category(ies):
Logic
Description:
Replaces the top two expressions with their internally-simplified logical
“and.”
Inputs:
i
— Indexes the top tag of the internally-simplified Boolean expression
next_expression_index
(
top_estack
).
Outputs:
None
Assumptions:
The top two expressions are internally-simplified Boolean expressions.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: and_onto_top, push_and
Example:
/* Replaces the top two expressions with a variable x. */
push_quantum (TRUE_TAG);
i = top_estack;
push_quantum (8u);
replace_top2_with_and (i);