user' DB 0DH,0AH,'exit' DB 0DH,0AH,'quit' DB 0DH,0AH,'text','$' REPLACE DB 'disk' DATAS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DATAS,ES:DATAS START: MOV AX,DATAS MOV DS,AX MOV ES,AX LEA DX,BUF MOV AH,0AH INT 21H LEA SI,BUF[2] LEA DI,LIB[2] MOV BX,DI MOV CX,10 L: CLD PUSH CX MOV CX,4 REPZ CMPSB JNZ N POP CX MOV SI,BX LEA DI,REPLACE MOV CX,4 M: MOV AL,[DI] MOV [SI],AL INC DI INC SI LOOP M JMP EXIT N: ADD BX,6 MOV DI,BX LEA SI,BUF[2] LOOP L EXIT: LEA DX,LIB MOV AH,09H INT 21H MOV AH,4CH INT 21H CODES ENDS END START 9.现有一组字符串为 ram,yes,red,the,get,for,and,key,not,may ,请编写程序将他们按 ASCII 大小排序,并在显示器上显示。 DATA SEGMENT LIB DB 'ram',0DH,0AH DB 'yes',0DH,0AH DB 'red',0DH,0AH DB 'the',0DH,0AH DB 'get',0DH,0AH DB 'for',0DH,0AH DB 'and',0DH,0AH DB 'key',0DH,0AH DB 'not',0DH,0AH DB 'may',0DH,0AH,'$' DATA ENDS