Interrupts
Interrupts
Interrupts
• Useful subroutines within BIOS and DOS that are available through the INT
(interrupt) instruction.
• The INT instruction is like a FAR call. It saves CS:IP and flags on the stack and
executes the subroutine with it
• It has the format: INT xx ; xx can be any value from 00 to FF (256 interrupts)
• BIOS interrupts are burned into the BIOS ROM of the 80x86-based systems
Useful DOS interrupt to input information from the keyboard and display it on the screen
Function 01 – check for a key press without waiting for the user
AH = 01
Upon execution ZF = 0 if there is a key pressed