title: How to write a custom reset() function in C for AVR-Studio?
body: <p>so I've been assigned the task of writing a custom reset() function for an AVR compilation.</p>
  
  <p>I'm given this info - "Atmega128 and Pic24e have the reset interrupt at the program address 0x0. Write a function reset() to reset a program. I've also heard an easy way to force your system to reboot is by sending it into an infinite loop.</p>
  
  <p>Call me crazy, but is this as simple as writing:</p>
  
  <pre><code>function reset(){
    goto 0x00000000;
  }
  </code></pre>
  
  <p>Not sure if you can do that, and not looking for a complex explanation, as I'm pretty sure this is a generic question. Short and sweet if you can :)</p>