Source Layout; Interactive Applications; Figure 7.2: Application Ram And Flash Usage - Texas Instruments TI-89 Developer's Manual

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

Advertisement

38
RAM
The OS expects the first variable in the application's initialized data (.data
section) to be a pointer to the app frame. The OS must be able to find the app
frame in order to get the app's event processor entry point. To make this happen,
you must declare a variable of type
the address of your application's frame. Furthermore, you need to make sure it is
the first initialized variable in your application.
7.3.

Source Layout

An AMS application can serve several purposes. It can have an interactive user
interface through windows and the keyboard — the most common usage. It can
extend TI-BASIC with a library of functions and programs. It can implement a
shared-code library — routines which can be called from other applications. And,
it can override tables in the OS or another application to provide local language
customization. An app can provide a mix of any of these features.
This section looks at the source requirements your application needs to
implement each of these features.
7.3.1.

Interactive Applications

Interactive applications need an object frame and an event handler. The object
frame provides a directory of attributes and methods in the application and
serves as an interface to the OS. It is in the object frame that the OS finds the
address of the app's event handler.
This section covers the layout of the object frame with the help of
and
ENDFRAME
predefined frame attributes and methods. Finally, a simple example pulls the
pieces together into a complete application.
TI-89 / TI-92 Plus Developer Guide
ACB
.data
.bss

Figure 7.2: Application RAM and Flash Usage

macros, how the OS finds the app's frame, and details of
Not for Distribution
Chapter 7: Flash Application Layout
.text
FRAME
Flash ROM
.const
in your C source and initialize it with
pFrame
,
,
FRAME
ATTR
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