ECE 290_ LAB #8 Solutions - 12290 130 10 (initially) This...

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

View Full Document Right Arrow Icon
ECE 290: LAB #8 Solutions Lab 8 Solutions Part 2 a) b) c ADDMI ADRS, #imm11 c ADDMR ADRS, SR c) Page 1 of 4 Mallard ECE 290: Computer Engineering I - Spring 2007 - ECE 290: LAB #8 Solutions 4/20/2007 https://mallard.cites.uiuc.edu/ECE290/material.cgi?SessionID=mding3_1070420_040634. ..
Background image of page 1

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

View Full DocumentRight Arrow Icon
d) Simulation Results: Page 2 of 4 Mallard ECE 290: Computer Engineering I - Spring 2007 - ECE 290: LAB #8 Solutions 4/20/2007 https://mallard.cites.uiuc.edu/ECE290/material.cgi?SessionID=mding3_1070420_040634. ..
Background image of page 2
Part 3 a) Of course, there is more than one way to do this. Congrats if your progam used fewer instructions than mine. The explanations next to each entry weren't required - they're there to help show what's going on. b) Of course during operation, location 12291 will change. 12288 ADD R0, R0, #3 R0 <- 3, R0 will be used as a counter 12289 ADDMI 130, #-1 M[M[12290]] <- M[M[12290]]-1 This is where the memory decrement happens
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 12290 130 10 (initially) This is the first memory location to decrement. Each time through the loop this value gets incremented 12291 LD R1, #-2 R1<-M[12290] 12292 ADD R1, R1, #1 R1<-R1+1 (M[12290]+1) 12293 ST R1, #-4 M[12290]<-R1 (M[12290]+1) 12294 ADD R0, R0, #-1 R0<-R0-1, decrement the counter 12295 BRzp #-7 If counter is not negative yet, loop to instruction at 12289 Page 3 of 4 Mallard ECE 290: Computer Engineering I - Spring 2007 - ECE 290: LAB #8 Solutions 4/20/2007 https://mallard.cites.uiuc.edu/ECE290/material.cgi?SessionID=mding3_1070420_040634. .. Simulation Results: Mallard Copyright © 1995-2000 Course Content Copyright© 1995-2007 Donna J. Brown. All rights reserved. Page 4 of 4 Mallard ECE 290: Computer Engineering I - Spring 2007 - ECE 290: LAB #8 Solutions 4/20/2007 https://mallard.cites.uiuc.edu/ECE290/material.cgi?SessionID=mding3_1070420_040634. .....
View Full Document

This note was uploaded on 06/21/2011 for the course ECE 290 taught by Professor Staff during the Spring '08 term at University of Illinois, Urbana Champaign.

Page1 / 4

ECE 290_ LAB #8 Solutions - 12290 130 10 (initially) This...

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

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