Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Purpose This assignment is designed to familiarize you with the basics of subroutines when programming in ASM.Requirements This assignment consists of five major requirements. 1) Developing a solution

Purpose This assignment is designed to familiarize you with the basics of subroutines when programming in ASM.Requirements This assignment consists of five major requirements. 1) Developing a solution to the problem below. 2) Ensuring that it assembles and runs correctly using the tools on edoras. 3) Documenting your solutions correctly. 4) Organizing your handin directory and submissions correctly. Problem 1) For this program you will be creating two .s files (and you will turn in both .s files). You will be building a subroutine in the findmin.s file and a prog4.s file which will be your main. You should ORG your findmin subroutine to $6000. Your findmin.s subroutine will recursively find the minimum value of an array of values. You should implement the following psuedocode:int findmin(int* vals, int count) { if(count == 1){ return vals[0]; }else{ int minrest = findmin(vals+1,count-1); if (minrest < vals[0]){ return minrest }else{ return vals[0] } } } The basic idea is that the minimum value is either the first element of the list, or it is the minimum value from the rest of list. You should correctly implement the above psuedocode in your findmin.s file. Your prog4.s file will be your main program. In it, you will define a data array of your choice. Your prog4.s file will print your title, print what the minimum CS237 FA18 Assignment #4 100 Points Due: 12/11 11:59pm value in the array should be then call the findmin function and print the minimum value that it returns with the provided strings. Program #4, Scott Lindeneau, mascxxxx Minimum number is: 4 Found Minimum number is: 4In theory, you could write the program such that it simply prints to correct answer, but you should know that your findmin.s function will be tested independently of your prog4.s and validity of prog4.s will be inspected by hand. 2) You must ensure that your assembler can be assembled and run on rohan using the tools ppasm and bsvc. You may develop your solution on any machine you desire, as long as the final solution works on rohan. 3) Your solution must have a complete comment header as is detailed in your template.s file. During runtime, your solution to section 1 must output a correct title string as the first line printed. It should be in this format: Program #1, Student Name, mascXXXX4) You must place a copy of your solution inside a folder named handin in your home directory. Your file MUST be named prog4.s and must not be modified after the turn in time. The modified timestamp for the file prog4.s in your handin folder will be used as the submission time. If it is after the due date, it will be counted as late. DO NOT turn in any compiled files. 5) You MUST have a copy of the rubric on the due date of the assignment.Example Output Output is being recorded in, outfile 55555 Program #4, Scott Lindeneau, mascxxxx Minimum number is: 4 Found Minimum number is: 4Additional Details  You do not need to do input checking. You can assume that the input value is a valid input.CS237 FA18 Assignment #4 100 Points Due: 12/11 11:59pmLate Policy Work turned in by the due date will receive 120%. Work turned in up to 7 days late will receive 100%. No other late work will be accepted.Cheating Policy There is a zero tolerance policy on cheating in this course.   You are expected to complete all programming assignments on your own.  Collaboration with other students in the course is not permitted.   You may discuss ideas or solutions in general terms with other students, but you must not exchange code.   (Remember that you can get help from me.   This is not cheating, but is in fact encouraged.)   I will examine your code carefully.  Anyone caught cheating on a programming assignment or on an exam will receive an "F" in the course, and a referral to Judicial Procedures.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question