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

4.104.115
Last change on this file since eecf752 was 0610d21e, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/09 at 15:18:24

2009-11-09 Joel Sherrill <joel.sherrill@…>

  • start/start.S: Remove warning.
  • Property mode set to 100644
File size: 827 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        mov.w   #0,r0           ; pass in NULL
18        jsr     @_boot_card
19        mov.w   #0,r0           ; indicate reason to exit
20        sleep
21        jmp     @_start         ; restart
22#else
23
24#if defined(__H8300H__)
25        .h8300h
26#else /* must be __H300S__ */
27        .h8300s
28#endif
29        .text
30        .global _start
31_start:
32        mov.l   #_stack_init,sp
33        mov.l   #_edata,er0
34        mov.l   #_clear_end,er1
35        mov.w   #0,r2           ; not sure about alignment requirements
36.loop:  mov.w   r2,@er0         ; playing it safe for now
37        adds    #2,er0
38        cmp.l   er1,er0
39        blo     .loop
40        ;       call __main
41        jsr     @_boot_card
42        mov.w   #0,r0           ; indicate reason to exit
43        sleep
44        jmp     @_start         ; restart
45
46#endif /* end of H8300 */
Note: See TracBrowser for help on using the repository browser.