BleuLlama / TinyBasicPlus

A C implementation of Tiny Basic, with a focus on support for Arduino
406 stars 118 forks source link

Would adding 23LC1024 increase the SRAM, 39 bytes free #25

Closed spairo1741 closed 6 years ago

spairo1741 commented 7 years ago

After compilling TinyBasicPlus i received a message " HELLO TinyBasic Plus v0.15 39 bytes free. 1024 EEProm bytes total. OK

mem 39 bytes free. 1024 EEProm bytes total. 877 EEProm bytes available. " Adding 23LC1024 increase the SRAM ?

BleuLlama commented 7 years ago

Sure. You'll have to rewrite the memory accesses to work through it though.

If you need more space, turn off some of the options (SD interface, beeper etc)

On Wed, Jun 21, 2017 at 11:52 AM, spairo1741 notifications@github.com wrote:

After compilling TinyBasicPlus i received a message " HELLO TinyBasic Plus v0.15 39 bytes free. 1024 EEProm bytes total. OK

mem 39 bytes free. 1024 EEProm bytes total. 877 EEProm bytes available. " Adding 23LC1024 increase the SRAM ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BleuLlama/TinyBasicPlus/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEPmJF0798xbeC7qf1yWdVvj5UTvWMCks5sGTwigaJpZM4OBKuC .

-- Scott Lawrence yorgle@gmail.com

vitasam commented 6 years ago

Hi, I just recently found this project. Great job!

I have my own (slow progressing) DIY project - an Arduino-Nano shield with 8x5 keyboard, 16x2 LCD and 23LC1024 SRAM.

I hope that it will be possible to fit TinyBasicPlus and LCD driver in to atmega368p. And it will be great to modify memory access to support 128Kb SRAM chip.

vitasam commented 6 years ago

Found this one: https://github.com/rhelmus/virtmem

BleuLlama commented 6 years ago

As mentioned in another ticket, the overhead with using a virtual memory library is great. You'd lose the 39 bytes you have free before gaining access to the new RAM! :(

Also, the code itself is kinda messy with regard to expanding it such that it uses external RAM for the program and command line.

There has been discussion of adding SPI or I2C calls to the language to accomodate SPI ram for general storage.

BleuLlama commented 6 years ago

Closing this ticket in favor of tickets #41 and #42 which cover adding the functionality mentioned here.