
汇编语言,帮忙看看这段程序的错误在哪里?生成不了.obj
codesegmentorg100hassumecs:code,ds:codemain:jmpstartarraydw1234h,5673h,7fffh,8000h,od...
code segment
org 100h
assume cs:code,ds:code
main: jmp start
array dw 1234h,5673h,7fffh,8000h,odffh
dw 0ab5h,0369h,005fh,5634h,9069h
count equ $-array
start: mov cx,count
shr cx,1
dec cx
mov bl,-1
again: mov dx,cx
and b1,b1
je exit
xor bl,bl
xor si,si
again1: mov ax,array[si]
cmp ax,array[si+2]
jle nchg
xchg array[si+2],ax
mov array[si],ax
mov bl,-1
nchg: inc si
inc si
dec dx
jnz again1
loop again
exit: int 20h
code ends
end main 展开
org 100h
assume cs:code,ds:code
main: jmp start
array dw 1234h,5673h,7fffh,8000h,odffh
dw 0ab5h,0369h,005fh,5634h,9069h
count equ $-array
start: mov cx,count
shr cx,1
dec cx
mov bl,-1
again: mov dx,cx
and b1,b1
je exit
xor bl,bl
xor si,si
again1: mov ax,array[si]
cmp ax,array[si+2]
jle nchg
xchg array[si+2],ax
mov array[si],ax
mov bl,-1
nchg: inc si
inc si
dec dx
jnz again1
loop again
exit: int 20h
code ends
end main 展开
2个回答
展开全部
odffh改为0dffh
把所有的bl全部改为bx就可以了你试试吧
把所有的bl全部改为bx就可以了你试试吧
追问
试了,不行。。。
追答
可以啊,我都是刚刚运行通过了的啊,你是用哪个软件运行的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询