Re: > >Does anyone know a way to fill unused program memory with an assembly 'GOTO >$' using a Hi-Tech C compiler directive? memset() is part of PIC C, However, it doesn't work in bank2 and bank3. Here's what I use to clear a structure in any bank: char n; structureType * structP; n = sizeof(structureType); structP = instanceofstructure; while (n--); *structP++ = '\0'; so you can replace the '\0' with whatever a GOTO $ assembles to. -- ______________________________________ Andrew E. Kalman, Ph.D. aek@netcom.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu