URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [h8300hms/] [crt0.S] - Rev 1765
Compare with Previous | Blame | View Log
; h8/300 and h8/300h start up file.#ifdef __H8300__.section .text.global _start_start:mov.w #_stack,spmov.w #_edata,r0mov.w #_end,r1mov.w #0,r2.loop: mov.w r2,@r0adds #2,r0cmp r1,r0blo .loopjsr @___mainjsr @_mainjsr @_exit.section .stack_stack: .word 1#endif#ifdef __H8300H__.h8300h.section .text.global _start_start:mov.l #_stack,spmov.l #_edata,er0mov.l #_end,er1mov.w #0,r2 ; not sure about alignment requirements.loop: mov.w r2,@er0 ; playing it safe for nowadds #2,er0cmp.l er1,er0blo .loopjsr @___mainjsr @_mainjsr @_exit.section .stack_stack: .long 1#endif#ifdef __H8300S__.h8300s.section .text.global _start_start:mov.l #_stack,spmov.l #_edata,er0mov.l #_end,er1mov.w #0,r2 ; not sure about alignment requirements.loop: mov.w r2,@er0 ; playing it safe for nowadds #2,er0cmp.l er1,er0blo .loopjsr @___mainjsr @_mainjsr @_exit.section .stack_stack: .long 1#endif
