Chapter 9: Application Control Flow
81
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
0x708 CM_RESTART
Notifies the current application that the user has chosen to start
the same application from the APPS menu. Applications may
choose to ignore this command and there is no default handling.
0x709 Reserved
0x70A Reserved
0x70B CM_ON
Sent to each application when the calculator is turned on after
being turned off with ([2ND] [OFF]). This command is not sent if
the calculator is turned on after automatic power down.
0x70C CM_INSTALL
Sent to an application just after it has been installed in the
calculator. This message is sent to applications which are already
in Flash memory when batteries are inserted or when the
calculator is reset. This message is also sent to an application just
after it has been downloaded into Flash memory through the link
port.
0x70D CM_UNINSTALL
Sent to an application just before it is deleted from Flash memory.
0x70E CM_PACK
Informs an application that it is about to be moved to another
address in Flash memory. The OS sends this message before it
begins garbage collection after deleting another Flash application.
The application must save any state information it needs.
0x70F CM_UNPACK
Sent to an application after Flash memory garbage collection is
complete. The application uses this opportunity to restore state
information it saved when it received the CM_PACK message.
0x710 CM_KEY_PRESS
Sent when a key is pressed on the calculator keyboard. This
message tells the application which key was pressed. Keypresses
include ASCII characters (0x20 – 0x7E), extended ASCII
characters (0x80 – 0xFF), control characters and special symbols
(0x00 – 0x1F, and 0x7F), and extended key codes (>= 0x100)
such as function keys and the cursor arrow keys. The application
usually forwards extended key codes to the default event handler
for further processing.