Difference between revisions of "83Plus:BCALLs:4A0B"
From WikiTI
(grammatical error and Reg Destroyed to Destroys) |
84plusfreak (Talk | contribs) m (→Destroys) |
||
Line 20: | Line 20: | ||
=== Destroys === | === Destroys === | ||
− | * | + | * BC,DE,HL |
== Example == | == Example == |
Latest revision as of 05:13, 3 May 2005
Contents
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
- BC,DE,HL
Example
ld d,0 ld e,tSin B_CALL TokToKey ;should return a=kSin