rockbox/www/example/start.s
Björn Stenberg d6023a7ade Initial version
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@34 a1c6a512-1295-4272-9138-f99709370657
2002-03-27 11:21:50 +00:00

23 lines
384 B
ArmAsm

! note: sh-1 has a "delay cycle" after every branch where you can
! execute another instruction "for free".
.file "start.s"
.section .text.start
.extern _main
.extern _vectors
.extern _stack
.global _start
.align 2
_start:
mov.l 1f, r1
mov.l 3f, r3
mov.l 2f, r15
jmp @r3
ldc r1, vbr
nop
1: .long _vectors
2: .long _stack
3: .long _main
.type _start,@function