source: rtems/c/src/lib/libbsp/h8300/h8sim/start/start.S @ 6128a4a

4.104.114.84.95
Last change on this file since 6128a4a was 6128a4a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 10:43:04

Remove stray white spaces.

  • Property mode set to 100644
File size: 798 bytes
Line 
1; h8/300 and h8/300h start up file.
2
3#ifdef __H8300__
4
5        .text
6        .global _start
7_start:
8        mov.w   #_stack_init,sp
9        mov.w   #_edata,r0
10        mov.w   #_clear_end,r1
11        mov.w   #0,r2
12.loop:  mov.w   r2,@r0
13        adds    #2,r0
14        cmp     r1,r0
15        blo     .loop
16        ;       call __main
17        jsr     @_boot_card
18        mov.w   #0,r0           ; indicate reason to exit
19        sleep
20        jmp     @_start         ; restart
21#else
22
23#if defined(__H8300H__)
24        .h8300h
25#else /* must be __H300S__ */
26        .h8300s
27#endif
28        .text
29        .global _start
30_start:
31        mov.l   #_stack_init,sp
32        mov.l   #_edata,er0
33        mov.l   #_clear_end,er1
34        mov.w   #0,r2           ; not sure about alignment requirements
35.loop:  mov.w   r2,@er0         ; playing it safe for now
36        adds    #2,er0
37        cmp.l   er1,er0
38        blo     .loop
39        ;       call __main
40        jsr     @_boot_card
41        mov.w   #0,r0           ; indicate reason to exit
42        sleep
43        jmp     @_start         ; restart
44
45#endif /* end of H8300 */
Note: See TracBrowser for help on using the repository browser.