汇编语言程序中将CS和DS设置相同有什么用啊?
****:0100movax,cs****:0102movds,ax****:0104movbx,100****:0107movax,[150]****:010Aaddb...
**** :0100 mov ax , cs
**** :0102 mov ds , ax
**** :0104 mov bx , 100
**** :0107 mov ax , [150]
**** :010A add bx , ax
**** :010C push bx
**** :010D mov al , [bx]
**** :010F add al , [bx+1]
**** :0112 mov si , 2
**** :0116 add al , [bx+si]
**** :0117 mov ah , 0
**** :0119 push ax
**** :011A mov ch , 0
**** :011C mov cl , [bx+si+1]
**** :011F add ax , cx
**** :0121 push ax
**** :0122 pop bx
**** :0123 pop cx
**** :0124 pop ax 展开
**** :0102 mov ds , ax
**** :0104 mov bx , 100
**** :0107 mov ax , [150]
**** :010A add bx , ax
**** :010C push bx
**** :010D mov al , [bx]
**** :010F add al , [bx+1]
**** :0112 mov si , 2
**** :0116 add al , [bx+si]
**** :0117 mov ah , 0
**** :0119 push ax
**** :011A mov ch , 0
**** :011C mov cl , [bx+si+1]
**** :011F add ax , cx
**** :0121 push ax
**** :0122 pop bx
**** :0123 pop cx
**** :0124 pop ax 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询