230-S18-Assign3(1).pdf - CSE/EEE 230 Assignment 3 Spring...

This preview shows page 1 - 2 out of 2 pages.

CSE/EEE 230 Assignment 3 Spring 2018 Due February 27 (11:59PM) No late assignments are accepted. Get your work done early. In this assignment, you are to complete a MIPS program so it will perform the required tasks. The main function of the code is provided. You are to complete the program by writing four functions. Pay particular attention to the purpose of each function and how the parameters and stack are to be used. NO pseudo code/extended formats. Turn off the option on MARS under settings that allows the use of these instructions, 1. print $a0 integer value to print $a1 address of string to print This function must first print the string and then print the integer. Both outputs must be on the same line. 2. multiplication $a0 first integer $a1 second integer $v0 first integer * second integer This function is to calculate and return the result of multiplying the first argument by the second argument. Assume that both arguments are greater than zero. You must calculate the result using a loop. Using any version of the mult instruction is NOT

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture