83:ROMCalls:4014
From WikiTI
Contents
Synopsis
Official Name: GetCSC
BCALL Address: 4014
This routine returns the Current Scan Code into register A.
Inputs
- none
Outputs
- a = (kbdScanCode)
- (kbdScanCode) = 0
- kbdSCR,(iy+kbdFlags) reset
- hl = kbdScanCode
- bc,de,f preserved
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).