Ti-Basic Extensions - Texas Instruments TI-89 Developer's Manual

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

Advertisement

48
range = high - low + 1;
return low + seed % range;
}
C header file pipes.h:
#ifndef _PIPES_H
#define _PIPES_H
#define P_Tools
#define P_Clear
#endif
Resource file pipesr.r:
#include "tiams.h"
#include "pipes.h"
TOOLBOX pipesMenu, RC_NO_IDS, 0, 160 {
P_Tools {
P_Clear,
}
}
Pipesr.h is generated by the resource compiler.
The numbering of menu commands and application strings needs some explanation. The
menu system requires all string numbers that it references to be in the range 0x000 – 0xFFF.
However, system string attributes begin at 0x800 and application string attributes begin at
0x1000. Consequently, when an app menu refers to string number 0x801, it fetches app
attribute 0x1001. The example code shows how to use macros OO_FIRST_APP_STRING in
the header file and OO_FIRST_STRING in the object frame to define menu string numbers
and their corresponding text in the app frame.
7.3.2.

TI-BASIC Extensions

Applications can extend TI-BASIC with functions and programs written in C or
assembly language. The TI-BASIC interpreter interfaces with apps through the
OO_APP_EXT_COUNT
This example illustrates a simple application which implements a couple of
TI-BASIC extensions. The app has no user interface, hence, no event handler
entry point.
#include "tiams.h"
/* String numbers */
#define H_folders
#define H_vars
#define H_HELP
TI-89 / TI-92 Plus Developer Guide
Chapter 7: Flash Application Layout
OO_FIRST_APP_STRING
OO_FIRST_APP_STRING+1
CM_CLEAR_ALL
,
, and
OO_APP_EXTENSIONS
0
1
100
Not for Distribution
attributes.
OO_APP_EXT_ENTRIES
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