Computer System Design HW

profileBryanAdams
hw91.pdf

ELEC 385: Computer System Design Homework #9

Due: March 18, 2015 1. Replace each of the following pseudo instructions with basic MIPS instructions.

2. Translate the following MIPS assembly language program into machine code. Show all your work in binary, but report your machine code for each instruction in hexadecimal.

3. Translate the machine code from text exercise 6.15 into assembly language program. Include labels for branch or jump instructions, as needed.

4. Now that you’ve done all the handwork, use MARS to check your answers. If you made any mistakes, go back and fix them. Repeat as necessary.

Turn in all your work! And, as always, homework is to be single-sided and stapled.