hw2 - CS2214 COMPUTER ARCHITECTURE & ORGANIZATION SPRING...

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

View Full Document Right Arrow Icon
CS2214 COMPUTER ARCHITECTURE & ORGANIZATION SPRING 2010 B HOMEWORK II Polytechnic Institute of NYU Page 1 of 20 Handout No: 6 February 10, 2010 DUE : February 24, 2010 READ : - Related sections of Chapter 2 - Related sections of Chapter 3 - Related sections of Appendix B ASSIGNMENT : There are eight questions seven of which are from chapters II and III of the textbook. Solve all homework and exam problems as shown in class and past exam solutions. I) Solve Problem 2.14.1 of Chapter II for only part ( a ). First , write a mnemonic machine language program with comments. Then , show the table of execution of instructions with used register and memory location values until the code completes. Finally , show the individual bits to describe the shift to the right/left operation(s) to get new val- ues. Note the following : The piece of mnemonic machine language program you will write starts at 400000. According to MIPS software conventions registers $t0 and $t1 are R8 and R9, respectively. Assume that register R8 has 45678F2A as the initial value. Change “31 - i bits” in the figure to “32 - i bits” since “31 - i bits” is incorrect II) Solve Problem 2.16.1 of Chapter II for only part ( b ). To solve the problem do the following : First , convert the assembly program to a mnemonic machine language program with comments. Then , show the table of execution of instructions with used register and memory location values until the code completes. Note the following : The piece of mnemonic machine language program you will write starts at 400000. According to MIPS software conventions, registers $zero, $t0, $t1 and $t2 are R0, R8, R9 and R10, respectively.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Polytechnic Institute of NYU Page 2 of 20 CS2214 Handout No : 6 February 10, 2010 III) Solve Problem 2.17.3 of Chapter II. a) You are asked to work on the following instruction for part ( a ) : 400200 ABS R10, R11 # R10 R11 You will do your programming in the mnemonic machine language with comments and use at least four ( 4 ) instructions to implement it. In addition to implementing the instruction, also show the table that has the values of registers and memory locations “touched” and memory accesses made by your sequence of instructions. The piece of mnemonic machine language program to implement “ABS” starts at 400200. Assume that register R11 has (-3) 10 as the initial value. b) To solve part ( b ), do the following : First , write the mnemonic machine language program with comments. Then , show the table of execution of instructions with used register and memory location values until the code completes. Note the following : The piece of mnemonic machine language program you will write start at 400000. According to MIPS software conventions, registers $t1, $t2 and $t3 are R9, R10 and R11, respectively. Assume that register R10 has 5 and register R11 has 2 as their initial values.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/02/2011 for the course CS 2214 taught by Professor Hadimioglu during the Spring '10 term at NYU Poly.

Page1 / 20

hw2 - CS2214 COMPUTER ARCHITECTURE & ORGANIZATION SPRING...

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

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