738
Appendix A: System Routines — Logic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
or_onto_top
Declaration:
void
or_onto_top
(EStackIndex
i
)
Category(ies):
Logic
Description:
Replaces the top expression on the estack with the internally-simplified
logical “or” of it with the expression indexed by
i
.
Inputs:
i
— Indexes the top tag of an internally-simplified Boolean expression.
Outputs:
None
Assumptions:
i
and
top_estack
index internally-simplified Boolean expressions.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_or, replace_top2_with_or
Example:
push_quantum (8u);
foo = top_estack; /* foo -> variable x */
push_quantum (8u);
push_quantum (NOT_TAG); /* top_estack -> NOT x */
or_onto_top (foo); /* Replaces top NOT x with TRUE_TAG. */