Edited 09FEB09.
These routines greatly simplify access to either heap (on processors that support a heap) or eeprom storage.
Selected Subroutines:
Read/WriteHeapByte
Read/WriteHeapInteger
Read/WriteHeapSingle
Read/WriteHeapString
The included test program demonstrates the usage of the functions. See the comment block in HeapDefs.inc for memory type selection.
I have only tested these routines on a CuTouch, which doesn't support heap memory, so I can't guarantee that they will work unmodified on any other processor.
Before using any of the other routines, make sure to start with InitializeHeap (restores current heap values) or ResetHeap (completely resets the heap).
If you find any bugs, or make any cool modifications, please re-post the source.
Rick