ee357_hw5_sol

ee357_hw5_sol - EE 357 Homework 5 Fall 08 Dubois 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 Fall ’08 ● Dubois Name: ___________________________________________ Due: Friday Oct. 10 th on blackboard Score: ________/100 Note: Attach all work to receive full credit Exceptions (TRAPs and Interrupts) 1.) (10) Given that (SR) = $070B answer the following questions. a.) Is the processor in ( user / supervisor ) mode. b.) Which condition codes are set (circle all that apply): XNZVC = 01011 2.) (40) 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 XNZVC 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 XNZVC 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.

Page1 / 2

ee357_hw5_sol - EE 357 Homework 5 Fall 08 Dubois 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