EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1082 background imageLoading...
Page #1082 background image
1040
Appendix A: System Routines — Symbol Table Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
SymFindMain
(continued)
Example:
This example walks through all of the Yn functions and displays them as
text in a dialog box.
int i, Skip;
BYTE buf[6];
HANDLE hVal, hText;
HSYM hsym;
SYM_ENTRY *SymPtr;
EStackIndex esi;
for (i=1; i<=99; i++) {
Skip = sprintf( (char *) buf, "%cy%d", 0, i );
if (hsym = SymFindMain( (BYTE *) (buf + Skip) )) {
SymPtr = DerefSym( hsym );
if (hVal = SymPtr->hVal) {
esi = HToESI( hVal );
/* Normally would check the tag *esi but Yn are always functions and are
always tokenized so do not need to check the FF_PARSE flag *(esi-1)
either. */
HeapLock( hVal );
TRY
hText = display_statements( GetFuncPrgmBodyPtr( esi ), FALSE, TRUE );
FINALLY
HeapUnlock( hVal ); /* This always gets executed even if an error is
thrown. Any errors will be passed on up to our
caller. */
ENDFINAL
HeapLock( hText );
DlgNotice( (char *) buf+1, (char *) (HeapDeref(hText)) );
HeapFree( hText );
}
}
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals