On Sat, Mar 28, 2009 at 11:08 PM, Nick Gammon
<nick@gammon.com.au> wrote:
Hmmm, Lua on a PIC chip eh? Sounds interesting. Which chip is it, if you don't mind my asking?
One possible solution would be to simply implement the memory access via an extra function you add, eg.
PutIntoMemory (bank, string) -- put up to 16 Kb string into a bank
and
GetFromMemory (bank, string) -- get string back
Depending on what you are trying to achieve with the application, that might work. Or let the access to the banked memory be accessible by key (eg. by using an STL map type).
For example, if you are just trying to log a lot of numbers into the memory, you might do this:
PutIntoMemory (bank, key, number)
- Nick