EE319KMid-Term1S11-MW-Sol

# EE319KMid-Term1S11-MW-Sol - 1 /8 EE 319K Spring 2011 First...

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

1/8 EE 319K Spring 2011 First Mid-Term Dr. Ramesh Yerraballi Full Name : Duration : 75 minutes EID :__________________________ Instructions : This is a closed book exam No calculators are allowed Write answers within the box/space provided after each of the questions. If you need more space, you may write on the back of the sheets. There are SEVEN questions on the test, read all of them first so you may properly allocate your time to answer them. Score Sheet Question Max Your Score 1 12 2 8 3 10 4 10 5 15 6 15 7 30

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

View Full Document
2/8 1*(16) + 0*8 + 1*4 + 1*2 + 1*1 = 10111 1*(-16) + 0*8 + 0*4 + 1*2 + 0*1 = 10010 Max Unsigned: 2 5 -1=31 Min Signed: -2 5-1 = -15 1. [12 pts ] Give the binary representations for the following i. The signed 5 bit number -14? ii. The unsigned 5-bit number 23? iii. What are the largest unsigned and smallest signed 5-bit numbers one can represent (in decimal)? 2. [ 8 pts ] Identify the addressing modes used in each of the following instructions: Instruction Addressing Modes ldd \$44 Direct Page psha Inherent bra ofatree PC-Relative movb foo,bar Extended,Extended bset DDRP,#128 Extended,Immediate 3. [10 points] The values of N, Z, C and V flags are 0, 0, 1 and 1 respectively after a comparison operation was performed. Which of the branches will be taken/not taken (put a check mark). Branch Taken Not Taken bge blt blo bne bhs
3/8 [Yes/ No ] [Give your reasoning] The high byte of D is A and low byte is B. So, the pshd instruction will write B and then A on top of the stack. The pula instruction will pull what is on the top of the Stack into register A. Which does not result in a swap. Run mode clock runs at 8 MHz, therefore 1 cycle is 1/8 us = 125ns

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/20/2012 for the course EE 319K taught by Professor Bard during the Fall '08 term at University of Texas.

### Page1 / 6

EE319KMid-Term1S11-MW-Sol - 1 /8 EE 319K Spring 2011 First...

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

View Full Document
Ask a homework question - tutors are online