Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
int 21就在我看到一个电话之前XOR AX, 21CD,只是好奇它的作用。我在 wiki 上找不到这种类型的参数调用http://en.wikipedia.org/wiki/MS-DOS_API
int 21
XOR AX, 21CD
您必须知道 XOR 指令之前寄存器中的内容,因为这只会翻转 1 的位:
0010 0001 1100 1101
如果寄存器最初包含零,则调用随机读取的函数 21。AL 寄存器将通过相同的指令设置为 CD。这是一个谜,因为在我能找到的文档中,这个调用没有使用 AL 寄存器来做任何事情。