EE357-Nazarian-SampleMidterm-Fall09

EE357-Nazarian-SampleMidterm-Fall09 - 1 EE 357 Sample...

Info iconThis preview shows pages 1–2. 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 Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 EE 357 Sample Questions Nazarian Fall 09 Name: ___________________________________________ Lecture 11:00 Closed Book / 90 minutes Perfect Score: 100 / 103 Score: _______ Note: ADDQ and SUBQ are instructions that are functionally equivalent to ADDI & SUBI 1. Short Answer (12 pts.) a. Name one difference in the call of a TRAP routine versus a normal subroutine call via BSR/JSR. b. Pick the correct options to make the following statement true: “The LINK instruction saves the old ( Return Address / Frame Pointer ) onto the stack as well as allocating space for ( Local Variables / the copy of the SR ).” c. Using the stack frame organization studied in class, the LINK instructions for the following function/subroutine should be LINK A6,#____ (-4 / -8 / -12 / -16 )? int f1(int a){ short data[4]; int x; ... } d. Assuming use of the IEEE Single-Precision floating-point representation (1 sign bit, 8 exponent bits using Excess-127, 23 mantissa bits), what is the decimal representation be for the following number: 1 1000 0000 101 0000 0000 0000 0000 0000 a.-1.625 b.-0.8125 c.-2.5 d.-3.25 e.-1.25 e. In the 16-bit hexadecimal subtraction: 0x6CB9 - 0xA5F8, does signed and/or unsigned overflow occur? a. Signed overflow: Does not occur & Unsigned overflow: Does not occur b. Signed overflow: Does not occur & Unsigned overflow: Occurs c. Signed overflow: Occurs & Unsigned overflow: Does not occur d. Signed overflow: Occurs & Unsigned overflow: Occurs f. Calls to subroutines using BSR or JSR save the _____________ ( SR / IR / Return address ) to ____________ ( A7 / the stack / IR ) g. When an exception occurs, what registers are automatically saved/pushed onto the system stack?...
View Full Document

{[ snackBarMessage ]}

Page1 / 5

EE357-Nazarian-SampleMidterm-Fall09 - 1 EE 357 Sample...

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

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