aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/avr8/lib/forth2012/core/eeprom-buffer.frt
blob: 5cb2cebb60e13410eb03b72abebe51d0ee80a731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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