伪指令.while判断有符号数,却被汇编成判断无符号数,如何修改
data segmentarray dw 1,2,5,8,0,9,22,-1
average dw 0
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
;------------------------
lea si,array
xor ax,ax
xor dx,dx
xor cx,cx
mov bx,[si]
.while (bx>=0);此处被汇编成cmp bx,0 jnb xxx。为什么不是汇编成jge xxx(xxx为add ax,bx地址)
add ax,bx
adc dx,0
inc cx
add si,type word
mov bx,[si]
.endw
div cx
mov average,ax
;-------------------
exit:
mov ax,4c00h
int 21h
code ends
end start