83Plus:RAM:843F

From WikiTI
Jump to: navigation, search

Synopsis

Official Name: kbdScanCode

Memory Address: 843Fh

Length: 1 byte.

Stores the scan code of the key being pressed. This is set by KbdScan and read by GetCSC. It is only valid when the flag kbdSCR,(iy+kbdFlags) is set.

GetCSC can also process diagonal arrow key presses; set bit 0 of mouseFlag1 to enable this behavior, though you shouldn't return to the OS with it set. Here are the equates:

skDownLeft		EQU	252
skDownRight		EQU	250
skUpLeft		EQU	245
skUpRight		EQU	243