Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/286.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Assembly 什么是;int 21h“;在组装中是什么意思?_Assembly_System Calls_Interrupt_Dos_X86 16 - Fatal编程技术网

Assembly 什么是;int 21h“;在组装中是什么意思?

Assembly 什么是;int 21h“;在组装中是什么意思?,assembly,system-calls,interrupt,dos,x86-16,Assembly,System Calls,Interrupt,Dos,X86 16,我刚开始学习汇编语言,我想知道命令int21h是什么意思。例如: mov ah,01h int 21h 它应该从用户那里读取一个键。int21h意味着调用中断处理程序0x21,它是DOS函数调度器。“mov ah,01h”用0x01设置ah,0x01是中断中带有回声处理器的键盘输入。见: INT 21H将生成软件中断0x21(十进制33),导致执行中断表中第34个向量所指向的函数,这通常是一个MS-DOS API调用。这意味着您正在使用中断类型21的函数01h。。。 其中01h如您所说是从

我刚开始学习汇编语言,我想知道命令
int21h
是什么意思。例如:

 mov ah,01h
 int 21h

它应该从用户那里读取一个键。

int21h
意味着调用中断处理程序0x21,它是DOS函数调度器。“mov ah,01h”用0x01设置ah,0x01是中断中带有回声处理器的键盘输入。见:


INT 21H将生成软件中断0x21(十进制33),导致执行中断表中第34个向量所指向的函数,这通常是一个MS-DOS API调用。

这意味着您正在使用中断类型21的函数01h。。。 其中01h如您所说是从标准输入中读取字符,使用echo,结果存储在AL中。 如果键盘缓冲区中没有字符,则函数将等待,直到按下任何键。 它属于21h类型的各种interput表,因此代码行与您提到的类似