projects
/
cortex-from-scratch
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
first commit, basic setup and makefile
[cortex-from-scratch]
/
start.asm
1
.equ STACK_TOP, 0x20000800
2
.text
3
.global _start
4
.code 16
5
.syntax unified
6
_start:
7
.word STACK_TOP, start
8
.type start, function
9
10
/* Start of main program */
11
start:
12
movs r0, #10
13
movs r1, #5
14
loop:
15
adds r1, r0
16
subs r0, #1
17
bne loop
18
/* Result is now in R1 */
19
deadloop:
20
b deadloop
21
.end
22