Practice Exam
Material Type: Notes;
Professor: Glynn;
Class: Intro Computer Engr;
Subject: Electrical & Computer Engineer;
University: Virginia Polytechnic Institute And State University;
Term: Fall 2004;
Download Practice Exam - Introduction to Computer Engineering | ECE 2504 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!
Te Lory cfot fron cp les Feet Y Ss ae 7S0 done Practice Exam 12/6/04 1. What is the meaning of the following microoperation? yT: RICR2, R2¢-R3 a. If yT is true then R1<-R2 else R2-R3 + RBSff yT is true then Ri<-R2 followed by R2 R3 c. Performs a left shift of the 3 registers whenever yT is true d. none of the above Contents of that address 0x20 0x10 Ox11 Address 0x10 Oxil 0x12 0x13 0x20 Ox14 0x12 0x15 0x10 0x16 Ox11 2. What value would end up in the W register after the following instruction given the memory contents above? MOVF 0x10,0 GP Ox10 b. Oxllc. ox12t)ox20 e, no change to W 3. What value would end up in the W register after the following instruction given the memory contents above? MOVLW 0x10 @poxio b. Ox11 c. 0x12 d, 0x20. ne change to W 4. What value would end up in the W register after the following instruction given the memory contents above? MOVF Ox11,1 a. Ox10 b. Ox11 ¢. 0x12 d. Ox20feJno change to W 3. What value would end up in the W register after the following three instructions given the memory contents above? MOVLW Oxi4 MOVWF FSR MOVE INDF,O a, 0x10 b. Oxl x12 d. 0x20 e. no change to W 6. The PIC stack is used to hold a. Temporary data values b. The contents of W (CAnterrupt service routine return addresses d. A “goto” instruction’s return address e¢. None of the above