China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 13:27
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Interrupt vector table View 3,615 Replies 4
Original Poster Posted 2006-09-04 07:23 ·  中国 上海 徐汇区 电信
中级用户
★★
论坛第一菜鸟
Credits 361
Posts 166
Joined 2006-04-15 13:23
20-year member
UID 53870
Status Offline
Interrupt Vector Table (organized by xjmxjm1234)


An interrupt is a process where the CPU pauses the execution of the current program, switches to execute a program handling an urgent matter, and can automatically resume executing the original program after the matter is processed.

00H — "0" divide by zero
01H — Single step interrupt
02H — Non-maskable interrupt (NMI)
03H — Breakpoint interrupt
04H — Arithmetic overflow error
05H — Print screen and BOUND overflow
06H — Illegal instruction error
07H — Processor extension invalid
08H — Clock interrupt
09H — Keyboard input
0AH — Reserved
0BH — Communication port (COM2:)
0CH — Communication port (COM1:)
0DH — Reserved
0EH — Disk drive input/output
0FH — Reserved
10H — Display service
00H — Disk system reset 0EH — Read sector buffer
01H — Read disk system status 0FH — Write sector buffer
02H — Read sector 10H — Read drive status
03H — Write sector 11H — Calibrate drive
04H — Verify sector 12H — Controller RAM diagnostic
05H — Format track 13H — Controller drive diagnostic
06H — Format bad track 14H — Controller internal diagnostic
07H — Format drive 15H — Read disk type
08H — Read drive parameters 16H — Read disk change status
09H — Initialize hard disk parameters 17H — Set disk type
0AH — Read long sector 18H — Set format media type
0BH — Write long sector 19H — Head protection
0CH — Seek 1AH — Format ESDI drive
11H — Read device configuration
12H — Read conventional memory size (return value AX is memory capacity in KB)
13H — Direct disk service
00H — Disk system reset 0EH — Read sector buffer
01H — Read disk system status 0FH — Write sector buffer
02H — Read sector 10H — Read drive status
03H — Write sector 11H — Calibrate drive
04H — Verify sector 12H — Controller RAM diagnostic
05H — Format track 13H — Controller drive diagnostic
06H — Format bad track 14H — Controller internal diagnostic
07H — Format drive 15H — Read disk type
08H — Read drive parameters 16H — Read disk change status
09H — Initialize hard disk parameters 17H — Set disk type
0AH — Read long sector 18H — Set format media type
0BH — Write long sector 19H — Head protection
0CH — Seek 1AH — Format ESDI drive
0DH — Hard disk system reset
14H — Serial port service
00H — Initialize communication port 03H — Read communication port status
01H — Output character to communication port 04H — Expand initialize communication port
02H — Read character from communication port
15H — Miscellaneous system service
00H — Turn on cassette tape motor 85H — System Request (SysReq) key
01H — Turn off cassette tape motor 86H — Delay
02H — Read cassette tape 87H — Move extended memory block
03H — Write cassette tape 88H — Read extended memory size
0FH — Format ESDI drive 89H — Enter protected mode
21H — Read/write self-test error record 90H — Device wait
4FH — Keyboard intercept 91H — Device power-on self-test
80H — Device open C0H — Read system environment
81H — Device close C1H — Read extended BIOS data area address
82H — Process termination C2H — Mouse graphics
83H — Event wait C3H — Set WatcHdog timeout
84H — Read joystick C4H — Programmable option selection
16H — Keyboard service
00H,10H — Read character from keyboard 03H — Set repeat rate
01H,11H — Read keyboard status 04H — Set keyboard click
02H,12H — Read keyboard flags 05H — Push character and its scan code onto stack
17H — Parallel port service
00H — Output character to printer
01H — Initialize printer port
02H — Read printer status
18H — ROM BASIC
19H — Reboot system
1AH — Clock service
00H — Read clock "ticks" count 06H — Set alarm
01H — Set clock "ticks" count 07H — Reset alarm
02H — Read time 0AH — Read day count
03H — Set time 0BH — Set day count
04H — Read date 80H — Set sound source information
05H — Set date
1BH — CTRL+BREAK handler
1CH — User clock service
1DH — Pointer to display parameter table
1EH — Pointer to disk drive parameter table
1FH — Pointer to graphic character mode table
20H — Terminate program execution
21H — DOS function call
1. Character function call category
01H, 07H and 08H — Input character from standard input device 06H — Console input/output
02H — Output character 09H — Display string
03H — Input from auxiliary device 0AH — Keyboard buffered input
04H — Output to auxiliary device 0BH — Check input status
05H — Print output 0CH — Clear input function of input buffer
2. Directory control function
39H — Create directory 3BH — Set current directory
3AH — Delete directory 47H — Read current directory
3. Disk management function
0DH — Disk reset 2EH — Set check flag
0EH — Select disk 36H — Read drive allocation information
19H — Read current drive 54H — Read check flag
1BH, 1CH — Read drive data
4. File operation function
3CH — Create file 4FH — Find next file
3DH — Open file 56H — Rename file
3EH — Close file 57H — Read/set file date and time
41H — Delete file 5AH — Create temporary file
43H — Read/set file attributes 5BH — Create new file
45H — Duplicate file handle 67H — Set file handle count (maximum number of files)
46H — Redefine file handle 6CH — Extended open file function (open, create or replace file)
4EH — Find first file
5. File operation function
0FH — Open file 16H — Create file
10H — Close file 17H — Rename file
11H,12H — Find first or next file 23H — Read file size
13H — Delete file 29H — Analyze file name
6. Record operation function
1AH — Set data transfer area address 42H — Set file pointer
2FH — Read data transfer area address 5CH — Lock or unlock file area
3FH — Read file or device 68H — Commit file buffer data
40H — Write file or device
7. Record operation function
14H — Sequential read 24H — Set relative record number
15H — Sequential write 27H — Random read block
21H — Random read 28H — Random write block
22H — Random write
8. Memory allocation function
48H — Allocate memory block 4AH — Redefine memory block size
49H — Free memory block 58H — Read/set memory allocation strategy
9. System function
25H — Set interrupt vector 51H — Read program segment prefix address
30H — Read MS-DOS version number 59H — Read extended error information
33H — Read/set Break flag 5EH — Read machine name, read/set printer configuration
34H — Read address of InDOS flag 5FH — Device redirect
35H — Read interrupt vector 63H — Read lead byte table
38H — Read/set country information 65H — Read extended country information
44H — IOCTL (I/O control) 66H — Read/set code page
50H — Set program segment prefix address 5D0AH — Set extended error information
10. Process control function
00H — Terminate process 4CH — Terminate process with return code
26H — Create new program segment prefix 4DH — Read return code
31H — Terminate and stay resident 62H — Read PSP address
4BH — Execute program
11. Time and date function
2AH — Read date 2CH — Read time
2BH — Set date 2DH — Set time
22H — Address of terminate handler
23H — Ctrl+C handler
24H — Fatal error handler
25H — Read disk sector (ignore logical structure)
26H — Write disk sector (ignore logical structure)
27H — Terminate and stay in memory
28H-2EH — Reserved by DOS
2FH — Multiple interrupt service
30H-32H — Reserved by DOS
33H — Mouse function interrupt
00H — Initialize mouse 15H — Read buffer size of mouse driver status
01H — Display mouse pointer 16H — Store mouse driver status
02H — Hide mouse pointer 17H — Reload mouse driver status
03H — Read mouse position and button status 18H — Set replacement handler for mouse events
04H — Set mouse pointer position 19H — Read address of replacement handler
05H — Read mouse button information 1AH — Set mouse sensitivity
06H — Read mouse button release information 1BH — Read mouse sensitivity
07H — Set mouse horizontal boundary 1CH — Set mouse interrupt rate
08H — Set mouse vertical boundary 1DH — Select display page for mouse pointer
09H — Set graphic mouse shape 1EH — Read display page of mouse pointer
0AH — Set text mouse shape 1FH — Disable mouse driver
0BH — Read mouse movement count 20H — Start mouse driver
0CH — Set handler for mouse events 21H — Reset mouse driver
0DH — Enable light pen emulation 22H — Set mouse driver information language
0EH — Disable light pen emulation 23H — Read language
0FH — Set mouse count to pixel ratio 24H — Read mouse information
10H — Set mouse pointer hidden area 25H — Read mouse driver information
13H — Set threshold for double speed 26H — Read maximum valid coordinate
14H — Replace mouse event interrupt
34H-3FH — Reserved by DOS
40H-7FH — Unused
80H-85H — Reserved by BASIC
86H-F0H — For BASIC interpreter
F1H-FFH — Unused


[ Last edited by xjmxjm1234 on 2006-9-4 at 09:16 ]
Diskette Operating System
Floor 2 Posted 2006-09-06 12:45 ·  中国 广东 云浮 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
Not bad, I support! Especially your spirit!

But the book <PC Interrupt Encyclopedia> provided by QB45 seems to be more detailed, but many are no longer applicable now.
Floor 3 Posted 2007-08-14 10:45 ·  中国 河南 郑州 联通
初级用户
Credits 91
Posts 32
Joined 2007-06-22 16:33
19-year member
UID 92089
Gender Male
Status Offline
Floor 4 Posted 2010-02-10 08:32 ·  中国 天津 电信
新手上路
Credits 8
Posts 33
Joined 2009-11-10 19:45
16-year member
UID 154524
Gender Male
Status Offline
Good stuff
Floor 5 Posted 2010-06-13 02:21 ·  中国 湖北 武汉 教育网
新手上路
Credits 17
Posts 19
Joined 2010-03-22 20:52
16-year member
UID 162805
Gender Male
From 湖北
Status Offline
Brother Guxing, how to use this "interrupt vector table"? Can you explain it?
Forum Jump: