83Plus:BCALLs:4018

From WikiTI
Revision as of 04:31, 10 May 2014 by Dr. D'nar (Talk | contribs)

Jump to: navigation, search

Synopsis

Official Name: GetCSC

BCALL Address: 4018

This routine loads the most recent scan code into register A.

Inputs

Outputs

  • A=(kbdScanCode)
    • May contain diagonal arrow key presses. Add these equates to your ti83plus.inc:
skDownLeft		EQU	252
skDownRight		EQU	250
skUpLeft		EQU	245
skUpRight		EQU	243

Registers Destroyed

Comments

This routine expects that either interrupts are enabled or KbdScan was called manually. Either of these routines will check the keyboard and load the appropriate scan code into the memory location kbdScanCode and set the flag kbdSCR,(iy+kbdFlags).

If you set appWantDiagonalKeys, (iy + mouseFlag1) GetKey will return garbage values for diagonal arrow key presses. In particular, two of the combinations share the same value. So that flag obviously isn't meant for use with GetKey. You should not return to the OS with it set for that reason.