csse232_lab2 - Fall 2012-2013 CSSE 232 CSSE 232 Computer...

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

Fall 2012-2013CSSE 232CSSE 232 – Computer Architecture IRose-Hulman Institute of TechnologyComputer Science and Software Engineering DepartmentLab 2 —MIPSDecision Instructions1ObjectivesFollowing completion of this lab you should be able to:Write loops inMIPSprograms.Understand the limitations ofbeq/bne,j, andjr.Properly access memory inMIPSprograms.Understand some of the issues surrounding register allocation.Use theSPIMsystem call for reading and printing strings.2GeneralThis and the remaining labs should be done in pairs – only one lab writeup should besubmitted.In evaluating your programs the approximate weightings will be: correctness, 50%; efficiency(minimum instructions and minimum registers), 20%; and, documentation, 30%.The required output format is mandatory.In writing these and other assembly language programs:Solve the problem before coding the solution. Usually this means writing the code ina high-level language or pseudo-code first, then converting it to assembly language.IMPORTANT:Write down (perhaps in a comment in your code) the purpose thatyou have in mind for each register that you use. Here’s an example of how you mightdocument register use in your code.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture