+ -
当前位置:首页 → 问答吧 → 有什么方法能快速清除内存呢?

有什么方法能快速清除内存呢?

时间:2011-05-27

来源:互联网

Assembly code

c:
   mov ecx,0fffh
   mov ebx,ecx
   mov byte ptr ds:[ebx],0
   loop c


这样速度很慢,差点假死
我是在DOS里面运行的.

作者: WJN92   发布时间: 2011-05-27

cld
mov edi,0
xor eax,eax
mov ecx,123
rep stos

作者: Lactoferrin   发布时间: 2011-05-27