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