汇编 STOSB, STOSW, STOSD指令

知识点:

 汇编指令  STOSB STOSW STOSD

一、汇编指令STOSB
004113AC    8DBD B4FEFFFF    LEA EDI,DWORD PTR SS:[EBP-14C]
004113B2    B9 53000000         MOV ECX,53
004113B7    B8 CCCCCCCC      MOV EAX,CCCCCCCC
004113BC    F3:AB              REP STOS DWORD PTR ES:[EDI]
004113BE    C785 78FFFFFF 0>   MOV DWORD PTR SS:[EBP-88],1

   

二、STOSD
     rep stosd //REP STOS DWORD PTR ES:[EDI]
     用EAX的值 填充EDI//每次ECX值减1 EDI的值 增4

 

posted @ 2017-02-07 15:12  whzym111  阅读(3336)  评论(0编辑  收藏  举报