940
Appendix A: System Routines — Program I/O Screen
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
cmd_disp
Declaration:
void
cmd_disp
(EStackIndex
e
)
Category(ies):
Program I/O Screen
Description:
Display estack expressions in the program I/O window. Each expression on
the estack is displayed in turn until an END_TAG is encountered. The
pretty print mode setting determines how the expressions are formatted for
display.
This routine implements the TI
-
BASIC Disp command.
Inputs:
e
— estack index of first expression to display.
Outputs:
None
Assumptions:
None
Side Effects:
May cause heap compression.
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
Not applicable.
Example:
/* This example displays 3.14 and 7 on the program I/O screen */
Access_AMS_Global_Variables;
EStackIndex savetop = top_estack; /* save index to top of estack */
push_quantum(END_TAG); /* mark end of list */
push_long_to_integer(7); /* push 7 on estack */
push_Float(3.14); /* push 3.14 on estack */
cmd_disp(top_estack); /* display 3.14 and 7 */
top_estack = savetop; /* pop estack */