On Oct 4, 2008, at 9:25 AM, Spehro Pefhany wrote: >> __asm__ volatile ("reset") > > Why the heck would you want that rather than using the standard C exit > function? > > "exit calls any functions registered by atexit in reverse order of > registration, flushes buffers, closes stream, closes any temporary > files created with tmpfile, and resets the processor. Um. Does that imply a CPU reset? I would class "exit" as an operating system or runtime environment call, totally inapplicable on a system without an OS or runtime environment external to the "application" and probably not applicable to embedded systems. BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist