Fixed top posting (tsk, tsk! :) Danny Miller wrote: >> Is there a predefined macro or a function that does this? >> >> __asm__ volatile ("reset") > > That pretty much does it. > > C does not need invoke reset gracefully, because neither C nor any > language cannot handle reset "gracefully". The stack and the context > are instantly gone when this happens on hardware. I guess it's just strange that there are things like Nop(), but no Reset() in C30. Vitaliy -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist