s

8086 Assembly Language INT 16h Keyboard Interrupt edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 13 February 2021 | 8402

Int 16h is a bios interrupt used to provide keyboard services. This interrupt is responsible for obtaining basic keyboard functionality. Interrupt 16h or the keyboard interrupt is one of the most frequently used interrupts while coding in 8086 assembly language. Following is the list of services of int 16h.

List of services of the INT 16h

Function Number Description
AH=00h KEYBOARD - GET KEYSTROKE (Read key press)
AH=01h KEYBOARD - CHECK FOR KEYSTROKE (Get the State of the keyboard buffer)
AH=02h KEYBOARD - GET SHIFT FLAGS (Get the State of the keyboard)
AH=03h KEYBOARD - SET TYPEMATIC RATE AND DELAY (Establish repetition factor)
AH=05h KEYBOARD - STORE KEYSTROKE IN KEYBOARD BUFFER (Simulate a keystroke)
AH=0Ah KEYBOARD - GET KEYBOARD ID (Get the ID of the keyboard)
AH=10h KEYBOARD - GET ENHANCED KEYSTROKE (Read expanded keyboard character)
AH=11h KEYBOARD - CHECK FOR ENHANCED KEYSTROKE (Obtain status of the expanded keyboard buffer)
AH=12h KEYBOARD - GET EXTENDED SHIFT STATES (Get expanded keyboard status)