帮忙看一下这个汇编程序的错误怎么改?急求!!!
DATASEGMENTARY1DB12,10,3,5,-1,7,34,8,9,10ARY2DB14,23,6,-2,1,9,45,21,8,24LENGEQUARY2-A...
DATA SEGMENT
ARY1 DB 12,10,3,5,-1,7,34,8,9,10
ARY2 DB 14,23,6,-2,1,9,45,21,8,24
LENG EQU ARY2-ARY2
SUM DB LENG DUP (?)
NUM DB ?
DATA ENDS
STACK1 SEGMENT PARA STACK
DW 20H DUP(0)
STACK1 ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK1
BEGIN:MOV AX,DATA
MOV DS,AX
MOV CX,LENG
MOV BX,-1
NZERO:INC BX
MOV AL,ARY1[BX]
ADD AL,ARY2[BX]
MOV SUM[BX],AL
LOOPNE NZERO
JZ ZERO
INC BL
ZERO:MOV NUM,BL
MOV AH,4CH
INT 21H
CODE ENDS
END BEGIN
请高手帮忙看一下,谢谢了!!! 展开
ARY1 DB 12,10,3,5,-1,7,34,8,9,10
ARY2 DB 14,23,6,-2,1,9,45,21,8,24
LENG EQU ARY2-ARY2
SUM DB LENG DUP (?)
NUM DB ?
DATA ENDS
STACK1 SEGMENT PARA STACK
DW 20H DUP(0)
STACK1 ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK1
BEGIN:MOV AX,DATA
MOV DS,AX
MOV CX,LENG
MOV BX,-1
NZERO:INC BX
MOV AL,ARY1[BX]
ADD AL,ARY2[BX]
MOV SUM[BX],AL
LOOPNE NZERO
JZ ZERO
INC BL
ZERO:MOV NUM,BL
MOV AH,4CH
INT 21H
CODE ENDS
END BEGIN
请高手帮忙看一下,谢谢了!!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询