lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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