Yes, I had thought of the FILL directive, but due to the nature of the code (tables, code spread over 4 pages) I would need to put in quite a few. I was wondering if their was a more elegant way of doing this using MPASM. I am implementing code to reprogram the microcontroller remotely, and I want to generate a hex file that will set all unused program words to 0x0000. This way I can determine if the code was loaded in the field (since the unused portions contain 0x0000), or if it was loaded at the factory (where unused portions will contain 0x3FFF). -----Original Message----- From: Pendley, Michael [mailto:mycall@SANDIA.GOV] Sent: March 12, 2002 5:58 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: filling unused program memory Using what assembler or compiler? If you are using MPASM (and I am new to this so be gentile if I am wrong)...how about the "fill" directive. From the MPASM help file: