0%(3)0 out of 3 people found this document helpful
This preview shows page 1 - 2 out of 3 pages.
CprE 381 –Computer Organization and Assembly Level Programming Homework #4 [Note from Joe: This assignment is meant to bridge the gap as we end the focus on MIPS assembly and begin looking into architectural and performance issues. To complete this assignment you will need to have installed a version of SPIM (the MIPS simulator) for either Windows or Linux/Unix. SPIM can be found on the CD included with the P&H book or can be downloaded from the 381 homepage: (link). Some students prefer using the MARS assembler / simulator for MIPS instead which is also available on the course homepage. Note that this is a relatively lengthy assignment –you have two weeks to complete it and should start early.] Reading: Patterson & Hennessy, Sections 3.1-3.3, A.9, and B.5-B.7 1) Simulating MIPS Code (a)Read the introduction to the SPIM simulator in P&H A.9. Load the provided prob1.sprogram into SPIM and run the program several times trying different input values. Submit results for at least three distinct values. (b)What is the program doing? Keep your answers brief. (c)