求程序 : 将偏移地址为1000H到2000H的内存内容设置为0。
------解决方案--------------------------------------------------------
.model small
.stack
.code
start:
mov ax,0 ;假设段地址是0
mov es,ax
cld
mov al,0
mov di,1000h
mov cx,500 ;改为500H, 设为500次,方便测试。
rep stosw ;用这个,比较慢
nop
mov ax,4c00h
int 21h
end start ;masm5.0通过测试