;这个可以了 随便写的 不是很严谨
YFKS SEGMENT
BUF DB 2 DUP(0)
YFKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:YFKS
START:
MOV AX,YFKS
MOV DS,AX
MOV CX,100
MOV AX,0
JIA:
ADD AX,CX
ADC DX,0
LOOP JIA
MOV AH,4CH
INT 21H
CODES ENDS