Question: For MSP430G2553 Write down the values assigned to register R14 in four steps (labeled in Listing 7.16). The assembly code for Prob. 7.14. .cdecls C,
For MSP430G2553
Write down the values assigned to register R14 in four steps (labeled in Listing 7.16). The assembly code for Prob. 7.14. .cdecls C, LIST, "msp430.h" .text .retain .retainrefs RESET mov.w #WDTPW|WDTHOLD, WDTCTL mov.w #_ _STACK_END, SP mov.w #0006h, &0200h mov.w #000 Aha, &0202h mov.w #0014h, &0204h mov.w #008Dh, &0206h mov.w #0200h, R13 mov.w 2(R13), R14;step 1 sub.w 0(R13), R14;step 2 add.W 4(R13), R14;step 3 ada.W 6(R13), R14;step 4 jmp $;-------------;Stack Pointer definition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
