Texas Instruments TI89 Developer Guide - Page 865
push_rotate, Example, NONNEGATIVE_INTEGER_TAG, top_estack, LIST_TAG, STR_DATA_TAG, FLOAT_TAG
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 865 highlights
Appendix A: System Routines - Math 823 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
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/865.png)