fernly/start.S
Sean Cross 685824f56e fernly: Initial commit
This is an initial commit of the code.  It just does prints "Hello, world!"
2014-06-12 12:58:06 +08:00

49 lines
559 B
ArmAsm

.section vectors
b do_reset
b do_undef
b do_swi
b do_prefetch_abort
b do_data_abort
b do_reserved
b do_irq
b do_fiq
do_reset:
b reset_handler
do_undef:
b undef_handler
do_swi:
b swi_handler
do_prefetch_abort:
b prefetch_abort_handler
do_data_abort:
b data_abort_handler
do_reserved:
b reserved_handler
do_irq:
b irq_handler
do_fiq:
b fiq_handler
.text
.global other
other:
add r1, r2, r1
bx lr
.global __start
__start:
add r3, r2, r3
bx lr
.global _start
_start:
add r4, r3, r4
bx lr
.global other2
other2:
add r5, r4, r5
bx lr