??? 07/21/04 12:54 Read: times |
#74576 - RE: infinite loop error trapping Responding to: ???'s previous message |
And will you please explain more about your crash routine as I requested in the original post
Nothing fancy, it exist in many flavors, here are some: for debugging: void Crash(void) { // always set a breakpoint here // look at *SP to see where crash happened } for products with a display Crash: pop acc pop b push b push acc ;routine to display 'error at (hex contents of a and b) reti for some products w/o display void Crash(void) { for (;;;);//make watchdog bite } Erik |