[AMENDED topic] Detecting an Emergency Stop on Arduino

the closest idea that I found that I think will fit my purpose I found the software example shown here:

or this:

void software_Reset()
// Restarts program from beginning but 
{
  asm volatile ("  jmp 0");  
}