802
Appendix A: System Routines — Math
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_mid
(continued)
Example:
If m indexes the bolded tag in the list {a, 0, b, -1} as follows
END_TAG 1 1 NEGATIVE_INTEGER_TAG B_VAR_TAG 0 NONNEGATIVE_INTEGER_TAG
A_VAR_TAG
LIST_TAG
and n indexes the bolded tag in the integer 2 as follows
2 1
NONNEGATIVE_INTEGER_TAG
then
push_mid (m, n, n);
pushes the list {0, b} onto the estack such that
top_estack
points to the bolded tag as follows.
END_TAG B_VAR_TAG 0 NONNEGATIVE_INTEGER_TAG
LIST_TAG
If m indexes the bolded tag in the string “hello” as follows
0 h e l l o 0
STR_DATA_TAG
and n indexes the bolded tag in the tagged floating-point number 2. as follows
0x40 0x00 0x20 0x00 0x00 0x00 0x00 0x00 0x00
FLOAT_TAG
and p indexes the bolded tag in the integer 3 as follows
3 1
NONNEGATIVE_INTEGER_TAG
then
push_mid (m, n, p);
pushes the string “ell” onto the estack such that
top_estack
points to the bolded tag as follows.
0 e l l 0
STR_DATA_TAG