'=========================================================================== ' Subject: COMPLETE INTERRUPT LIST Date: Unknown Date (00:00:00) ' Author: The ABC Programmer Code: None ' Origin: INTERRUPT,LIST Packet: INTERRPT.ABC '=========================================================================== The Complete BIOS Interrupts from 0 through &H1F Interrupt 0 Divide By 0 (Generated if a program divides by 0) Interrupt 1 Single Step (Used by debuggers) Interrupt 2 NonMaskable Hardware Interrupr (NMI) Interrupt 3 Breakpoint (Used by debuggers) Interrupt 4 Overflow Interrupt 5 Print Screen (Print Screen Key) Interrupt 6 Reserved Interrupt 7 Reserved Interrupt 8 Time of Day Interrupt 9 Keyboard Interrupt &HA Reserved Interrupts &HB-&HF BIOS end interrupt routine, resets interrupt handler *************************************************************** **** Interrupt &H10 handles the screen at the lowest level **** *************************************************************** Interrupt 10 Service 0 Set Screen Mode Interrupt 10 Service 1 Set Cursor Type Interrupt 10 Service 2 Set Cursor Position Interrupt 10 Service 3 Find Cursor Position Interrupt 10 Service 4 Read Light Pen Position Interrupt 10 Service 5 Set Active Display Page Interrupt 10 Service 6 Scroll Active Page Up Interrupt 10 Service 7 Scroll Active Page Down Interrupt 10 Service 8 Read Attribute/Character at Cursor Position Interrupt 10 Service 9 Write Attribute/Character at Cursor Position Interrupt 10 Service &HA Write Character ONLY at Cursor Position Interrupt 10 Service &HB Set Color Palette Interrupt 10 Service &HC Write Dot (Set Pixel) Interrupt 10 Service &HD Read Dot (Read Pixel color) Interrupt 10 Service &HE Teletype Write to Active Page Interrupt 10 Service &HF Return Video State Interrupt 10 Service &H10 Set Palette Registers Interrupt 10 Service &H10 Function 0 Set Individual Palette Register Interrupt 10 Service &H10 Function 1 Set Overscan (Border) Register Interrupt 10 Service &H10 Function 2 Set All Palette Registers Interrupt 10 Service &H10 Function 7 Read Individual Palette Register Interrupt 10 Service &H10 Function 8 Read Overscan (Border) Register Interrupt 10 Service &H10 Set DAC Register Function &H10 Interrupt 10 Service &H10 Set DAC Registers Function &H12 Interrupt 10 Service &H10 Select Color Page Mode Function &H13 Interrupt 10 Service &H11 Character Generator Interrupt 10 Service &H12 Alternate Select ******************************************************************* **** Interrupt &H11 determines equipment installed in computer **** ******************************************************************* ax bits Indicates ---------------------------------------------------------------------- 15,14 Number of Printer Installed 13 Internal modem installed (1 = yes) 12 Not Used 11,10,9 Number of RS-232 cards attached 8 Not Used 7,6 Number of diskette drives: 00=1 drive; 01=2 drives 5,4 Video type: 01=40x25 color; 10=80x25 color; 11=80x25 mono 3 Not Used 2 Mouse Installed 1 Math Coprocessor installed? (1 = yes) 0 Diskette drives installed? (1 = yes) ***************************************************************************** *** Interrupt &H12 determines the size of installed memory on motherboard *** *** not on add-in cards *** ***************************************************************************** ********************************************************* **** Interrupt &H13 handles diskette and disk drives **** ********************************************************* Interrupt &H13 Service 0 Reset Disk Interrupt &H13 Service 1 Read Status of Last Operation Interrupt &H13 Service 2 Read Sectors into Memory Interrupt &H13 Service 3 Write Sectors to Disk Interrupt &H13 Service 4 Verify Sectors Interrupt &H13 Service 8 Return Drive Parameters Interrupt &H13 Service &HA,&HB Reserved Interrupt &H13 Service &HC Seek Interrupt &H13 Service &HD Alternate Disk Reset Interrupt &H13 Service &HE,&HF Reserved Interrupt &H13 Service &H10 Test Drive Ready Interrupt &H13 Service &H11 Recalibrate Hard Drive Interrupt &H13 Service &H12-14 Diagnostic Services Interrupt &H13 Service &H19 Park Heads PS/2 Only ************************************************* **** Interrupt &H14 handles I/O Serial Ports **** ************************************************* Interrupt &H14 AH=0 Initialize RS232 Port Interrupt &H14 AH=1 Send Character Through Serial Port Interrupt &H14 AH=2 Receive Character From Serial Port Interrupt &H14 AH=3 Return Serial Port's Status Interrupt &H15 handles cassette port on the original PC ************************************************** **** Interrupt &H16 handles the keyboard data **** ************************************************** Interrupt &H16 Service 0 Read Key from Keyboard Interrupt &H16 Service 1 Check if Key Ready to be Read Interrupt &H16 Service 2 Find Keyboard Status ******************************************** **** Interrupt &H17 handles the printer **** ******************************************** Interrupt &H17 Service 0 Print Character in al Interrupt &H17 Service 1 Initialize Printer Port Interrupt &H17 Service 2 Read Printer Status into ah ******************************** **** Interrupts &H18 - &H20 **** ******************************** Interrupt &H18 is the resident ROM BASIC Interrupt &H19 is the boot interrupt Interrupt &H1A Service 0 Read Time of Day Interrupt &H1A Service 1 Set Time of Day Interrupt &H1B KeyBoard Break Address Interrupt &H1C Timer Tick Interrupt Interrupt &H1D Video Parameter Tables Interrupt &H1E Diskette Parameters Interrupt &H1F Graphics Character Definitions Interrupt &H20 Program Terminate ************************************************************ **** Interrupt &H21 Handles almost all DOS' capabilites **** ************************************************************ Interrupt &H21 Service 0 Program Terminate Interrupt &H21 Service 1 KeyBoard Input Interrupt &H21 Service 2 Character Output on Screen Interrupt &H21 Service 3 Standard Auxiliary Device Input Interrupt &H21 Service 4 Standard Auxiliary Device Output Interrupt &H21 Service 5 Printer Output Interrupt &H21 Service 6 Console I/O Interrupt &H21 Service 7 Console Input Without Echo Interrupt &H21 Service 8 Console Input w/o Echo with ^C Check Interrupt &H21 Service 9 Character String Print Interrupt &H21 Service &HA String Input Interrupt &H21 Service &HB Check Input Status Interrupt &H21 Service &HC Clear Keyboard Buffer and Invoke Service Interrupt &H21 Service &HD Disk Reset Interrupt &H21 Service &HE Select Disk Interrupt &H21 Service &HF Open Pre-existing File Interrupt &H21 Service &H10 Close File Interrupt &H21 Service &H11 Search for First Matching File Interrupt &H21 Service &H12 Search for Next Matching File Interrupt &H21 Service &H13 Delete Files Interrupt &H21 Service &H14 Sequential Read Interrupt &H21 Service &H15 Sequential Write Interrupt &H21 Service &H16 Create File Interrupt &H21 Service &H17 Rename File Interrupt &H21 Service &H18 Internal to DOS Interrupt &H21 Service &H19 Find Default Disk Interrupt &H21 Service &H1A Set the DTA Location Interrupt &H21 Service &H1B FAT Information for Default Drive Interrupt &H21 Service &H1C FAT Information for Specified Drive Interrupt &H21 Service &H1D - Internal to DOS Service &H20 Interrupt &H21 Service &H21 Random Read Interrupt &H21 Service &H22 Random Write Interrupt &H21 Service &H23 File Size Interrupt &H21 Service &H24 Set Random Record Field Interrupt &H21 Service &H25 Set Interrupt Vector Interrupt &H21 Service &H26 Create a New Program Segment (PSP) Interrupt &H21 Service &H27 Random Block Read Interrupt &H21 Service &H28 Random Block Write Interrupt &H21 Service &H29 Parse FileName Interrupt &H21 Service &H2A Get Date Interrupt &H21 Service &H2B Set Date Interrupt &H21 Service &H2C Get Time Interrupt &H21 Service &H2D Set Time Interrupt &H21 Service &H2E Set or Reset Verify Switch Interrupt &H21 Service &H2F Get Current Disk Transfew Area Interrupt &H21 Service &H30 Get DOS Version Number Interrupt &H21 Service &H31 Terminate Process and Keep Resident Interrupt &H21 Service &H32 Internal to DOS Interrupt &H21 Service &H33 Control-Break Check Interrupt &H21 Service &H34 Internal to DOS Interrupt &H21 Service &H35 Get Interrupt Vector Interrupt &H21 Service &H36 Get Free Disk Space Interrupt &H21 Service &H37 Internal to DOS Interrupt &H21 Service &H38 Returns Country Dependent Information Interrupt &H21 Service &H39 Create a Subdirectory Interrupt &H21 Service &H3A Delete a Subdirectory Interrupt &H21 Service &H3B Change Current Directory Interrupt &H21 Service &H3C Create a File Interrupt &H21 Service &H3D Open a File Interrupt &H21 Service &H3E Close a File Handle Interrupt &H21 Service &H3F Read from File or Device Interrupt &H21 Service &H40 Write to File or Device Interrupt &H21 Service &H41 Delete a File Interrupt &H21 Service &H42 Move Read/Write Pointer Interrupt &H21 Service &H43 Change File's Attribute Interrupt &H21 Service &H44 I/O Control Interrupt &H21 Service &H45 Duplicate a File Handle Interrupt &H21 Service &H46 Force Duplication of a File Handle Interrupt &H21 Service &H47 Get Current Directory on Specified Drive Interrupt &H21 Service &H48 Allocate Memory Interrupt &H21 Service &H49 Free Allocated Memory Interrupt &H21 Service &H4A SETBLOCK (Memory Allocation) Interrupt &H21 Service &H4B Load or Execute a program-EXEC Interrupt &H21 Service &H4C Exit with Return Code Interrupt &H21 Service &H4D Get Return Code of Subprocess Interrupt &H21 Service &H4E Find First Matching Interrupt &H21 Service &H4F Find Next Matching Interrupt &H21 Service &H50H- Internal to DOS Service &H53 Interrupt &H21 Service &H54 Get Verify State Interrupt &H21 Service &H55 Internal to DOS Interrupt &H21 Service &H56 Rename File Interrupt &H21 Service &H57 Get or Set a File's Date & Time Interrupt &H21 Service &H58 Internal to DOS Interrupt &H21 Service &H59 Get Extended Error DOS 3+ Interrupt &H21 Service &H5A Create Unique File DOS 3+ Interrupt &H21 Service &H5B Create a New File DOS 3+ Interrupt &H21 Service &H5C Lock and Unlock Access to a File DOS 3+ Interrupt &H21 Service &H5E00 Get Machine Name DOS 3+ Interrupt &H21 Service &H5E02 Set Printer Setup DOS 3+ Interrupt &H21 Service &H5E03 Get Printer Setup DOS 3+ Interrupt &H21 Service &H5F03 Redirect Device DOS 3+ Interrupt &H21 Service &H5F04 Cancel Redirection DOS 3+ Interrupt &H21 Service &H61 Reserved Interrupt &H21 Service &H62 Get Program Segment Prefix DOS 3+ Interrupt &H21 Service &H63-64 Reserved Interrupt &H21 Service &H65 Get Extended Country Information Interrupt &H21 Service &H6601 Get Global Code Page Interrupt &H21 Service &H6602 Set Global Code Page Interrupt &H21 Service &H67 Set Handle Count DOS 3.30 Interrupt &H21 Service &H68 Commit File (Write Buffers) DOS 3.30 Interrupt &H21 Service &H6C Extended Open/Create DOS 4.0 ************************************************************* **** Interrupts &H22 - &HFF are the remaining Interrupts **** ************************************************************* Interrupt &H22 Terminate Address Interrupt &H23 Control Break Exit Address Interrupt &H24 Critical Error Handle Interrupt &H25 Absolute Disk Read Interrupt &H26 Absolute Disk Write Interrupt &H27 Terminate and Stay Resident Interrupt &H28H-&H2E Internal to DOS Interrupt &H2F Multiplex Interrupt Interrupt &H30H-&H3F DOS Reserved Interrupt &H40H-&H5F Reserved Interrupt &H60H-&H66 Reserved for User Software Interrupt &H67 LIM 4.0 Support Interrupt &H68H-&H7F Not Used Interrupt &H80H-&H85 Reserved for BASIC Interrupt &H86H-&HF0 Used by BASIC Interpreter Interrupt &HF1H-&HFF Not Used