83Plus:BCALLs:4A7D

From WikiTI
Revision as of 05:43, 6 February 2008 by Luby (Talk | contribs)

Jump to: navigation, search
This article is missing some information (namely Destroys). You can help WikiTI by filling in the missing information.


Synopsis

Official Name: CatalogChk

BCALL Address: 4A7D

Checks for and processes any keys relating to the catalog.

Inputs

  • A = key press

Outputs

  • A = key press (might not be the same)

Registers Destroyed

  • unknown

Comments

Calling this immediately after GetKey will allow the OS catalog 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 catalog action. For instance if a=kenter was sent to this routine while the cursor is next to 'and', the output of this routine would be a=kextendecho and (keyExtend)=kAnd.

Example

ld a,kCatalog
B_CALL CatalogChk ;on LCD the catalog should be visable
ld a,kDown
B_CALL CatalogChk ;cursor should move from 'abs(' to 'and'
ld a,kEnter
B_CALL CatalogChk ;output of routine should be a=kextendecho and (keyExtend)=kAnd