实验4 [BX]和loop的使用(第113页)
-------------------------------
(1) 编程,向内存0:200~0:23F依次传送数据0~63(3FH)。
程序如下:
assume cs:codesg
codesg segment
mov ax,0020h
mov ds,ax
mov bx,0
mov dl,0
mov cx,40h
s: mov [bx],dl
inc dl
inc bx
loop s
mov ax,4c00h
int 21h
codesg ends
end
=====================================================================================
以上的传说中的答案
可是,对于实验四的第一题,大家看后面有一个inc dl,这样那么dx中的数据是不是也就要改变了
从而dx数据改变,即段地址改变,那么还用mov [bx],dl的时候的段地址就不是0200h了,也就是这里有问题?? 请诸位赐教!!!!!! |