Difference between revisions of "83Plus:BCALLs:45CD"
From WikiTI
(→Comments) |
(→Comments) |
||
Line 17: | Line 17: | ||
=== Comments === | === Comments === | ||
− | Calling this immediately after GetKey will allow OS menus to appear during execution of your program. The output of this routine may be an unprocessed key or it may be the result of a menu action. For instance if a=kenter was sent to this routine while entry 2 is highlighted in the Draw menu, the output of this routine would be a=kLine. | + | Calling this immediately after [[83Plus:BCALLs:4972|GetKey]] will allow OS menus to appear during execution of your program. The output of this routine may be an unprocessed key or it may be the result of a menu action. For instance if a=kenter was sent to this routine while entry 2 is highlighted in the Draw menu, the output of this routine would be a=kLine. |
== Example == | == Example == |
Revision as of 17:51, 10 April 2005
Synopsis
Official Name: PullDownChk
BCALL Address: 45CD
Checks for and processes any keys relating to menus.
Inputs
- A = key press
Outputs
- A = key press (might not be the same)
Registers Destroyed
- ??
Comments
Calling this immediately after GetKey will allow OS menus to appear during execution of your program. The output of this routine may be an unprocessed key or it may be the result of a menu action. For instance if a=kenter was sent to this routine while entry 2 is highlighted in the Draw menu, the output of this routine would be a=kLine.
Example
ld a,kDraw B_CALL PullDownChk ;on LCD the draw menu should be visable ld a,kDown B_CALL PullDownChk ;cursor should move from entry 1 to entry 2 ld a,kEnter B_CALL PullDownChk ;output of routine should be kLine