Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Other DOS - <b> keyboard flags bytes 0 and 1</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                        Keyboard Flags Bytes 0 and 1

                |7|6|5|4|3|2|1|0|  40:17  Keyboard Flags Byte 0
                 | | | | | | | +---- right shift key depressed
                 | | | | | | +----- left shift key depressed
                 | | | | | +------ CTRL key depressed
                 | | | | +------- ALT key depressed
                 | | | +-------- scroll-lock is active
                 | | +--------- num-lock is active
                 | +---------- caps-lock is active
                 +----------- insert is active

                |7|6|5|4|3|2|1|0|  40:18  Keyboard Flags Byte 1
                 | | | | | | | +---- left CTRL key depressed
                 | | | | | | +----- left ALT key depressed
                 | | | | | +------ system key depressed and held
                 | | | | +------- suspend key has been toggled
                 | | | +-------- scroll lock key is depressed
                 | | +--------- num-lock key is depressed
                 | +---------- caps-lock key is depressed
                 +----------- insert key is depressed

                        Keyboard Flags Bytes 2 and 3

                |7|6|5|4|3|2|1|0|  40:97  LED Indicator Flags
                 | | | | | | | +---- scroll lock indicator
                 | | | | | | +----- num-lock indicator
                 | | | | | +------ caps-lock indicator
                 | | | | +------- circus system indicator
                 | | | +-------- ACK received
                 | | +--------- re-send received flag
                 | +---------- mode indicator update
                 +----------- keyboard transmit error flag

                |7|6|5|4|3|2|1|0|  40:96  Keyboard Mode/Type
                 | | | | | | | +---- last code was the E1 hidden code
                 | | | | | | +----- last code was the E0 hidden code
                 | | | | | +------ right CTRL key depressed
                 | | | | +------- right ALT key depressed
                 | | | +-------- 101/102 enhanced keyboard installed
                 | | +--------- force num-lock if Rd ID & KBX
                 | +---------- last char was first ID char
                 +----------- read ID in process

        - see   INT 9  BDA

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson