I think the following line is wrong here:
Code: Select all
unsigned long * pt = ((unsigned long *)0xFFC00000) + (0x400 * pdindex);
Code: Select all
unsigned long * pt = ((unsigned long *)0xFFC00000) + (0x1000 * pdindex);
Code: Select all
unsigned long * pt = ((unsigned long *)0xFFC00000) + (0x400 * pdindex);
Code: Select all
unsigned long * pt = ((unsigned long *)0xFFC00000) + (0x1000 * pdindex);
Code: Select all
int *p = ...
p += 5; //adds 5*sizeof(int)
short *p = ...
p += 3; //add 3*sizeof(short)