帮忙看个简单程序,干了什么事,考试中,快回.
DATA SEGMENT D1 DB 2,-1,-3,5,6,9,18,-29,-72,8,122,-31,95,76,91,-2
RS DB ?
DATA ENDS
STACK SEGMENT STACK
DW 100H DUP(?)
STACK ENDS
CODE SEGMENT
MAIN PROC FAR
ASSUME CS:CODE,DS:DATA,SS:STACK
START: PUSH DS
SUB AX,AX
PUSH AX
MOV AX,DATA
MOV DS,AX
LEA BX,D1
MOV CX,LENGTH D1
MOV DL,0
LOP1: MOV AL,[BX]
CMP AL,0
JGE JUS
INC DL
JUS: INC BX
DEC CX
JNZ LOP1
MOV RS,DL
ADD DL,30H
MOV AH,2
INT 21H
RET
MAIN ENDP
CODE ENDS
END START