83Plus:BCALLs:4A0B: Difference between revisions

From WikiTI
Jump to navigationJump to search
Woozle (talk | contribs)
No edit summary
 
Woozle (talk | contribs)
Line 11: Line 11:
*  D = 0  
*  D = 0  
*  E = token value
*  E = token value
* If two byte tokne,
* If two byte token,
*  D = first byte of token
*  D = first byte of token
*  E = second byte of token
*  E = second byte of token

Revision as of 05:36, 9 April 2005

Synopsis

Official Name: TokToKey

BCALL Address: 4A0B

Converts a tokens to key presses.

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

Registers Destroyed

  • ??

Example

ld d,0
ld e,tSin
B_CALL TokToKey ;should return a=kSin