[英]What does the instruction LODS DWORD PTR DS:[ESI]?
我有以下汇编说明(您也可以在标题中看到):
LODS DWORD PTR DS:[ESI]
在一个网站上,我发现:
The lods instruction is unique among the string instructions.
You will never use a repeat prefix with this instruction.
The lods instruction copies the byte or word pointed at by ds:si
into the al, ax, or eax register, after which it increments or
decrements the si register by one, two, or four.
但是我不明白要点:我如何确定字节或字在哪个寄存器al,ax或eax中复制。
有人可以进一步向我解释吗
操作的大小决定了目标寄存器是哪个以及ESI寄存器前进了多少。 对于LODS DWORD
,将加载双字(32位)数据,这意味着32位EAX寄存器。 LODS WORD
将为16位到16位AX寄存器中,而LODS BYTE
将为8位AL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.