hw6_solution

hw6_solution - My UW | UW Search...

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 Section 3 Instructor Mark D. Hill TAs URL: http://www.cs.wisc.edu/~markhill/cs252/Fall2007/ Homework 6 Solutions First contact for questions is TA Sam Javner at: javner@wisc.edu Problem 1 Problem 5.23 on page 149 of ItCS. x30FF 1110 0010 0000 0001 ; R1 <- PC' + 1 ; R1 <- x3101 x3100 0110 0100 0100 0010 ; R2 <- mem[R1 + 2] ; R2 <- mem[x310 x3101 1111 0000 0010 0101 ; TRAP x25 = HALT x3102 0001 0100 0100 0001 ; x1441 x3103 0001 0100 1000 0010 ; x1482 R2 = x1482 when execution halts Problem 2 Problem 5.31 on page 151 of ItCS. We are given that the first 4 bits of the instruction are 0001, so it must be an ADD in know that the destination register must be R5, so there are two possibilites we can
Background image of page 1

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

View Full DocumentRight Arrow Icon
R5 <- R? + R?
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/19/2010 for the course CS 252 taught by Professor Wood during the Fall '08 term at Wisconsin.

Page1 / 3

hw6_solution - My UW | UW Search...

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