8 Interrupts
8 Interrupts
Interrupts
● Interrupt: A mechanism to handle events (e.g., hardware signals or software
requests).
● Interrupt Service Routine (ISR): A special function or block of code executed when
an interrupt occurs.
● Interrupt Vector: A table holding addresses of ISRs, where each interrupt has a
unique index.
INT 21h DOS Interrupt System services (file operations, input/output, etc.)
INT 10h Video Services For video control (e.g., changing modes, writing text)
INT 13h Disk Services For accessing disk drives (e.g., read/write sectors)
HLT Halt the CPU Stops the CPU until reset or power off.
Read String 0Ah Reads a string from input (buffer starts at DX)
Set Video Mode 00h Set video mode (requires AL for mode
number)
Hardware interrupts are often associated with devices and are mapped into the interrupt
vector table at specific locations.
IRQ 0 Timer Interrupt Generated by the system timer (every 18.2 ms)
In this example: