ee357_hw5_sol

ee357_hw5_sol - EE 357 Homework 5 Spring 07 Redekopp Name:...

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

View Full Document Right Arrow Icon
EE 357 Homework 5 Spring ’07 Redekopp Name: __Solutions________________________________ Lec: 9:30 / 11:00 / 2:00 Due: Wed./Thurs. Feb. 21 st /22 nd Score: ________ Note: Attach all work to receive full credit Exceptions (TRAPs and Interrupts) 1.) Given that (SR) = $8715 answer the following questions. a.) Is the processor in ( user / supervisor ) mode. b.) Which condition codes are set (circle all that apply): C Z X N V 2.) The TRAPV instruction checks if V=1 and will call an overflow exception handler if it is. The EVT entry for the overflow exception is defined at $1C. Assume initially (SP) = $3FF8. a.) What is the value of D0 just before execution of TRAPV b.) Show the content of the stack and the NZVC bits after the processor pushes the return address and the saved SR on the stack but before execution of the first instruction of the handler. c.) Show the contents of the stack and NZVC bits just before execution of the RTE d.) Show the final content of D0. 1000
Background image of page 1

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

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

This note was uploaded on 11/26/2008 for the course EE 357 taught by Professor Mayeda during the Spring '08 term at USC.

Page1 / 2

ee357_hw5_sol - EE 357 Homework 5 Spring 07 Redekopp Name:...

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