Assembly-Guidebook

Interrupts

Interrupts can be seen as a number of functions. These functions make the program easier.

Types

  1. Software Interrupt
  2. Hardware Interrupt

Syntax

INT VALUE    (value lies between 0 to 255 or 0 to 0FFh)
Example: 
INT 10h
INT 21h

Interrupt table

image

image

Example Interrupts

  1. INT 10h is used for screen manipulation
  2. INT 21h is used for input and output operation on screen. Most of the calls to DOS API are invoked using software interrupt 21h
  3. INT 13h is used for storage
  4. INT 16h is used for keyboard control and read

Example Programs

  1. To Clear Screen
  2. To print on the screen