83Plus:BCALLs:4A0B: Difference between revisions
From WikiTI
Jump to navigationJump to search
grammatical error and Reg Destroyed to Destroys |
|||
| Line 5: | Line 5: | ||
'''BCALL Address:''' 4A0B | '''BCALL Address:''' 4A0B | ||
Converts a | Converts a token to a key press. | ||
=== Inputs === | === Inputs === | ||
| Line 19: | Line 19: | ||
* ([[83Plus:RAM:8446|keyExtend]]) = second byte of key press, if it exists | * ([[83Plus:RAM:8446|keyExtend]]) = second byte of key press, if it exists | ||
=== | === Destroys === | ||
* ?? | * ?? | ||
Revision as of 02:09, 25 April 2005
Synopsis
Official Name: TokToKey
BCALL Address: 4A0B
Converts a token to a key press.
Inputs
- If one byte token,
- D = 0
- E = token value
- If two byte token,
- D = first byte of token
- E = second byte of token
Outputs
- A = first byte of key
- (keyExtend) = second byte of key press, if it exists
Destroys
- ??
Example
ld d,0 ld e,tSin B_CALL TokToKey ;should return a=kSin