Interrupts
Interrupts can be seen as a number of functions. These functions make the program easier.
Types
- Software Interrupt
- Hardware Interrupt
Syntax
INT VALUE (value lies between 0 to 255 or 0 to 0FFh)
Example:
INT 10h
INT 21h
Interrupt table
Example Interrupts
- INT 10h is used for screen manipulation
- INT 21h is used for input and output operation on screen. Most of the calls to DOS API are invoked using software interrupt 21h
- INT 13h is used for storage
- INT 16h is used for keyboard control and read
Example Programs
- To Clear Screen
- To print on the screen