83Plus:BCALLs:4018

From WikiTI
Revision as of 21:12, 7 April 2005 by Woozle (Talk | contribs)

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

Synopsis

Official Name: GetCSC

BCALL Address: 4018

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

Inputs

  • none

Outputs

  • A=(kbdScanCode)
  • (kbdScanCode)=0
  • kbdSCR,(iy+kbdFlags) reset

Registers Destroyed

  • HL=kbdScanCode

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).