汇编语言 王爽第二版检测点6.1(2) 麻烦帮我对每条指令注释一下,特别是那循环。 谢谢帮忙

assume cs:codesg

codesg segment

dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h

dw 0,0,0,0,0

start:

mov ax,cs

mov ss,ax

mov sp,1ah

mov ax,0

mov ds,ax

mov bx,0

mov cx,8

s:

push [bx]

pop cs:[bx]

add bx,2

loop s

mov ax,4c00h

int 21h

codesg ends

end start

dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h

dw 0,0,0,0,0,0,0,0,0,0

mov sp,1ah ;只有这里 1ah 就是 1ah=26=8*2+10
其实自己看看就知道了。
温馨提示:内容为网友见解,仅供参考
无其他回答