This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

last instruction of a program

is it required that the last instruction of a C51 program be something like this.

LABEL:SJMP LABEL

Ali Akbar

Parents
  • Depends. Few programs has a busy-loop at the end of the code. Most programs have a big loop that runs forwever, checkif for any serial data, keypresses etc.

    An embedded application are not expected to end - there are no OS that will "return to the command line" when an application ends.

Reply
  • Depends. Few programs has a busy-loop at the end of the code. Most programs have a big loop that runs forwever, checkif for any serial data, keypresses etc.

    An embedded application are not expected to end - there are no OS that will "return to the command line" when an application ends.

Children