算术指令
帮忙看看是哪里错了,只是运行的时候没有结果:原式子为:f=(x+(x*y)+z+1234)/x 谢谢了,D_SEG SEGMENT
X DW 2420
Y DW 198
Z DW 342
f dw ?
NUM DW 2 DUP(?)
D_SEG ENDS
C_SEG SEGMENT
ASSUME CS:C_SEG,DS:D_SEG
START:MOV Ax,D_SEG
MOV Ds,Ax
MOV Ax,X
IMUL Y
MOV Cx,Dx
MOV Bx,Ax
MOV Ax,Z
MOV Dx,0
ADD Bx,Ax
ADC Cx,Dx
ADD Bx,1234
ADC Cx,0
MOV Ax,X
ADD Ax,Bx
ADC Dx,Cx
IDIV X
MOV NUM,Ax
MOV [f+2],Dx
MOV AH,4CH
INT 21H
C_SEG ENDS
END START