;对冒泡排序的改进 data segment number dw 10,3,5,7,8,6,11,13,9,1,15 data ends prognam segment bubble proc far assume cs:prognam,ds:data start: mov ax,data mov ds,ax lea di,number push di
mov si,10 push si
loop1: dec si mov cx,si mov bx,01h
loop2: add di,2 cmp di,16h jz loop3 mov ax,[di] cmp [di+2],ax jae loop2 xchg ax, [di+2] mov [di],ax sub bx,bx shr di,1 mov si,di shl di,1 jmp loop1 loop3: cmp bx,1 je exit exit: pop di pop si jmp printit printit: add di,2 mov dl,[di] mov ah,2 int 21h dec si jnz printit ret bubble endp prognam ends end start 怎样才能把内容送到si中,我得为什么不正确,请高手们帮忙,谢谢了