How to create a shared var in RAM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-01-22 4:19 AM
Posted on January 22, 2011 at 13:19
How to create a shared var in RAM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:22 AM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:22 AM
Posted on May 17, 2011 at 14:22
good idea !
Thanks clive.