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

A company purchased $1,800 of merchandise on July 5 with terms 2/10, n/30. On July 7, it returned $200 worth of merchandise. On July 12, it paid the full amount
In the figure, is divided into equal parts. The coordinates of point A are (2, 4), and the coordinates of point B are (10, 6). Match each pair of coordinates t
Sadie the dog is sitting on the roof of his doghouse, 4.5 ft off the ground. He is watching a cat that is 16 ft away from the base of the doghouse. What is the
The first car has a fuel efficiency of 35 miles per gallon of gas and the second has a fuel efficiency of 15 miles per gallon of gas. During one particular week
Your sock drawer in all mixed up! You have 7 white socks, 6 black socks, 3 blue socks, and 5 socks with cool designs (like pineapples, flamingos, and palm trees
George’s cubicle at work is spotless. Every item on his desk is arranged according to how frequently he needs it. He gets agitated if something is moved or rear
Match the following. (1) (ha) a unit of measure equal to 2.5 acres or 10,000 square meters (2) reduced ability of the soil to support life (3) a small tropical
Laz Chance wears roller blades and headphones when he is at work at the Squishy Things Toy Company. He is a product packer. The headphones give him computer-gen
Express the freezing point of water (0°C), the boiling point of water (100°C), and the range spanned by the two temperatures using the Kelvin scale.
Porter Co. is analyzing two projects for the future. Assume that only one project can be selected. Project X Project Y Cost of machine $ 68,000 $ 60,000 Net cas