Difference between revisions of "84PCE:RAM:D00824"
From WikiTI
(Created page with "D00824 - menuCurrent menuCurrent") |
|||
Line 1: | Line 1: | ||
[[Category:84PCE:RAM:By Address|D00824 - menuCurrent]] [[Category:84PCE:RAM:By Name|menuCurrent]] | [[Category:84PCE:RAM:By Address|D00824 - menuCurrent]] [[Category:84PCE:RAM:By Name|menuCurrent]] | ||
+ | == Synopsis == | ||
+ | '''Official Name:''' MenuCurrent | ||
+ | |||
+ | '''Memory Address:''' D00824h | ||
+ | |||
+ | '''Length:''' 3 bytes. | ||
+ | |||
+ | This area of memory stores the value of the current TI-OS menu. | ||
+ | <!--Not sure if this is right: before switching to a different context, e.g. a hook.--> | ||
+ | |||
+ | === Description === | ||
+ | * '''MenuCurrent:''' contains a value for the type of menu (e.g. [PRGM], [MATH]). Note that the corresponding sub-menus are also equivalent to their respective menu (e.g. [PRGM] is also the same value as [DRAW]) | ||
+ | |||
+ | * '''MenuCurrent+1:''' contains which header is selected (e.g. [NUM] in the [MATH] menu). | ||
+ | |||
+ | * '''MenuCurrent+2:''' tells us which item in the menu is selected. | ||
+ | |||
+ | == Comments == | ||
+ | Bytes two and three (the header and item) are zero-indexed, so item #1 is $00, item #2 is $01, etc. | ||
+ | |||
+ | Once a menu is exited, these bytes are reset. | ||
+ | |||
+ | A list of equates can be found in the ti84pce.inc |
Latest revision as of 09:39, 18 July 2016
Synopsis
Official Name: MenuCurrent
Memory Address: D00824h
Length: 3 bytes.
This area of memory stores the value of the current TI-OS menu.
Description
- MenuCurrent: contains a value for the type of menu (e.g. [PRGM], [MATH]). Note that the corresponding sub-menus are also equivalent to their respective menu (e.g. [PRGM] is also the same value as [DRAW])
- MenuCurrent+1: contains which header is selected (e.g. [NUM] in the [MATH] menu).
- MenuCurrent+2: tells us which item in the menu is selected.
Comments
Bytes two and three (the header and item) are zero-indexed, so item #1 is $00, item #2 is $01, etc.
Once a menu is exited, these bytes are reset.
A list of equates can be found in the ti84pce.inc