Dear Sir:
I was programming an "assembly language only" project using Code Composer Studio.
The assembly language code, supplied by TI, refers to a command, #__STACK_END, that I would like to have defined explicitly.
Below is a copy of the "template" code supplied by TI:
______________________________________________________________________________________________
; MSP430 Assembler Code Template for use with TI Code Composer Studio
;
;
;-------------------------------------------------------------------------------
.cdecls C,LIST,
"msp430.h" ; Include device header file
;-------------------------------------------------------------------------------
.text ; Assemble into program memory
.retain
; Override ELF conditional linking
; and retain current section
.retainrefs
; Additionally retain any sections
; that have references to current
; section
;-------------------------------------------------------------------------------
RESET mov.w #__STACK_END,SP
; Initialize stackpointer
StopWDT mov.w #WDTPW|WDTHOLD,&WDTCTL
; Stop watchdog timer
;-------------------------------------------------------------------------------
; Main loop here
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; Stack Pointer definition
;-------------------------------------------------------------------------------
.global __STACK_END
.sect .stack
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect
".reset" ; MSP430 RESET Vector
.short RESET
_____________________________________________________________________________________
Can anyone please explicitly define the command: #__STACK_END
in terms of its constituent instructions in assembly language?