Texas Instruments TI-89 Developer's Manual page 865

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

823
Appendix A: System Routines — Math
push_rotate
(continued)
Example:
If m indexes the bolded tag in the integer 256 (0b100000000) as follows
0 1 2 NONNEGATIVE_INTEGER_TAG
and n indexes the bolded tag in the integer -1 as follows
1 1 NEGATIVE_INTEGER_TAG
then
push_rotate (m, n);
pushes 128 (0b10000000) onto the estack such that top_estack points to the bolded tag as
follows.
128 1 NONNEGATIVE_INTEGER_TAG
If m indexes the bolded tag in the list {a, b, c} as follows
END_TAG C_VAR_TAG B_VAR_TAG A_VAR_TAG LIST_TAG
and n indexes the bolded tag in the integer one as follows
1 1 NONNEGATIVE_INTEGER_TAG
then
push_rotate (m, n);
pushes the left rotated list {b, c, a} onto the estack such that top_estack points to the bolded
tag as follows.
END_TAG A_VAR_TAG C_VAR_TAG B_VAR_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 floating-point number -3. as follows
0xC0 0x00 0x30 0x00 0x00 0x00 0x00 0x00 0x00 FLOAT_TAG
then
push_rotate (m, n);
pushes the right rotated string "llohe" onto the estack such that top_estack points to the bolded
tag as follows.
0 l l o h e 0 STR_DATA_TAG
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents