|
-
November 22nd, 2001, 06:25 AM
#1
Memory access
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|