Professional Documents
Culture Documents
INT 21H
DOS interrupts
INT 21h is provided by DOS.
When MS-DOS is loaded into the computer, INT 21H can be
invoked to perform some extremely useful functions.
These functions are commonly referred to as DOS INT 21H
function calls.
Data input and output through the keyboard and monitor are the
most commonly used functions.
Below are two examples that use DOS interrupts.
ALL Interrupts
Interrupts for Input
Interrupts for Output
Interrupts for Input
INT 21h / AH=1 - read character from standard
input, with echo
INT 21h / AH=6 - direct console input or output
INT 21h / AH=7 - character input without echo to
AL
INT 21h / AH=0Ah - input of a string
Interrupts for Output
INT 21h / AH=2 - write character to
standard output
INT 21h / AH=9 - output of a string
INT 21h Function 07h
A program to read a character from Keyboard without Echo
solution: INT 21h / AH=7 - character input without echo to AL