主题:请高手指教请教!!
data segment
date dw 1122h,3434h,5656h,200h,1245h
num db ($-data)/2
data ends
code segment
main proc far
assume cs:code,ds:data
start:
push ds
mov ax,0h
push ax
mov ax,date
mov ds,ax
mov dx,0h
mov cx,word ptr[num]
mov si,0h
iso:
mov bx,word ptr data[si]
shr bx,1h
jnc adddx
adddx:
add dx,1h
cmp dx,1h
je firstaxvalue
compare:
mov bx,word ptr data[si]
cmp bx,ax
jge commoncontrol
mov ax,bx
commoncontrol:
add si,2h
loop iso
jmp exit
firstaxvalue:
mov ax,word ptr data[si]
jmp compare
exit:
mov dx,ax
mov ah,2
int 21h
ret
main endp
code ends
end start
为什么不会显示出来呢?请高手指教一下,小妹先谢过了。[em12]
date dw 1122h,3434h,5656h,200h,1245h
num db ($-data)/2
data ends
code segment
main proc far
assume cs:code,ds:data
start:
push ds
mov ax,0h
push ax
mov ax,date
mov ds,ax
mov dx,0h
mov cx,word ptr[num]
mov si,0h
iso:
mov bx,word ptr data[si]
shr bx,1h
jnc adddx
adddx:
add dx,1h
cmp dx,1h
je firstaxvalue
compare:
mov bx,word ptr data[si]
cmp bx,ax
jge commoncontrol
mov ax,bx
commoncontrol:
add si,2h
loop iso
jmp exit
firstaxvalue:
mov ax,word ptr data[si]
jmp compare
exit:
mov dx,ax
mov ah,2
int 21h
ret
main endp
code ends
end start
为什么不会显示出来呢?请高手指教一下,小妹先谢过了。[em12]