3.22EjemploDRM007 Co..
3.22EjemploDRM007 Co..
3.22EjemploDRM007 Co..
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Source <strong>Co</strong>de<br />
7.2.2 START08.H<br />
;<br />
/******************************************************************************<br />
FILE : start08.h<br />
PURPOSE : datastructures for startup<br />
LANGUAGE: ANSI-C<br />
*/<br />
/*****************************************************************************/<br />
#ifndef START08_H<br />
#define START08_H<br />
#ifdef __cplusplus<br />
extern "C" {<br />
#endif<br />
#include "hidef.h"<br />
/*<br />
the following datastructures contain the data needed to<br />
initialize the processor and memory<br />
*/<br />
typedef struct{<br />
unsigned char *_FAR beg;<br />
int size; /* [beg..beg+size] */<br />
} _Range;<br />
typedef struct _<strong>Co</strong>py{<br />
int size;<br />
unsigned char *_FAR dest;<br />
} _<strong>Co</strong>py;<br />
typedef void (*_PFunc)(void);<br />
typedef struct _LibInit{<br />
_PFunc *startup; /* address of startup desc */<br />
} _LibInit;<br />
typedef struct _Cpp{<br />
_PFunc initFunc; /* address of init function */<br />
} _Cpp;<br />
#define STARTUP_FLAGS_NONE 0<br />
#define STARTUP_FLAGS_ROM_LIB (1