汇编串的一个问题

来源:百度知道 编辑:UC知道 时间:2024/07/04 06:35:32
buf db ‘hello$’ 我想把buf的复制到ff中,可我写的程序到不到目地
ff db 10,10 dup(?) 可以帮我写哈嘛 大虾 谢了哦

.....
lea si,buf
lea di,ff
cld
rep stosb

..

在DEBUG下执行,执行后可以用 d ds:[ff]查看结果

.model tiny
.code
.startup

push cx
push si
push di

mov cx,7
lea si,buf
lea di,ff
cld
rep movsb

pop di
pop si
pop cx

int 3

buf db "hello$"
ff db 10,10 dup(?)

end