哪个 x86 寄存器表示 movsb 指令中的源位置?
哪个 x86 寄存器表示 movsb 指令中的源位置?
What x86 register denotes source location in movsb instruction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
哪个 x86 寄存器表示 movsb 指令中的源位置?
What x86 register denotes source location in movsb instruction?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
在 32 位模式下,
esi
。具体来说,
movsb
将一个字节从ds:esi
复制到es:edi
,然后递增或递减两个esi
和 edi 减 1,具体取决于方向标志 (DF)。英特尔的手册对每条指令都有详细的参考条目。
PDF 的 HTML 片段包含 和
movs
,以及
rep movs
。
In 32-bit mode,
esi
.In specific,
movsb
copies one byte fromds:esi
toes:edi
, then increments or decrements bothesi
andedi
by 1, depending on the direction flag (DF).Intel's manuals have a detailed reference entry for every instruction.
An HTML scrapes of the PDF has and entry for
movs
, and forrep movs
.如何从手册中提取该信息
现在您已经登录 osdev.org,是时候通过实际学习来偿还您的道德债务了。 :-)
英特尔手册第 2 卷指令集参考 - 325383-056US 2015 年 9 月 部分“MOVS/ MOVSB/MOVSW/MOVSD/MOVSQ - 将数据从字符串移动到字符串”说:
最小测试程序
最后,您必须编写一个使用该指令的最小程序来查看您是否正确理解它:
带有断言的可运行版本 GitHub 上 。
How to extract that information from the manual
Now that you've logged into osdev.org, it's time to pay your moral debt by actually learning it. :-)
Intel Manual Volume 2 Instruction Set Reference - 325383-056US September 2015 section "MOVS/MOVSB/MOVSW/MOVSD/MOVSQ—Move Data from String to String" says:
Minimal test program
Finally, you must make a minimal program that uses the instruction to see if you've understood it correctly:
Runnable version of this with assertions on GitHub.