summaryrefslogtreecommitdiff
path: root/www/example/start.s
diff options
context:
space:
mode:
Diffstat (limited to 'www/example/start.s')
-rw-r--r--www/example/start.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/example/start.s b/www/example/start.s
new file mode 100644
index 0000000000..fd4669db56
--- /dev/null
+++ b/www/example/start.s
@@ -0,0 +1,23 @@
1! note: sh-1 has a "delay cycle" after every branch where you can
2! execute another instruction "for free".
3
4 .file "start.s"
5 .section .text.start
6 .extern _main
7 .extern _vectors
8 .extern _stack
9 .global _start
10 .align 2
11
12_start:
13 mov.l 1f, r1
14 mov.l 3f, r3
15 mov.l 2f, r15
16 jmp @r3
17 ldc r1, vbr
18 nop
19
201: .long _vectors
212: .long _stack
223: .long _main
23 .type _start,@function