版主,帮我改一个题目,我编译与运行都行,为什么结果不行啊
assume cs:code,ds:data,ss:stack
data segment
A
db 32,44,1,34,56,7,42,8,96,31
data ends
stack segment
db ?
stack ends
code segment
start: mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov bx,0
mov cx,9
mov si,0
mov al,0
s:
push cx
push bx
sub cx,si
mov cx,cx
s3:
mov al,[bx]
cmp al,[bx+1]
ja s1
s1: xchg al,[bx+1]
xchg [bx],al
inc bx
loop s3
inc si
pop bx
pop cx
loop s
mov ax,004ch
int 21h
code ends
end start