中断向量表(xjmxjm1234整理)
所谓中断就是CPU暂停当前程序的执行,转而执行处理紧急事务的程序,并在该事务处理完后能自动恢复执行原先程序的过程。
00H —“0”作除数
01H —单步中断
02H —非屏蔽中断(NMI)
03H —断点中断
04H —算术溢出错误
05H —打印屏幕和BOUND越界
06H —非法指令错误
07H —处理器扩展无效
08H —时钟中断
09H —键盘输入
0AH —保留
0BH —通信口(COM2:)
0CH —通信口(COM1:)
0DH —保留
0EH —磁盘驱动器输入/输出
0FH —保留
10H —显示服务
00H —磁盘系统复位 0EH —读扇区缓冲区
01H —读取磁盘系统状态 0FH —写扇区缓冲区
02H —读扇区 10H —读取驱动器状态
03H —写扇区 11H —校准驱动器
04H —检验扇区 12H —控制器RAM诊断
05H —格式化磁道 13H —控制器驱动诊断
06H —格式化坏磁道 14H —控制器内部诊断
07H —格式化驱动器 15H —读取磁盘类型
08H —读取驱动器参数 16H —读取磁盘变化状态
09H —初始化硬盘参数 17H —设置磁盘类型
0AH —读长扇区 18H —设置格式化媒体类型
0BH —写长扇区 19H —磁头保护
0CH —查寻 1AH —格式化ESDI驱动器
11H —读取设备配置
12H —读取常规内存大小(返回值AX为内存容量,以K为单位)
13H —直接磁盘服务
00H —磁盘系统复位 0EH —读扇区缓冲区
01H —读取磁盘系统状态 0FH —写扇区缓冲区
02H —读扇区 10H —读取驱动器状态
03H —写扇区 11H —校准驱动器
04H —检验扇区 12H —控制器RAM诊断
05H —格式化磁道 13H —控制器驱动诊断
06H —格式化坏磁道 14H —控制器内部诊断
07H —格式化驱动器 15H —读取磁盘类型
08H —读取驱动器参数 16H —读取磁盘变化状态
09H —初始化硬盘参数 17H —设置磁盘类型
0AH —读长扇区 18H —设置格式化媒体类型
0BH —写长扇区 19H —磁头保护
0CH —查寻 1AH —格式化ESDI驱动器
0DH —硬盘系统复位
14H —串行口服务
00H —初始化通信口 03H —读取通信口状态
01H —向通信口输出字符 04H —扩充初始化通信口
02H —从通信口读入字符
15H —杂项系统服务
00H —开盒式磁带机马达 85H —系统请求(SysReq)键
01H —关盒式磁带机马达 86H —延迟
02H —读盒式磁带机 87H —移动扩展内存块
03H —写盒式磁带机 88H —读取扩展内存大小
0FH —格式化ESDI驱动器 89H —进入保护模式
21H —读/写自检错误记录90H —设备等待
4FH —键盘截听 91H —设备加电自检
80H —设备打开 C0H —读取系统环境
81H —设备关闭 C1H —读取扩展BIOS数据区地址
82H —进程终止 C2H —鼠标图形
83H —事件等待 C3H —设置WatcHdog超时
84H —读游戏杆 C4H —可编程选项选择
16H —键盘服务
00H,10H —从键盘读入字符 03H —设置重复率
01H,11H —读取键盘状态 04H —设置键盘点击
02H,12H —读取键盘标志 05H —字符及其扫描码进栈
17H —并行口服务
00H —向打印机输出字符
01H —初始化打印机端口
02H —读取打印机状态
18H —ROM BASIC
19H —重启动系统
1AH —时钟服务
00H —读取时钟“滴答”计数 06H —设置闹钟
01H —设置时钟“滴答”计数 07H —闹钟复位
02H —读取时间 0AH —读取天数计数
03H —设置时间 0BH —设置天数计数
04H —读取日期 80H —设置声音源信息
05H —设置日期
1BH —CTRL+BREAK处理程序
1CH —用户时钟服务
1DH —指向显示器参数表指针
1EH —指向磁盘驱动器参数表指针
1FH —指向图形字符模式表指针
20H —终止程序运行
21H —DOS功能调用
1.字符功能调用类
01H、07H和08H —从标准输入设备输入字符 06H —控制台输入/输出
02H —字符输出 09H —显示字符串
03H —辅助设备的输入 0AH — 键盘缓冲输入
04H —辅助设备的输出 0BH —检测输入状态
05H —打印输出 0CH —清输入缓冲区的输入功能
2.目录控制功能
39H —创建目录 3BH —设置当前目录
3AH —删除目录 47H —读取当前目录
3.磁盘管理功能
0DH —磁盘复位 2EH —设置校验标志
0EH —选择磁盘 36H —读取驱动器分配信息
19H —读取当前驱动器 54H —读取校验标志
1BH, 1CH —读取驱动器数据
4.文件操作功能
3CH —创建文件 4FH —查找下一个文件
3DH —打开文件 56H —文件换名
3EH —关闭文件 57H —读取/设置文件的日期和时间
41H —删除文件 5AH —创建临时文件
43H —读取/设置文件属性 5BH —创建新文件
45H —复制文件句柄 67H —设置文件句柄数(最多文件数)
46H —重定义文件句柄 6CH —扩展的打开文件功能(打开、创建或替换文件)
4EH —查找到第一个文件
5.文件操作功能
0FH —打开文件 16H —创建文件
10H —关闭文件 17H —文件换名
11H、12H —查找第一个或下一个文件 23H —读取文件的大小
13H —删除文件 29H —分析文件名
6.记录操作功能
1AH —设置数据传输区地址 42H —设置文件指针
2FH —读取数据传输区地址 5CH —文件区域加锁或解锁
3FH —读文件或设备 68H —提交文件缓冲区数据
40H —写文件或设备
7.记录操作功能
14H —顺序读 24H —设置相对记录数
15H —顺序写 27H —随机读块
21H —随机读 28H —随机写块
22H —随机写
8.内存分配功能
48H —分配内存块 4AH —重定义内存块的大小
49H —释放内存块 58H —读取/设置内存分配策略
9.系统功能
25H —设置中断向量 51H —读取程序段前缀地址
30H —读取MS-DOS版本号 59H —读取扩展的错误信息
33H —读取/设置Break标志 5EH —读取机器名,读取/设置打印机配置
34H —读取InDOS标志的地址 5FH —设备重定向
35H —读取中断向量 63H —读取前导字节表
38H —读取/设置国家信息 65H —读取扩展的国家信息
44H —IOCTL(I/O控制) 66H —读取/设置代码页
50H —设置程序段前缀地址 5D0AH —设置扩展的错误信息
10.进程控制功能
00H —终止进程 4CH —带返回码方式的终止进程
26H —创建新的程序段前缀 4DH —读取返回代码
31H —终止并驻留 62H —读取PSP地址
4BH —执行程序
11.时间和日期功能
2AH —读取日期 2CH —读取时间
2BH —设置日期 2DH —设置时间
22H —终止处理程序的地址
23H —Ctrl+C处理程序
24H —致命错误处理程序
25H —读磁盘扇区(忽略逻辑结构)
26H —写磁盘扇区(忽略逻辑结构)
27H —终止,并驻留在内存
28H-2EH —DOS保留
2FH —多重中断服务
30H-32H —DOS保留
33H —鼠标功能中断
00H —初始化鼠标 15H —读取鼠标驱动器状态的缓冲区大小
01H —显示鼠标指针 16H —存储鼠标驱动器状态
02H —隐藏鼠标指针 17H —重装鼠标驱动器状态
03H —读取鼠标位置及其按钮状态 18H —为鼠标事件设置替换处理程序
04H —设置鼠标指针位置 19H —读取替换处理程序的地址
05H —读取鼠标按键信息 1AH —设置鼠标的灵敏度
06H —读取鼠标按钮释放信息 1BH —读取鼠标的灵敏度
07H —设置鼠标水平边界 1CH —设置鼠标中断速率
08H —设置鼠标垂直边界 1DH —为鼠标指针选择显示页
09H —设置图形鼠标形状 1EH —读取鼠标指针的显示页
0AH —设置本文鼠标形状 1FH —禁止鼠标驱动程序
0BH —读取鼠标移动计数 20H —启动鼠标驱动程序
0CH —为鼠标事件设置处理程序 21H —鼠标驱动程序复位
0DH —允许光笔仿真 22H —设置鼠标驱动程序信息语言
0EH —关闭光笔仿真 23H —读取语种
0FH —设置鼠标计数与象素比 24H — 读取鼠标信息
10H —设置鼠标指针隐藏区域 25H —读取鼠标驱动程序信息
13H —设置倍速的阈值 26H —读取最大有效坐标
14H —替换鼠标事件中断
34H-3FH —DOS保留
40H-7FH —未用
80H-85H —BASIC保留
86H-F0H —BASIC解释程序用
F1H-FFH —未用
Last edited by xjmxjm1234 on 2006-9-4 at 09:16 ]
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 ]