Fellow PICsters, I have some code that uses all of bank 2 on a 16F877 as a dynamic memory heap. There is an alloc for getting a chunk of registers a free for returning them to the heap Also a garbage collector for when things become too fragmanted (but I've not used/tested this very much yet) There is a one byte overhead per allocated chunk. I'll tidy up the code an post it here if anyone is interested. Peter -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu