Home | History | Annotate | Download | only in ld-sh
      1 	.section .text
      2 	.global	start
      3 start:
      4 
      5 	mov.l	stack_k,r15
      6 
      7 	! call the mainline
      8 L1:
      9 	mov.l	main_k,r0
     10 	.uses	L1
     11 	jsr	@r0
     12 	nop
     13 
     14 	.align 2
     15 stack_k:
     16 	.long	_stack
     17 main_k:
     18 	.long	_main
     19 
     20 	.global _trap
     21 _trap:
     22 	trapa #3
     23 	rts
     24 	nop
     25 
     26 	.section .stack
     27 _stack:	.long	0xdeaddead
     28