EE306 Exam 2 Practice Problems Solutions

EE306 Exam 2 Practice Problems Solutions - EE306 Exam 2...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: EE306 Exam 2 Practice Problems This is not intended to be a full review of the topics we've covered since the last exam. Problem 1 What steps that would be required, in order, to accomplish each of the following instructions? To answer each question, select the steps from the diagrams provided, and list the letters corresponding to the diagrams, in the appropriate order. STR: B, A, E LEA: C, F LDI: C, A, D, G JMP: H A B C D E F G H Problem 2 The following subroutine performs integer division – that is, it performs the division of two numbers, and neglects any remainder. As an example: 12 ÷ 3 = 4 13 ÷ 3 = 4 14 ÷ 3 = 4 15 ÷ 3 = 5 However, the program contains two errors. First, mark the "Error" column next to the lines containing the errors. Then, neatly write the corrected line in the "Correction" column. R0 contains the first number, R1 contains the second number, and R2 contains the result. You may assume that R0 and R1 are always greater than zero....
View Full Document

This note was uploaded on 03/22/2008 for the course EE 306 taught by Professor Ambler during the Fall '07 term at University of Texas.

Page1 / 6

EE306 Exam 2 Practice Problems Solutions - EE306 Exam 2...

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