program exit

General discussions about working with the Astrobe IDE and programming ARM Cortex-M0, M3, M4 and M7 microcontrollers.
Post Reply
steve64
Posts: 43
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

program exit

Post by steve64 » Tue Jul 24, 2018 7:57 am

What's the internal behavior in case of omitting an endless loop at the end of the main program module?

cfbsoftware
Site Admin
Posts: 493
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: program exit

Post by cfbsoftware » Tue Jul 24, 2018 11:15 am

You do not need to add an endless loop to the end of the main program module. The instruction following the return from Main is:

Code: Select all

self: b.w self

Post Reply