-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasm.s43
19 lines (14 loc) · 819 Bytes
/
asm.s43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "msp430.h" ; #define controlled include file
NAME main ; module name
PUBLIC main ; make the main label vissible
; outside this module
ORG 0FFFEh
DC16 init ; set reset vector to 'init' label
RSEG CSTACK ; pre-declaration of segment
RSEG CODE ; place program in 'CODE' segment
init: MOV #SFE(CSTACK), SP ; set up stack
main: NOP ; main program
MOV.W #WDTPW+WDTHOLD,&WDTCTL ; Stop watchdog timer
JMP $ ; jump to current location '$'
; (endless loop)
END