Expand description
What the six menu keys show now (48SX, 48GX, 49G), read from RAM
without pressing a key: the current menu (its pointer, wiki:
hardware/hp48-system-ram, “Menu”) and its page (the first key shown,
same section), the menu’s keys from the ROM’s own definition
(crate::menus), the VAR menu’s from the current directory.
Only while the stack has the keyboard (crate::screen): an input
form, a choose box or another application draws its own keys. A menu
the ROM builds in RAM (the 49G’s TOOL menu, a form’s menu), the CST
menu and a menu whose definition gives no keys read as unknown.
Structs§
- Shown
Key - One menu key as the screen shows it.
Constants§
Functions§
- read
- The six menu keys the screen shows now, read from RAM while the ROM
waits for a key (48SX, 48GX, 49G);
Nonewhere they are not known (another screen has the keyboard, a menu built in RAM, CST).defsare the ROM’s menus (crate::menus::read). - shown
- The six keys of menu
numberon the page starting at keyfirst: from the definition indefs, or for the VAR menu fromvariables(the current directory’s, newest first).Nonewhere the keys are not known. - signature
- What identifies the menu shown and what its keys depend on, read
cheaply: the menu pointer, the page, the current directory, the end
of HOME, the data stack’s top and the return stack’s top. When none
of these moved,
readgives the same keys.