[an error occurred while processing this directive]
|
/*First we define some constant objects we wish*/
/*to use as read only objects and declare with */
/*a -Z(CODE)segment directive in an .xcl file*/#pragma memory=constseg(MY_CONST_SEGMENT)
int const_int = 0x00FF;
char const_char = 0x0E;#pragma memory=default
/*Next we create a segment of read/write objects*/
/*with a pragma to be defined in a linker command*/
/*file using a -Z(DATA)segment definition operator*/
#pragma memory=dataseg(MYDATASEG)int myint;
char mychar;
#pragma memory=default
/*These objects will reside in one of the UDATA*/
/*Segments since the pragma is delimitted above*/
int glo_int;
char glo_char;
void main(void)
{
myint = const_int;
mychar = const_char;
glo_int = myint;
glo_char = mychar;
}
E-mail: info@telesys.ru