Revision as of 10:47, 10 July 2006 by Mmartin
Official Name: ConvKeyToTok
BCALL Address: 4A02
Converts a key into it's corresponding token.
- A: The key code
- keyExtend: The second byte of the key code if it's an extended key code
- DE: Contains the token, D will be zero for a one byte token.
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