Q-Write a code to input your nickname (User Input) in capital letter, print it out using small letters. Hint: Input/Output length should be fixed. (if your nickname is 4 letters, then 4 input, if its 3 then 3 input) *

Code:

 .MODEL SMALL

.CODE PROC
MAIN PROC

MOV AH,01H ;FOR INPUT VALUE //INPUT CAPITAL LETTER//ABU
INT 21H ;INPUT


MOV BL,AL ;FOR SAVE DATA

MOV DL,32D ;FOR SPACE


MOV AH,01H ;FOR INPUT VALUE
INT 21H ;INPUT

MOV BH,AL ;FOR SAVE DATA
MOV DL,32D


MOV AH,01H ;FOR INPUT VALUE
INT 21H ;INPUT

MOV CH,AL ;FOR SAVE DATA
MOV DL,32D

MOV AH,02H ;FOR DISPLAY
INT 21H


ADD BL,32D ;FOR VALUE //OUTPUT SMALL LETTER//abu

MOV DL,BL ;FOR VALU COPY

MOV AH,02H ;FOR DISPLAY
INT 21H

ADD BH,32D ;FOR VALUE

MOV DL,BH ;FOR VALU COPY

MOV AH,02H ;FOR DISPLAY
INT 21H



ADD CH,32D ;FOR VALUE

MOV DL,CH ;FOR VALU COPY

MOV AH,02H ;FOR DISPLAY
INT 21H



END