Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the user to enter a string which is subsequently displayed in uppercase. It is important to first ensure that string to be converted is in the a-z range. The program does not recognize any space, symbols or any kind of punctuation marks. Any time the user enters any of this character the program is going to repeatedly ask for the valid string.

An example execution of your program could be:
Please enter your string: 1winter
Invalid Entry!
Please enter your string: summer
Your capitalized string:SUMMER

Respuesta :

Answer:

try this

Explanation:

MSG1 DB 10,13,'enter any string:-

Otras preguntas

MSG2 DB 10,13,'converted string is:-

Otras preguntas

P1 LABEL BYTE

M1 DB 0FFH

L1 DB?

P11 DB 0FFH DUP<'

Otras preguntas

>

DATA ENDS

DISPLAY MARCO MSG

MOV AH,9

LEA DX,MSG

INT 21H

ENDM

CODE SEGMENT

ASSUME CS: CODE,DS:DATA

START:

MOV AX,DATA

MOV DS,AX

DISPLAY MSG1

LEA DX,P1

MOV AH,0AH

INT 21H

DISPLAY MSG2

LEA SI,P1

MOV CL,L1

MOV CH,0

CHECK:

CMP[SI],61H

JB DONE

CMP[SI],5BH

UPR: SUB[SI],20H

DONE: INC SI

LOOP CHECK

DISPLAY P11

MOV AH,4CH

INT 21H

CODE ENDS

END START

Otras preguntas

Use K-map to minimize the following Boolean function: F = m0+ m2 + m3 + m5 + m6 + m7 + m8 + m9 + m10 + m12 + m13 + m15 In your response, provide minterms used i
A pharmaceutical company proposes a new drug treatment for alleviating symptoms of PMS (premenstrual syndrome). In the first stages of a clinical trial, it was
In the past, the mean score of the seniors at North High ACT exam has been 20. This year a special preparation course is offered, and all 120 seniors planning t
Las tendencias que se observan en el arte y la cultura después de la revolución rusa
X Assessment Brief Individual Report Assignment.pdf - Adobe Acrobat Reader DC (64-bit) File Edit View Sign Window Help Home Tools Assessment Brief In... X Sign
Khoi has a total of $600 invested in two accounts. The accounts earn 5% and 10% simple interest. The interest due to Khoi after one year is $49. How many dollar
An echo sounder (SONAR) directly measures the density of seawater the direction of movement of an ocean current the depth of the ocean the salinity of seawater
Ricardian Equivalence VS Government with Money This exercise will show you the difference between a government that can attempt to stimulate the economy by fina
A spring with a spring constant of 8.0 N/m is compressed to 20 cm. If the spring is uncompressed initially, then the work done is 0.12 J.0.16 J.0.19 J.0.22 J.0.
What other polygon do you see in the design? What is the polygon with the most number of sides that you can find in this design?