.MODEL SMALL
.DATA
STR1 DB 0DH,0AH, ' ENTER THE ALPHA: $ '
VAR1 DB 0DH,0AH, ' YOUR ANSWER IS : $ '
X DB ?
.CODE
START PROC
MOV AX,@DATA
MOV DS,AX
MOV DX,OFFSET STR1
MOV AH,09H
INT 21H
MOV CX,7
MOV AH,01H
INT 21H
MOV X,AL
MOV DX,OFFSET VAR1
MOV AH,09H
INT 21H
MOV DL,X
CMP DL,97
JL STOP
CMP DL,122
JG STOP
MOV AH,02H
JMP DISLOOP
MODIFYLOOP:
MOV DL,97
DISLOOP:
JCXZ STOP
INT 21H
INC DL
CMP DL,123
JZ MODIFYLOOP
LOOP DISLOOP
STOP:
; MOV AX,4C00H
; INT 21H
.EXIT
START ENDP
END
;************************************************************************
; OUTPUT
;ENTER THE ALPHA: a
;YOUR ANSWER IS : abcdefg