Cmd_Disp - Texas Instruments TI-89 Developer's Manual

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

Advertisement

940

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
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;
push_quantum(END_TAG);
push_long_to_integer(7);
push_Float(3.14);
cmd_disp(top_estack);
top_estack = savetop;
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Program I/O Screen
— estack index of first expression to display.
Not for Distribution
/* save index to top of estack */
/* mark end of list */
/* push 7 on estack */
/* push 3.14 on estack */
/* display 3.14 and 7 */
/* pop estack */
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