Question: 3. (as points) Analyze assembly program the following code segment. . data mystr: .cstring 325Lab .text : Assemble into program memory. RESET stopiDT: mov.w mov.w
3. (as points) Analyze assembly program the following code segment. . data mystr: .cstring "325Lab" .text : Assemble into program memory. RESET stopiDT: mov.w mov.w nov.w #-STACK-END , SP #NDTPwlomouo,SNDTCTL #mystr, R4 : Initialize stackpointer ; stop watchdog timer gnext: mov.b eR4, RS lend j2 lnext j1 jmp sub.b add.b lconv lcopy #'a", #'A', RS RS lconv: lcopy:mov.b R5, e(R4) lnext: inc. R4 jmp gnext lend: Jep $ 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
Get step-by-step solutions from verified subject matter experts
