Quiz3F05 - EE319K Fall 2005 Quiz 3A Page 1 First:_ Middle...

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

View Full Document Right Arrow Icon
EE319K Fall 2005 Quiz 3A Page 1 Jonathan W. Valvano December 2, 2005 10:00am-10:50am First:________________ Middle Initial: _____ Last:____________________ This is a closed book exam. You must put your answers on this piece of paper only. You have 50 minutes, so allocate your time accordingly. Please read the entire quiz before starting. (5) Question 1. (5) Question 2. (5) Question 3. (5) Question 4. (5) Question 5. (5) Question 6. (5) Question 7. (5) Question 8. (5) Question 9. (5) Question 10. (5) Question 11. (5) Question 12. (5) Question 13. (5) Question 14.
Background image of page 1

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

View Full DocumentRight Arrow Icon
EE319K Fall 2005 Quiz 3A Page 2 Jonathan W. Valvano December 2, 2005 10:00am-10:50am (10) Question 15. (10) Question 16. (10) Question 17.
Background image of page 2
EE319K Fall 2005 Quiz 3A Page 3 Jonathan W. Valvano December 2, 2005 10:00am-10:50am For questions 1 and 2, consider the following C program. xxxx short V=4; void function(void){ yyyy short W=4; } (5) Question 1. What qualifier should be used for xxxx so that V is allocated in ROM? Select from signed unsigned volatile const static extern (5) Question 2. What qualifier should be used for yyyy so that W is permanently allocated in RAM? Select from signed unsigned volatile const static extern This Fifo queue can hold up to eight 16-bit data values, and the picture shows it currently is holding three values (shaded). (5) Question 3. What value is returned if we were to call Fifo_Get at this point? (5) Question 4. Next, assume we call Fifo_Put . What will be the new PutPt after we call Fifo_Put ? Questions 5 and 6 involve the following assembly code. main lds #$4000 ldy #1000 pshy ; pass 16-bit in parameter on stack jsr sub1 puly ; balance stack stop data set xxx ; binding of 16-bit local variable in set yyy ; binding of 16-bit input parameter sub1 pshx ; save register X tsx ; RegX stack frame leas -2,s ; allocate 16-bit local variable called data ;****body of the subroutine ldd in ,x ; get a copy of in parameter std data ,x ; store into local variable data ;****end of body leas 2,s ; deallocate data pulx ; restore register X rts ; return (5) Question 5. What value should you use in the xxx position to implement the binding of the local variable, data ? (5) Question 6. What value should you use in the yyy position to implement the binding of the parameter, in ? $3800 $3802 $3804 $3806 $3808 $380A $380C $380E Address Contents $1234 $5678 $9ABC GetPt PutPt
Background image of page 3

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

View Full DocumentRight Arrow Icon
EE319K Fall 2005 Quiz 3A Page 4 Jonathan W. Valvano December 2, 2005 10:00am-10:50am (5) Question 7. Consider a 10-bit ADC with a range of 0 to +5V. What is the approximate resolution of this ADC? Give units. (5) Question 8. What term do we use to describe it when the debugging code itself makes a small but acceptable change in the behavior of a software system? (5) Question 9.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

Quiz3F05 - EE319K Fall 2005 Quiz 3A Page 1 First:_ Middle...

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

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