cs2214ex1

cs2214ex1 - CS2214 COMPUTER ARCHITECTURE & ORGANIZATION...

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

View Full Document Right Arrow Icon
CS2214 COMPUTER ARCHITECTURE & ORGANIZATION SPRING 2010 Polytechnic Institute of NYU Page 1 of 2 Handout No : 10 March 10, 2010 110 MINUTES WORK ALL PROBLEMS OPEN BOOK EXAM I (55 pts) 1) Consider the following piece of EMY mnemonic machine language program : 400300 LW R9, 0(R8) # R8 initially has 10000000 400304 ANDI R10, R9, 8000 400308 BEQ R10, R0, 3 40030C LUI R11, FFFF 400310 OR R9, R11, R9 400314 SW R9, 0(R8) 400318 ADDI R8, R8, 4 40031C ADDI R12, R12, (-1) 10 # R12 initially has 1 400320 BNE R12, R0, (-9) 10 ---- ---- 10000000 A5F2 a) Obtain a table that shows the values of registers and memory locations used by the above piece of EMY code as shown in class . Also show the number of memory accesses made for each instruction. Determine what this piece of code does. That is, what is its purpose ? b) Convert the mnemonic machine language instructions in locations 400304 - 400310 to machine language instructions. That is, clearly show the four instructions in terms of 1s and 0s . 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.

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 / 2

cs2214ex1 - CS2214 COMPUTER ARCHITECTURE & ORGANIZATION...

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