关于repe stosd等命令。。。

javawater 2003-12-31 03:28:42
近日在反汇编代码中发现

repe stosd
repe stosb
repe movsd
repe movsb
setnle al

等命令,四处搜索找不到对这些命令的详细解说,哪位大侠知道麻烦讲解一下,或者提供相关地址,谢谢
...全文
1114 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
gad1star 2004-01-02
  • 打赏
  • 举报
回复
知道了他们是什么的缩写就简单多了。

LODS = Load String
LODSB = Load String by Byte
LODSW = Load String by word
LODSD = Load String by Doubleword

LODS - Load String (Byte, Word or Double)
Usage: LODS src
LODSB
LODSW
LODSD (386+)
Modifies flags: None
Transfers string element addressed by DS:SI (even if an operand is
supplied) to the accumulator. SI is incremented based on the size
of the operand or based on the instruction used. If the Direction
Flag is set SI is decremented, if the Direction Flag is clear SI

is incremented. Use with REP prefixes.


MOVS = Move String
MOVSB = Move String by Byte
MOVSW = Move String by word
MOVSD = Move String by Doubleword

MOVS - Move String (Byte or Word)
Usage: MOVS dest,src
MOVSB
MOVSW
MOVSD (386+)
Modifies flags: None
Copies data from addressed by DS:SI (even if operands are given) to
the location ES:DI destination and updates SI and DI based on the
size of the operand or instruction used. SI and DI are incremented
when the Direction Flag is cleared and decremented when the Direction

Flag is Set. Use with REP prefixes.
W32API 2004-01-02
  • 打赏
  • 举报
回复
repe stosd Fill (E)CX doublewords at ES:[(E)DI] with EAX
repe stosb Fill (E)CX bytes at ES:[(E)DI] with AL
W32API 2004-01-02
  • 打赏
  • 举报
回复
repe stosd
repe stosb

用 AL((E)AX)初始化(填充)数据块

repe movsd
repe movsb

数据块复制

setnle al

SETcc—Set Byte on Condition
0F 9F SETNLE r/m8 Set byte if not less or equal (ZF=0 and SF=OF)

根据 EFLAGS register 标志状态信息设置 r/m8,符合置 1,否则置零。
gad1star 2004-01-02
  • 打赏
  • 举报
回复
STOS - Store String (Byte, Word or Doubleword)
Usage: STOS dest
STOSB
STOSW
STOSD
Modifies flags: None
Stores value in accumulator to location at ES:(E)DI (even if operand
is given). (E)DI is incremented/decremented based on the size of
the operand (or instruction format) and the state of the Direction
Flag. Use with REP prefixes.
csdsjkk 2004-01-01
  • 打赏
  • 举报
回复
repe stosd :
while ecx > 0
eax -> es:[edi]
add edi,4 (sub edi,4)
dec ecx
end while
javawater 2004-01-01
  • 打赏
  • 举报
回复
非也,主要是stosd等,最重要的是和repe和起来用,我已经了解一点,不过不清楚
W32API 2003-12-31
  • 打赏
  • 举报
回复
SETcc—Set Byte on Condition
0F 9F SETNLE r/m8 Set byte if not less or equal (ZF=0 and SF=OF)
W32API 2003-12-31
  • 打赏
  • 举报
回复
你是指 “repe” ? REPE/REPZ

21,496

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧