83Plus:RAM:859A

From WikiTI
Revision as of 22:25, 29 March 2005 by FloppusMaximus (Talk | contribs)

Jump to: navigation, search

Synopsis

Official Name: cxCurApp

Memory Address: 859Ah

Length: 1 byte

This area of memory tells what app is currently running, if it is one of the builtin apps.

Comments

The values assigned here are the same as the keypresses that ordinaily switch to the various apps, so the homescreen is indicated by kQuit, the graph by kGraph, the program editor by kPrgmEd, and so forth. If an "external" app (i.e. Flash app) is running, this should always be set to kExtApps. A full list is given in the section "TI-83 Plus Context Equates" in ti83plus.inc.

This byte can be used in hooks, for example, to distinguish between the various apps. The cxCurApp values are constant, whereas the actual context vectors and possibly even the pages they are located on may change between OS versions.

It also has some subtle effects on the behavior of the system monitor; for example, it controls which menus the user is allowed to use.

Modify this value with extreme caution.