[求助]请大侠助小女子一忙sos
小女子就是不明白自编程序出错在哪?为何dx在循环一次后,会全为0?题目是:求y=(((3x+5)x+6)x+4)x+2
datarea segment
x dw 5
y dw ?
a dw 3,5,5,6,5,4,5,2
b dw 00aah
datarea ends
prognam segment
main proc far
assume cs:prognam,ds:datarea
start:
push ds
sub ax,ax
push ax
mov ax,datarea
mov ds,ax
mov bx,0
mov cx,8
mov dx,b
mov ax,x
next:
shr dx,1
jc addtract
mul a[bx]
jmp short result
addtract:
add ax,a[bx]
result:
add bx,2
mov y,ax
loop next
ret
main endp
prognam ends
end start
请大家帮帮忙