-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpre1.s43
32 lines (27 loc) · 1014 Bytes
/
pre1.s43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <msp430xG46x.h> ;define controlled include file
ORG 1100h
avivID DW 0,8,4,8,8,9,7,3
asafID DW 1,3,3,9,0,4,2,9
SIZE DW 9
RSEG CODE ; ORG 0x3100 - place program in 'CODE' segment in to Flash memory
Main MOV SIZE,R5
MOV #avivID,R6
MOV #asafID,R7
CLR R4
Loop DEC R5
JZ L
MOV @R6,R8
MOV @R7,R9
XOR R8,R9
ADD R9,R4
INCD R6
INCD R7
JMP Loop
L JMP L ; infinite loop
NOP ; to remove warnings
;-------------------------------------------------------------------------------
COMMON INTVEC ; Interrupt Vectors
;-------------------------------------------------------------------------------
ORG RESET_VECTOR ; POR, ext. Reset
DW Main
END