bonus_quiz5_sol

bonus_quiz5_sol - labeled myVal b) The address of the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 2801 – Foundations of Embedded Systems Bonus Quiz #5 Name: __________________                                      ECE Box #: __________ 1) The Program Counter (PC) is stored in R0.  The PC always contains what? (a) The address of the  beginning  of program memory (b) The address of the instruction  currently  being executed  (c) The address of the  next  instruction to be fetched and executed     (d) The  numbe r of instructions executed so far 2) At the end of this code segment, what is stored in R12? CLR      R11 MOV      #myVal, R12 ADD.B    @R12,  R11    a) The contents of the memory location         c)   0x0000
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: labeled myVal b) The address of the memory location d) No way to determine labeled myVal 3) What does this assembler code segment do? MOV #5, R5 MOV #10h, R6 CLR R7 top ADD R6, R7 // adds R6 = 10h to R7 DEC R5 // five times CMP #0,R5 JNZ top 4) What is the final value of R7 in the code the above? a) 0050h b) 0010h c) 0x0000 d) Can not be determined...
View Full Document

Ask a homework question - tutors are online