AnsweredAssumed Answered

What is startup data structure for S12ZVM and How it gets intialised ?

Question asked by AMEY KHATAVKAR on Feb 2, 2016
Latest reply on Feb 3, 2016 by Radek Sestak

Hi,

 

While going to the start up code I come across the startupData structure.

 

*********************************************************************************************

STARTUP SECTION

---------------------------------------------------------------------------------------------

Entry point: 0xFE004F (_EntryPoint)

_startupData is allocated at 0xFE00A2 and uses 20 Bytes

extern struct _tagStartup {

  unsigned nofZeroOut     1

  _Range   pZeroOut       0x1200     62

  _Copy    *toCopyDownBeg 0xFE052A

  int      nofInitBodies  0

  _Cpp     *initBodies    0xFE00BD

  int      nofFiniBodies  0

  _Cpp     *finiBodies    0xFE00BD

} _startupData;

 

I understood the code, but I would like to know that, how it gets initialized?

Who is responsible for the same?

And is it always located at address 0xFE00A2 ?

Also Is EntryPoint address (0xFE004F is always same?

 

Regards,

Amey

Outcomes