Assn3 - CDA 3101 Assignment 3 Due in class on Thursday,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CDA 3101 Assignment 3 Due in class on Thursday, Sept. 28 Turn hardcopy in class, stapled, with your name and “CDA 3101 Assignment 3” clearly written on it. Submit a printout of all your MIPS assembly language code. 1. Consider the MIPS assembly program given below. Refer to Appendix A, section 10 for assembler directives like .data, .text etc used in this program. a. (6 points) Write the equivalent C code. b. (16 points) Hand-simulate the first 3 iterations of the loop (starting at the loop label) as we did in class, tracking each change to a register as it happens. Write all the values in hexadecimal. The first iteration has been written down for you in a table on next page (and is colored gray), along with the instructions for all 3 loop iterations. You should complete this table by showing any change to either a register or the first 3 characters of plaintext. You only have to write a value in a row/column when it changes. c.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Assn3 - CDA 3101 Assignment 3 Due in class on Thursday,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online