INT 10H
INT 10H 是由 BIOS 对屏幕及显示器所提供的服务程序,而后倚天公司针对倚天中文提供了许多服务程序,这些服务程序也加挂在 INT 10H 内。使用 INT 10H 中断服务程序时,先指定 AH 寄存器为下表编号其中之一,该编号表示欲调用的功用,而其他寄存器的详细说明,参考表后文字,当一切设定好之后再调用 INT 10H。
汇编--INT 10H功能 - MagiCube - 博客园 (cnblogs.com)
Linux System Call
x86 (32-bit)
Number | Syscall Name | %eax | arg0 (%ebx) | arg1 (%ecx) | arg2 (%edx) | arg3 (%esi) | arg4 (%edi) | arg5 (%ebp) |
---|---|---|---|---|---|---|---|---|
0 | restart_syscall | 0x00 | - | - | - | - | - | - |
1 | exit | 0x01 | int error_code | - | - | - | - | - |
2 | fork | 0x02 | - | - | - | - | - | - |
3 | read | 0x03 | unsigned int fd 置源文件 | char *buf 置为在 .bss 节中创建的变量的地址。 | size_t count 置为最大内存字节数(以字节为单位) | - | - | - |
4 | write | 0x04 | unsigned int fd | const char *buf | size_t count | - | - | - |
5 | open | 0x05 | const char *filename | int flags | umode_t mode | - | - | - |
6 | close | 0x06 | unsigned int fd | - | - | - | - | - |
7 | waitpid | 0x07 | pid_t pid | int *stat_addr | int options | - | - | - |
8 | creat | 0x08 | const char *pathname | umode_t mode | - | - | - | - |
9 | link | 0x09 | const char *oldname | const char *newname | - | - | - | - |
10 | unlink | 0x0a | const char *pathname | - | - | - | - | - |
11 | execve | 0x0b | const char *filename | const char const argv | const char const envp | - | - | - |
12 | chdir | 0x0c | const char *filename | - | - | - | - | - |
37 | kill | 0x25 | pid_t pid | int sig |