Quoting Michael Rigby-Jones : > > This sounds more like the overlays that some old DOS programs used > rather than a DLL. This would be feasible for very rarely used > functions, but flash memory wear and erase/programming times may well be > a problem for anything else. > > You would probably have to allocate a block of RAM that would be used > only by the paged code and you would have to handle any initialisation > of this memory yourself. > > Regards > > Mike > Oh wow, "overlays" is the term I forgot. Did that on Apple IIe's some time back. For my app, I can share RAM, cause the user will either switch on the device to go into regular mode, or hold down a button while switching it on to go into the configuration mode, which will have the second set of code. In either mode, they have to switch it off to go back to the other mode. Cheers, -Neil. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist