1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
LuckyWell [14K]
4 years ago
15

Your assignment is to write an assembly language program which read a string and print it in uppercase. This program asks the us

er 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:________
Computers and Technology
1 answer:
-BARSIC- [3]4 years ago
4 0

Answer:

Check the explanation

Explanation:

.data

prompt: .asciiz "Please enter your string :"

result_str: .asciiz "\nYour captalized string :"

error_prompt: .asciiz "\nInvalid Entry !"

buffer: .space 20

.text

.globl __start

__start:

ASKING_STR:

la $a0,prompt

li $v0,4

syscall

li $v0,8 #take in input

la $a0, buffer #load byte space into address

li $a1, 20 # allot the byte space for string

move $t0,$a0 #save string to t0

syscall

li $v0, 4

li $t0, 0

loop:

lb $t1, buffer($t0)

beq $t1, 0, exit

slti $t2,$t1,91

bne $t2,$0,UPPER_CHECK

slti $t2,$t1,123

bne $t2,$0,LOWER_TO_UPPER

UPPER_CHECK:

slti $t2,$t1,65

bne $t2,$0,INVALID_ENTRY

slti $t2,$t1,90

bne $t2,$0,NEXT

j INVALID_ENTRY

LOWER_TO_UPPER:

sub $t1, $t1, 32

sb $t1, buffer($t0)

NEXT:

addi $t0, $t0, 1

j loop

INVALID_ENTRY:

li $v0, 4

la $a0, error_prompt

syscall

j ASKING_STR

exit:

li $v0, 4

la $a0, result_str

syscall

li $v0, 4

la $a0, buffer

syscall

li $v0, 10

syscall

You might be interested in
Jaden needs to implement a telecommunications technology that would most improve the way members of his team exchange informatio
Verdich [7]
<span>The fact that Jaden uses decision-making strategy means that he</span><span><span> will make his decision based on long-term goals and a longer term vision.</span> In order to implement a telecommunication technology that would most improve the way members of his team exchange information, Jaden first must determine the goals. </span>

3 0
3 years ago
4.3 Code Practice<br> edhisve
mars1129 [50]

<u>Answer</u>:

<u>Incomplete question. However, I infer you need assistance to provide full question</u>.

Explanation:

Here's the full question;

"4.3 code practice adhesive (in python 3) write a program that uses a loop to print the uppercase alphabet with the correct ASCII number next to each letter. (e.g., one line might be A 65)".

Thus, you are expected to use the computer programming language Python to write the program.

7 0
3 years ago
Josh, as an administrator for a health care company, is required to support an older, legacy application. He’s concerned about t
IRINA_888 [86]

Answer:

Use an application container.

Explanation:

Host operating system is software installed in a computer that interacts virtually with a server and also describes the difference between its software and a guest operating system.

It interacts with the hardware and works with atype 2 hypervisor which does not interact with the hardware but create virtual machine interfaces for multiple guest operating system to be installed, which are not necessarily the same as the host os.

Host os can also be used to describe  operating systems that make use of container based virtualization. Containers are storage partitions used to hold applications separately on the same server, instead of replicating the operating system.

So with a container, Josh can separate the legacy application from other applications in the server.

8 0
3 years ago
Judy has saved photographs on her computer. Which file extension will the saved photographs have? She has also created and saved
liberstina [14]
The saved photographs on Judy’s computer will have a bpm file extension. The word documents will have a doc file extension
5 0
3 years ago
Read 2 more answers
The Hootsuite Analytics overview automatically analyzes two time periods: the one you select, and the corresponding length of ti
Valentin [98]

Answer

The benefit is that it put your result in a more historical perspective

Explanation

The Hootsuite Analytics and measuring tools work to provide a complete report of the companies social media contributions at each marketing stages. The Hootsuite Analytics measures the overall performance , the effect for in depth analysis of shared posts including social listening. The analysis is able to monitor multiple social streams, schedule posts in advance  and create a simple analytics data for view


6 0
3 years ago
Read 2 more answers
Other questions:
  • Which sentence describes the right thing to do when the computer doesn’t respond?
    15·2 answers
  • What’s good and bad about having social media?
    14·2 answers
  • Insert a function in cell g5 to calculate the first student's monthly payment, using appropriate relative and absolute cell refe
    13·1 answer
  • The max-age attribute of a cookie is specified in
    13·1 answer
  • At what x position are the ellipses drawn??? thanks ♡​
    6·1 answer
  • What is the difference between player-centric game design and designer-centric game design? How does a player-centric game assis
    7·1 answer
  • Help me plzzzz ASAP T-T and it's Cyber Security but my last day of school is tomorrow and I'll graduate in June 24 so plzzzzz I
    12·1 answer
  • Imagine that you are preparing a multimedia presentation. What are the four things you need to consider when getting started?
    14·2 answers
  • Where is the third vanishing point in the three point perspective
    8·1 answer
  • 3. How do robots help speed up the fulfillment of orders at some Amazon warehouses?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!