Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ARM Assembly language: how do I convert a string from lowercase to uppercase and

ID: 3820778 • Letter: A

Question

ARM Assembly language: how do I convert a string from lowercase to uppercase and make sure there are no spaces, numbers, or special characters Example: Please enter your string: 1!winter
Invalid Entry!
Please enter your string: winter spring
Invalid Entry
Please enter your string: spring
Your capitalized string: SPRING ARM Assembly language: how do I convert a string from lowercase to uppercase and make sure there are no spaces, numbers, or special characters Example: Please enter your string: 1!winter
Invalid Entry!
Please enter your string: winter spring
Invalid Entry
Please enter your string: spring
Your capitalized string: SPRING Example: Please enter your string: 1!winter
Invalid Entry!
Please enter your string: winter spring
Invalid Entry
Please enter your string: spring
Your capitalized string: SPRING

Explanation / Answer

.model small
.8086


.data


.code


read:
mov ah,8
int 21h
cmp al,' '
je write
cmp al,'.'
je write
cmp al,'a'
jl read
cmp al,'Z'
jg convert

convert:
cmp al,'a'
jl read
sub al,20h

write:
mov dl,al
mov ah,2
int 21h
cmp dl,'.'
jne read

exit:
mov ax, 4c00h
int 21h
end read