I am trying to assign values in main program.
typedef struct PointStructure
{ unsigned char x;
unsigned char y;
unsigned char offset;
unsigned char page;
}point;
volatile far point p;
volatile far point AryP[5];
The only way I could assign values to the structure p in main program is
p.x=10;
p.y=20;
p.offset=0;
p.page=1;
This way it will take a lot of space and time for me to assign values to the arrays. Is there a better way to do this?
Following ways did not work for me..
p = {10, 20, 0, 1};
p = {.x = 10, .y=20, .offset=0, .page=1};