Docsity

Quiz 5 - Problem on Introduction to Computer Engineering with Solution | ECE 2504, Quizzes of Electrical and Electronics Engineering

Partial preview of the text

Download Quiz 5 - Problem on Introduction to Computer Engineering with Solution | ECE 2504 and more Quizzes Electrical and Electronics Engineering in PDF only on Docsity!

ECE 2504: Introduction to Computer Engineering โ€œ* CRN 92019 ยซ Fall 2010 Quiz 5 M October 29, 2010 Name: ee. โ€” VT Student ID: _*: era This quiz is closed book and closed notes. Submission acknowledges that the work is solely your own. The PIC microcontroller, as discussed in lecture, executes the โ€œADDWF 0x4F,0โ€ instruction. Various registers have the initial values given below before the instruction is executed. Specify the register contents after the instruction executes. Give values in hexadecimal. Put a question mark (โ€œ?โ€) as your answer if the value cannot be determined based on the information provided. Recall that for byte-oriented register file instructions the destination is the W register if the destination bit is โ€œOโ€ and the destination is the data memory location if the destination bit is โ€œ1.โ€ Register/ Value Value . Memory Before After (Hex) a Comment w 0x50 O x 9 Ev Working register DR OxFF Ox r ra Data memory data register FAD 0x77 B ay 7 Xx Data memory address register PC 0x15 oO โ€ ig J Program counter PAR 0x14 Ox | q Xx Program memory address register vacation Dea 0x22 Ox zโ€™ โ€œ@ | Register file location Ox4E Sao eer oe oO a y E J Register file location Ox4F ata Memon Ox1A OQ x IA Register file location 0x50