Question: 3. Given the assembly language code listing below: a) Identify the fields of this structured program using the Main loop here section ONLY!!! (5 pts)

3. Given the assembly language code listing below: a) Identify the fields of this structured program using the Main loop here section ONLY!!! (5 pts) : MSP430 Assembler Code Template for use with TI Code Composer Studio .cdecis C.LIST,"msp430.h* Include device header file def RESET Export program entry-point to make it known to linker .text retain Assemble into program memory. : Override ELF conditional linking and retain current section. And retain any sections that have references to current section retainrefs RESET mov.w STACK END.SP Initialize stackpointer Stop WDT movw #WDTPWWDTHOLD&WDTCTL : Stop watchdog timer : Main loop here Mainloop: add.ww77h,R6 add hexadecimal value 77 to existing contents of R6 mov.w R6,R7 move contents of R6 into R7 rre R6 Totate right through carry (bitwise) the contents of R6 me R6 Totate right through carry (bitwise) the contents of R6 jmp Mainloop: Stack Pointer definition global STACK_END sect stack Interrupt Vectors sect ".reset" short RESET : MSP430 RESET Vector .end D) Assuming that the initial contents of R6 = 1BB1h then what are the updated contents in can register after compiling and stepping through each line of the code in Mainloop (5 pts) c) What type of format (double-operand, single-operand, or jump instruction) is used for each line of code in Mainloop? (5 pts) d) What type of addressing mode is used for each line of code in Mainloop? (5 pts) 3. Given the assembly language code listing below: a) Identify the fields of this structured program using the Main loop here section ONLY!!! (5 pts) : MSP430 Assembler Code Template for use with TI Code Composer Studio .cdecis C.LIST,"msp430.h* Include device header file def RESET Export program entry-point to make it known to linker .text retain Assemble into program memory. : Override ELF conditional linking and retain current section. And retain any sections that have references to current section retainrefs RESET mov.w STACK END.SP Initialize stackpointer Stop WDT movw #WDTPWWDTHOLD&WDTCTL : Stop watchdog timer : Main loop here Mainloop: add.ww77h,R6 add hexadecimal value 77 to existing contents of R6 mov.w R6,R7 move contents of R6 into R7 rre R6 Totate right through carry (bitwise) the contents of R6 me R6 Totate right through carry (bitwise) the contents of R6 jmp Mainloop: Stack Pointer definition global STACK_END sect stack Interrupt Vectors sect ".reset" short RESET : MSP430 RESET Vector .end D) Assuming that the initial contents of R6 = 1BB1h then what are the updated contents in can register after compiling and stepping through each line of the code in Mainloop (5 pts) c) What type of format (double-operand, single-operand, or jump instruction) is used for each line of code in Mainloop? (5 pts) d) What type of addressing mode is used for each line of code in Mainloop? (5 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
