1. The lines of code below form a counting loop:
LoadDelay mov.w #0x001A, R15
LoopTop dec.w R15
jnz LoopTop
Done
How many times will this loop execute? Provide the answer indecimal_________
2. Suppose the state of bits at P1OUT are 10110111 and thefollowing line is executed:
xor.b #0x05,&P1OUT
What is the new state of bits at P1OUT after the above lineexecutes? Provide the answer in binary_____________
3. What value is contained in R9 after the following linescomplete execution?
mov #0x0C07, R9
bic #0x0703, R9
Provide the answer in hexadecimal_________
4. What value is contained in R9 after the following linescomplete execution?
mov #0x0C07, R9
and #0x1783, R9
Provide the answer in hexadecimal_________
5. What value is contained in R9 after the following linescomplete execution?
mov #0x0C02, R9
sub #0x0001, R9
Provide the answer in hexadecimal_________
6. Execute the following lines:
mov.w #0xFF02, R12
dec R12
jz CaseA
jmp CaseB
Which branch is taken? (circle one) CaseA CaseB
7. Execute the following lines:
mov.w #0x1234, R12
rra R12
What is the final value in R12?
Provide the answer in hexadecimal_________
8. Execute the following lines:
mov.w #0x8431, R12
rla R12
What is the final value in R12? Provide the answer inhexadecimal_________