Click to See Complete Forum and Search --> : Ask for C function in linux


littlebig
05-02-2001, 04:43 AM
I want to read & write a memory locations e.g. 0x40800000. Can functions in linux C will do?
thanks! :confused:

sans-hubris
05-03-2001, 10:35 AM
Just set a pointer to it:

/*stuff here*/
void* ptr=0x40800000;
/*stuff here*/

Qubit
05-03-2001, 12:29 PM
Be sure you own that memory... Or, for that matter, that the memory exists...

What are you trying to do, exactly? For most of the memory jobs there are other, better ways

littlebig
05-04-2001, 02:06 AM
i need to change the video output to composite. So I have to change the values of memory base address 0x40800000 with offset co4 and c08. What other methods can I use? :confused:

Stuka
05-04-2001, 11:26 AM
Sounds like a job for assembly language to me! hmmm... I think it's www.linuxassembly.org (http://www.linuxassembly.org) - but the link is in this forum somewhere! (or at CCAE (http://www.codeexample.org)).