Question: s (as points) Analyze assembly program Consider the following code segment. data .cstring 32SLab. mystr : .text mov.w mov.wtr, R4 i Assemble into progran memory.

 s (as points) Analyze assembly program Consider the following code segment.

s (as points) Analyze assembly program Consider the following code segment. data .cstring "32SLab. mystr : .text mov.w mov.wtr, R4 i Assemble into progran memory. #STACK END,SP ; Initialize stackpointer StopMOT: movDTPW WDTHOLD, &WDTCTL i Stop watchdog timer gnext: mov.b @R4, R5 lend lnext j1 jmp sub-b add.b lconv lcopy #"a", #'A.,RS Iconv: RS lcopy: mov.b RS, e(R4) lnext: inc.w R4 jmp gnext lend: jmp jump to current location ' (endless loop) A. (20 points) What does this program do? Add code comments B. (5 points) Calculate the total execution time in seconds (time it takes for the program to reach statement in line 20). Assume the clock frequency is 8 MHz. How many instructions are executed in this program (before reaching the infinite loop)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!