int main(void)
{
unsigned long address;
unsigned long *paddress;
address=0x00000378;
paddress=(unsigned long int *)address;
printf("Data=%Xh\n",*paddress);
return 0;
}
But windows gives a illegal operation error in the created executable when I run it. I guess Win doesn't allow acces to this kind of adresses...or am I doing something horibbly wrong here. Please help me out.
Jasper
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've tried something like:
#include <stdio.h>
int main(void)
{
unsigned long address;
unsigned long *paddress;
address=0x00000378;
paddress=(unsigned long int *)address;
printf("Data=%Xh\n",*paddress);
return 0;
}
But windows gives a illegal operation error in the created executable when I run it. I guess Win doesn't allow acces to this kind of adresses...or am I doing something horibbly wrong here. Please help me out.
Jasper
Try this:
int main(int argc, char *argv[])
#include <stdio.h>
int main(void)
{
unsigned long address;
unsigned long *paddress;
address=0x00000378;
paddress=&address;
printf("Data=%Xh\n",*paddress);
return 0;
}