How to read/write an 'address' from a memory location......
- From: aeroboro221@xxxxxxxxxxxxxx
- Date: Wed, 17 Oct 2007 22:16:23 -0700
I am trying to read an address from a memory location and then write
into that memory location.
i.e.
<i>
unsigned long * mem_pointer = 0x93700020; //Valid memory location on
my hardware
unsigned long mem_value = *mem_pointer; //Retrieve the value (another
memory location) from
//the
pointer
</i>
The question is - How do i use the value at <i> mem_value </i> as an
address? Basically, I want to do something like.
<i>
*(unsigned char *)mem_value = 10.
</i>
Thanks and warm regards,
Rintu
.
- Follow-Ups:
- Re: How to read/write an 'address' from a memory location......
- From: Hans-Bernhard Bröker
- Re: How to read/write an 'address' from a memory location......
- From: Vladimir Vassilevsky
- Re: How to read/write an 'address' from a memory location......
- From: Wim Lewis
- Re: How to read/write an 'address' from a memory location......
- From: Grant Edwards
- Re: How to read/write an 'address' from a memory location......
- From: CBFalconer
- Re: How to read/write an 'address' from a memory location......
- From: karthikbalaguru
- Re: How to read/write an 'address' from a memory location......
- Prev by Date: Re: 32 bit uart
- Next by Date: want to find a startup kernel configuration
- Previous by thread: Looking for 9 bit RS485 solutions
- Next by thread: Re: How to read/write an 'address' from a memory location......
- Index(es):