注册 登录
编程论坛 汇编论坛

向内存0:200-0:2ff依次传送数据0-63,只用9条指令

hustluojiang 发布于 2013-04-16 11:53, 884 次点击
1 assume cs:codesg
codesg segment
mov ax,0020h
mov ds,ax
mov bx,0
mov cx,40h
 L: mov ds:[bx],bl
inc bx
loop L

mov ax,4c00h
int 21h
codesg ends
end

2
assume cs:codesg
codesg segment
mov ax,0020h
mov ds,ax
mov bl,0
mov cx,40h
 L: mov ds:[bl],bx
inc bl
loop L

mov ax,4c00h
int 21h
codesg ends
end

这是我写得两个,都能运行,也能赋值。但对于红色的部分,有没有什么不同啊?意思完全一样吗?求大神指点。先谢了
1 回复
#2
hu9jj2013-04-16 20:37
没有看出什么问题啊。

[ 本帖最后由 hu9jj 于 2013-4-16 20:38 编辑 ]
1