mikaelpatel / Arduino-Shell

RPN Postscript/Forth Command Shell for Arduino
19 stars 5 forks source link

Enhance: Allow scripts in EEMEM #33

Closed mikaelpatel closed 8 years ago

mikaelpatel commented 8 years ago

Functions defined interactively should be copied to EEMEM. This would require the interpretor to understand an additional address space. In general all usage of SRAM should be reduced to a minimum.

mikaelpatel commented 8 years ago

To implement this requires; 1) ";" to copy to EEMEM instead of the heap, 2) extend with a new instruction fetch handler for EEMEM, 3) reduce usage ";" to SRAM buffer only (not PROGMEM/EEMEM).

mikaelpatel commented 8 years ago

Please see commit https://github.com/mikaelpatel/Arduino-Shell/commit/dfa2fc5d89ec6461a474555ed1942681c839e35a.

This is the first step towards persistent scripts in EEPROM (i.e. remain in memory after reboot).

mikaelpatel commented 8 years ago

Full persistent script handling implemented. Please see commit https://github.com/mikaelpatel/Arduino-Shell/commit/8f62fa19d85233e86d9dc597d5290ca08e06e8c0.