1 ;/****************************************************************
\r
2 ;KPIT Cummins Infosystems Ltd, Pune, India. - 4th September 2003.
\r
4 ;This program is distributed in the hope that it will be useful,
\r
5 ;but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
6 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
\r
8 ;*****************************************************************/
\r
11 ;*********************************************************************
\r
17 ; System initialisation routine - entry point for the application.
\r
18 ; The stack pointer is initialised, then the hardware initialisation
\r
19 ; routine called. The static data areas are then initialised, before
\r
20 ; the main function is executed. A simple exit funtion is also
\r
23 ;*********************************************************************
\r
27 #ifdef __NORMAL_MODE__
\r
33 #endif /*_H8300H_ */
\r
37 #ifdef __NORMAL_MODE__
\r
43 #endif /* __H8300S__ */
\r
51 .extern _hw_initialise
\r
62 ; initialise the SP for non-vectored code
\r
64 ; call the hardware initialiser
\r
67 ; get the boundaries for the .data section initialisation
\r
74 mov.b @er2,r3l ;get from src
\r
75 mov.b r3l,@er0 ;place in dest
\r
76 inc.l #1,er2 ;inc src
\r
77 inc.l #1,er0 ;inc dest
\r
78 cmp.l er0,er1 ;dest == edata?
\r
95 ;Initialize global constructor
\r
99 ; call the mainline
\r