cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a shared var in RAM

Kuikui
Associate III
Posted on January 22, 2011 at 13:19

How to create a shared var in RAM

2 REPLIES 2
Posted on May 17, 2011 at 14:22

Truncate the amount of RAM the compiler/linker can see, and then define a variable or structure at the end of memory as a common space.

unsigned *foo = (unsigned *)0x20004F00;

if (*foo == 0x1234ABCD) // Check Magic

{

    *foo = 0xABCD1234; // Invalidate Magic

    puts(''Magic Value 1 Detected'');

}

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Kuikui
Associate III
Posted on May 17, 2011 at 14:22

good idea !

Thanks clive.