[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua with Paged / Banked memory architecture
- From: Bogdan Marinescu <bogdan.marinescu@...>
- Date: Sat, 28 Mar 2009 23:16:24 +0200
PICs you say? Maybe you could use this then:
Probably reasonably easy to adapt for your needs.
On Sat, Mar 28, 2009 at 11:08 PM, Nick Gammon <email@example.com>
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
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)