hw5_solution - My UW | UW Search CS/ECE252 Introduction...

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

View Full Document Right Arrow Icon
My UW | UW Search Computer Science Home Page > ~markhill Home Contact Info Schedule LC-3 Simulator Grading Examinations Homework CS/ECE 252  Introduction  to Computer  Engineering Fall 2007 All Sections Instructors Mark D. Hill and Mikko Lipasti TAs Sanghamitra Roy, Eric Hill, Samuel Javner, Natalie Enright Jerger, & Guoliang Jin Homework 5  Solutions Problem 1 Problem 5.2 on page 145 of ItCS using an addressability of 16 bits.(3 points) The MDR is 16 bits. The statement
Background image of page 1

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

View Full Document Right Arrow Icon
does not tell anything about the size of the MAR. Problem 2 Problem 5.4 on page 145 of ItCS using memory consisting of 512 locations. (3 points) a. 9 bits. b. We need to transfer between instructions +-20 locations away. Hence we need 6 bits. c. (PC + 1) = 4, hence PC- relative offset = 6. Problem 3 Problem 5.8 on page 146 of ItCS. (4 points) Increasing the number of registers to 32 will need 5 bits to denote the register number. Now, the minimum number of bits needed for the ADD instruction will be 4 ( for the opcode ) + 3 registers * 5 bits = 19 bits. This cannot fit in the 16-bits allocated for an LC-3 instruction. Problem 4 If the control is redirected to location x4444 after the execution of the following instructions, what should have been the relationship between R1 and R2 before these
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.

{[ snackBarMessage ]}

Page1 / 6

hw5_solution - My UW | UW Search CS/ECE252 Introduction...

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