Difference between revisions of "83Plus:BCALLs:4A7D"

From WikiTI
Jump to: navigation, search
(Destroys)
 
Line 1: Line 1:
 
[[Category:83Plus:BCALLs:By Name:Utility|CatalogChk]] [[Category:83Plus:BCALLs:By Name|CatalogChk]] [[Category:83Plus:BCALLs:By Address|4A7D - CatalogChk]]
 
[[Category:83Plus:BCALLs:By Name:Utility|CatalogChk]] [[Category:83Plus:BCALLs:By Name|CatalogChk]] [[Category:83Plus:BCALLs:By Address|4A7D - CatalogChk]]
{{missinfo|Destroys}}
 
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' CatalogChk
 
'''Official Name:''' CatalogChk
Line 15: Line 14:
  
 
=== Registers Destroyed ===
 
=== Registers Destroyed ===
* unknown
+
* BC
  
 
=== Comments ===
 
=== Comments ===

Latest revision as of 11:33, 6 February 2008

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

  • BC

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