Question
Hey guys, could someone please help me with all or any of these parts ? Its really urgent an I need to use MIPS instruction
Hey guys, could someone please help me with all or any of these parts ? Its really urgent an I need to use MIPS instruction set to make these applications. Thanks :)
5.3 (i) Write a function int Square(int N:a0) that returns in v0, the Square of the value passed in a0
5.3 (ii) Write a MIPS assembly language program to: (a) Ask the user to enter a number to say how many numbers they want to enter (b) THEN, in a for loop, have them enter each number and calculate the sum of squares utilizing the function you wrote in 5.3 (i). (c) When the user has entered all the numbers they wanted, print the message "The sum of squares is: " and the value of the sum of squares." For example... How Many Numbers Do You Want to enter: 3 ... Enter Number: 5 ... Enter Number: 10 ...Enter Number: 20 ... The Sum Of Squares Is: 525
5.4 Write a MIPS assembly language program to transfer a block of 100 bytes in REVERSE starting at memory location SRC + 99 to another area of memory beginning at memory location DEST.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started