Administrator
|
The Sys OS library has a function called 'halt' which is specifically intended to halt program execution.
Under the hood, what this does is perform a return to the initialization function that is called when your program starts, at which point that program enters an infinite loop that does nothing except prevent code execution from wandering aimlessly through ROM.
|