【发布时间】:2014-05-16 18:12:08
【问题描述】:
我有以下汇编指令(你也可以在标题中看到):
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 中的哪个。
谁能详细解释一下
【问题讨论】:
-
另外,您不使用 rep 前缀的原因是您需要在重复之前以某种方式检查加载的值。
标签: assembly