-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathascii_bcd.ewp
More file actions
28 lines (20 loc) · 814 Bytes
/
ascii_bcd.ewp
File metadata and controls
28 lines (20 loc) · 814 Bytes
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
#include "msp430.h" ; #define controlled include file
NAME main ; module name
PUBLIC main ; make the main label vissible
; outside this module
ORG 0FFFEh
ORG 0FFFEH
DC16 init ; set reset vector to 'init' label
RSEG DATA16_N
ASC: DS 4H
RSEG CODE ; place program in 'CODE' segment
init:
main: NOP ; main program
CLR R4
MOV.W #0X42,R4
SUB.W #0X30,R4
CLR R7
MOV.W R4,0X3020(R7)
JMP $ ; jump to current location '$'
; (endless loop)
END