Convert Letter :https://codingatharva.blogspot.com/2019/01/11-program-to-convert-capital-letter-in.html
Code:
; Program to convert Lower Case String to Upper Case String
.MODEL SMALL
.STACK 100H
.DATA
LSTR DB 'codingatharva $'
USTR DB 20 DUP('$')
.CODE
MOV AX , @DATA ; Initializing Data Segment
MOV DS , AX
; Printing String in Lower Case
MOV AH , 09H
LEA DX , LSTR
INT 21H
; Printing New Line
MOV AH , 2
MOV DL , 0DH
INT 21H
MOV DL , 0AH
INT 21H
; Converting Lower to Upper Case
LEA SI , LSTR
LEA DI , USTR
UP:
MOV AL , [SI]
CMP AL , '$'
JE EX
SUB AL , 20H
MOV [DI] , AL
INC SI
INC DI
JMP UP
EX:
; Printing String in Upper Case
MOV AH , 09H
LEA DX , USTR
INT 21H
MOV AH , 4CH ; Service Routine for Exit
INT 21H
END
Code:
; Program to convert Lower Case String to Upper Case String
.MODEL SMALL
.STACK 100H
.DATA
LSTR DB 'codingatharva $'
USTR DB 20 DUP('$')
.CODE
MOV AX , @DATA ; Initializing Data Segment
MOV DS , AX
; Printing String in Lower Case
MOV AH , 09H
LEA DX , LSTR
INT 21H
; Printing New Line
MOV AH , 2
MOV DL , 0DH
INT 21H
MOV DL , 0AH
INT 21H
; Converting Lower to Upper Case
LEA SI , LSTR
LEA DI , USTR
UP:
MOV AL , [SI]
CMP AL , '$'
JE EX
SUB AL , 20H
MOV [DI] , AL
INC SI
INC DI
JMP UP
EX:
; Printing String in Upper Case
MOV AH , 09H
LEA DX , USTR
INT 21H
MOV AH , 4CH ; Service Routine for Exit
INT 21H
END