
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ECE 484/584 Spring 2005 Homework Assignment # In this assignment you are responsible for writing three MIPS subroutines and a stub calling function (main) using the PCSPIM simulator. The stub calling function must be named “main” and will use two values placed into registers $s0 and $s1 by the grader. One subroutine will compute the product of these two registers ($s0 * $s1) using the final version of the multiplication algorithm developed in class. This subroutine will return the product and an overflow indication flag to main. The product must be placed into register $s6 and the overflow flag must be placed into register $s7 when returned to main. A value of one indicates overflow, a value of zero for the flag indicates no overflow. The second subroutine will use the values placed into registers $s0 and $s1 and will compute the product ($s0 * $s1) using Booth’s algorithm. The product will be returned to $s4 and the overflow flag will be returned to register $s5 in main. Again, a value of 1 = overflow and a value of 0 = no overflow. The third subroutine must use the same values placed in registers $s0 and $s1 and return the quotient and remainder from the division operation $s0/$s1 using the algorithm developed in class. The quotient must be placed into register $s2 and the remainder into register $s3 when returned to main. REQUIREMENTS: