aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/lib/forth2012/core/eeprom-buffer.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/avr8/lib/forth2012/core/eeprom-buffer.frt')
-rw-r--r--amforth-6.5/avr8/lib/forth2012/core/eeprom-buffer.frt15
1 files changed, 15 insertions, 0 deletions
diff --git a/amforth-6.5/avr8/lib/forth2012/core/eeprom-buffer.frt b/amforth-6.5/avr8/lib/forth2012/core/eeprom-buffer.frt
new file mode 100644
index 0000000..5cb2ceb
--- /dev/null
+++ b/amforth-6.5/avr8/lib/forth2012/core/eeprom-buffer.frt
@@ -0,0 +1,15 @@
+\ internal EEPROM routines. They do not operate on external
+\ storage
+
+\ Ebuffer: is the EEPROM pendant to buffer: from forth200x
+\ it takes the number of bytes to allocate in RAM and parses
+\ SOURCE for the name to give to the buffer
+
+\ Eallot is the EEPROM pendant for allot from the core word set
+\ it allocates n bytes of EEPROM storage and return the starting
+\ address.
+
+: Eallot ehere + to ehere ;
+: Ebuffer: ehere constant Eallot ;
+
+\ for usage see http://amforth.sourceforge.net/TG/recipes/EEPROM.html