83Plus:BCALLs:4015

From WikiTI
Revision as of 18:37, 17 June 2020 by Tari (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Synopsis

Official Name: KbdScan

BCALL Address: 4015

This routine scans the keyboard for any key presses and updates the memory location kbdScanCode.

Inputs

  • none

Outputs

Registers Destroyed

  • All

Comments

Normally this routine is called by the interrupt routine. If interrupts are not enabled, this can be called prior to GetCSC to achieve the same results.

Key repeat is handled here, when scanning the keyboard. If any of the arrow keys or DEL is held, they will first be repeated after about 48 calls and every 10 after the first. Holding other keys will not update kbdScanCode until the key is released.