问题
填空题
阅读下面的程序,请填写空白处的语句,并且回答程序后面的问题:
DSEG SEGMENT
ARR DB 45,21,79, 52, 17, 96
CNT EQU $-ARR
DSEG ENDS
SSEG SEGMENT STACK
DB 60 DUP()
SSEG ENDS
CSEG SEGMETN
Assume CS: CSEG, DS: DSEG, SS: SSEG
CSEG ENDS
MAIN PROC FAR
START: PUSH DS
MOV Ax, 0
PUSH AX
MOV AX, DSEG
MOV DS, Ax
MOV DL, 1
LP1: CMP DL, O
JE FINISH
XOR DL, DL
MOV CX,CNT
DEC CX
MOV SI, CNT-1
LP2: MOV AL, ARR [SI]
CMP AL, ARR [SI-1]
JAE NEXT
XCHG ARR [SI-1],AL
MOV ARR[SI],AL
MOV DL, 1
NEXT: DEC SI
LOOP LP2
JMP 【6】
FINISH:RET
MAIN ENDP
CSEG ENDS
END START
答案
参考答案:LP1
解析: 到LP1处继续比较。