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

From WikiTI
Jump to: navigation, search
 
m (whitespace)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
[[Category:83Plus:BCALLs:By Name:Edit|ConvKeyToTok]]
 
[[Category:83Plus:BCALLs:By Name:Edit|ConvKeyToTok]]
 
[[Category:83Plus:BCALLs:By Address|4A02 - ConvKeyToTok]]
 
[[Category:83Plus:BCALLs:By Address|4A02 - ConvKeyToTok]]
----
 
 
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' ConvKeyToTok
 
'''Official Name:''' ConvKeyToTok

Latest revision as of 19:36, 15 July 2006

Synopsis

Official Name: ConvKeyToTok

BCALL Address: 4A02

Converts a key into it's corresponding token.

Inputs

  • A: The key code
  • keyExtend: The second byte of the key code if it's an extended key code

Outputs

  • DE: Contains the token, D will be zero for a one byte token.

Destroys

  • All

Example

The code below will display ‘1’ at the cursor location.

LD A,k1 ;Convert ‘1’ into token. 
B_CALL ConvKeyToTok 
B_CALL PutTokString ;Takes DE as input

Credits and Contributions

  • Michael Vincent: For documenting this B_CALL