Initial commit.

This commit is contained in:
Jonathan Chan 2018-01-09 13:02:20 -08:00
commit 9ee0e4305d
2 changed files with 26 additions and 0 deletions

22
blink.asm Normal file
View File

@ -0,0 +1,22 @@
.include "msp430g2553.inc"
org 0xC000
start:
;mov.w #0x5a80, &WDTCTL
mov.w #WDTPW|WDTHOLD, &WDTCTL
mov.b #0x41, &P1DIR
mov.w #0x01, r8
repeat:
mov.b r8, &P1OUT
xor.b #0x41, r8
mov.w #40000, r9
waiter:
dec r9
jnz waiter
jmp repeat
org 0xfffe
dw start ; set reset vector to 'init' label

4
blink.hex Normal file
View File

@ -0,0 +1,4 @@
:10C00000B240805A2001F240410022001843C24849
:10C01000210078E041003940409C1983FE23F73F1E
:02FFFE0000C041
:00000001FF