我在变量中分配了一些值
ar db 107,106,105,104,103,102,101,100,99,98
也不运行字符串
msg db "this is not printed by tasm ","$"
但这是在emu8086模拟器上运行的实际代码
冒泡排序
data segment
ar db 107,106,105,104,103,102,101,100,99,98
ends
code segment
start:
assume cs:code,ds:data
mov ax, data
mov ds, ax
mov es, ax
mov cl,00h
lb1:
mov ch,09h
sub ch,cl
mov si,0
lb2:
mov dl,ar[si]
mov dh,ar[si+1]
cmp dl,dh
jle finish
mov ar[si],dh
mov ar[si+1],dl
finish:
inc si
dec ch
cmp ch,00
jg lb2
inc cl
cmp cl,09h
jl lb1
mov cx,10
mov si,0
lb3:
mov dl,ar[si]
mov ah,02h
int 21h
inc si
loop lb3
mov ax, 4c00h
int 21h
ends
end start
那是什么问题我无法识别这个感谢您的支持请我需要结果不要偷懒