Appendix A: System Routines — Logic
747
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
replace_top2_with_or
Declaration:
void
replace_top2_with_or
(EStackIndex
i
)
Category(ies):
Logic
Description:
Replaces the top two expressions with their internally-simplified logical “or.”
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: or_onto_top, push_or
Example:
/* Replaces the top two expressions with a variable x. */
push_quantum (FALSE_TAG);
i = top_estack;
push_quantum (8u);
replace_top2_with_or (i);