Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an assembly program revCaseMin.asm where: 1. The main) procedure a. prompts the user to enter 30 characters and stores these characters as a character

image text in transcribed

Write an assembly program revCaseMin.asm where: 1. The main) procedure a. prompts the user to enter 30 characters and stores these characters as a character array into memory b. invokes the revCase() procedure that accepts as an argument the base address of this character array and the number of characters in this array 2. The revCase) procedure Has two parameters, the base address of a character array and the number of characters in this array. You may not hard code the argument value 30 within this procedure but instead use the 2nd parameter of the procedure. Recall registers a0 a. and $a1 will be populated by the calling procedure main ( ) . b. Calculates the reverse case of the characters entered by the user placing them in a character array and prints the characters in reverse case using a loop Invokes the function findMin) passing in the required arguments and uses the return value from findMin0. The return value from findMin () is the minimum character entered by the user after the character string is reversed in case. See details c. that follow for findin ( ) . d. Prints the minimum character returned from the function findMin () 3. The findMin () function has two parameters: the first parameter is the base address of the character array it will examine and the second is the number of characters thatit will examine to find the minimum ASCII character. findMin) returns in $v0 the minimum ASCII character from the string it examined. You may not hard code the value 30 but must instead use the value in the first argument register Sal to aid in the looping structure for finding the minimum character 4. All register conventions and procedure invocation conventions must be adhered-review the MIPS reference sheet for preserving registers across procedure calls and these conventions. 5. Use the starter code file, revCaseMin.asm, making the necessary modifications for this project. Remember, to place YOUR name at the top of the code. Write an assembly program revCaseMin.asm where: 1. The main) procedure a. prompts the user to enter 30 characters and stores these characters as a character array into memory b. invokes the revCase() procedure that accepts as an argument the base address of this character array and the number of characters in this array 2. The revCase) procedure Has two parameters, the base address of a character array and the number of characters in this array. You may not hard code the argument value 30 within this procedure but instead use the 2nd parameter of the procedure. Recall registers a0 a. and $a1 will be populated by the calling procedure main ( ) . b. Calculates the reverse case of the characters entered by the user placing them in a character array and prints the characters in reverse case using a loop Invokes the function findMin) passing in the required arguments and uses the return value from findMin0. The return value from findMin () is the minimum character entered by the user after the character string is reversed in case. See details c. that follow for findin ( ) . d. Prints the minimum character returned from the function findMin () 3. The findMin () function has two parameters: the first parameter is the base address of the character array it will examine and the second is the number of characters thatit will examine to find the minimum ASCII character. findMin) returns in $v0 the minimum ASCII character from the string it examined. You may not hard code the value 30 but must instead use the value in the first argument register Sal to aid in the looping structure for finding the minimum character 4. All register conventions and procedure invocation conventions must be adhered-review the MIPS reference sheet for preserving registers across procedure calls and these conventions. 5. Use the starter code file, revCaseMin.asm, making the necessary modifications for this project. Remember, to place YOUR name at the top of the code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Organizing Your Speech Points

Answered: 1 week ago