Sorc
November 22nd, 2001, 05:25 AM
Its a simple problem but I am having problems with accessing the (physical) memory. The problem i'm facing is as follows: I want to access the memory at a memory location (say 0x8000).The code i'm using for this purpose is as follows:
unsigned int j;
char xdata *w_ptr;
j = 0x8000;
w_ptr = (char *)j; // I want the pointer to point to memory location 0x8000.
*w_ptr = data; // then transfer some bytes of data in the memory location
I want to whether in the above code, does the pointer w_ptr really point to the desired location (in this case: 0x8000) ?
Some1 please help me out, Thankyou in advance.
unsigned int j;
char xdata *w_ptr;
j = 0x8000;
w_ptr = (char *)j; // I want the pointer to point to memory location 0x8000.
*w_ptr = data; // then transfer some bytes of data in the memory location
I want to whether in the above code, does the pointer w_ptr really point to the desired location (in this case: 0x8000) ?
Some1 please help me out, Thankyou in advance.