Question: 1. Use CCSv7 to implement the code in Listings 7.13 in assembly. Use the CCSv7 debugger functions that you know about in order to examine
.cdecls C,LIST, "msp430.h" .text .retain .retainrefs RESET mov.w #--STACK-END, SP mov.w mov . w mov.w #0005h,R5 #0006h,R6 #0007h,R7 call #Replace jmp Replace: mov.w R6,R7 mov.w R5, R6 mov.w R7,R5 ret ;Stack Pointer definition .global STACKEND .sect stack Interrupt Vectors .sect RESET VECTOR .short RESET . end .cdecls C,LIST, "msp430.h" .text .retain .retainrefs RESET mov.w #--STACK-END, SP mov.w mov . w mov.w #0005h,R5 #0006h,R6 #0007h,R7 call #Replace jmp Replace: mov.w R6,R7 mov.w R5, R6 mov.w R7,R5 ret ;Stack Pointer definition .global STACKEND .sect stack Interrupt Vectors .sect RESET VECTOR .short RESET . end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
