DATA SEGMENT
A DB 38H,76H,65H,98H,0
B DB 32H,79H,68H,87H,0
DATA ENDS
EDATA SEGMENT
SUM DB 6 DUB(?)
EDATA ENDS
STACK SEGMENT STACK
XYZ DD 20 DUB(?)
TP EQU 20
STACK ENDS
SODS SEGMENT
START: MOV AX,DATA
MOV DS,AX
MOV AX,EDATA
MOV ES,AX
MOV AX,STACK
MOV SS,AX
MOV SP,IP
MOV CX,5
CLC
CLD
LEA SI,A
LEA BX,B
LEA DI,SUM
AAA: LODSB
ADC AL,
DAA
STOSB
INC BX
LOOP AAA
MOV CX,5
MOV SI,SUM
STD
ADD SI,4
MOV AX,ES
MOV DS,AX
AAD:LODSB
CALL ABC
LOOP AAB
MOV AH,4CH
INT 21H
ABC DYOC
MOV DH,AL
SHR AL,4
OR AL,30H
MOV DL,AL
MOV AH,2
INT 21H
AND DH,OFH
OR DH,30H
MOV DL,DH
MOV AH,2
INT 21H
RET
ABC ENDP
CODS ENDS
END START
有2-3处错误,求帮忙改正~
A DB 38H,76H,65H,98H,0
B DB 32H,79H,68H,87H,0
DATA ENDS
EDATA SEGMENT
SUM DB 6 DUB(?)
EDATA ENDS
STACK SEGMENT STACK
XYZ DD 20 DUB(?)
TP EQU 20
STACK ENDS
SODS SEGMENT
START: MOV AX,DATA
MOV DS,AX
MOV AX,EDATA
MOV ES,AX
MOV AX,STACK
MOV SS,AX
MOV SP,IP
MOV CX,5
CLC
CLD
LEA SI,A
LEA BX,B
LEA DI,SUM
AAA: LODSB
ADC AL,
DAA
STOSB
INC BX
LOOP AAA
MOV CX,5
MOV SI,SUM
STD
ADD SI,4
MOV AX,ES
MOV DS,AX
AAD:LODSB
CALL ABC
LOOP AAB
MOV AH,4CH
INT 21H
ABC DYOC
MOV DH,AL
SHR AL,4
OR AL,30H
MOV DL,AL
MOV AH,2
INT 21H
AND DH,OFH
OR DH,30H
MOV DL,DH
MOV AH,2
INT 21H
RET
ABC ENDP
CODS ENDS
END START
有2-3处错误,求帮忙改正~