xcall MIAMEX, MX_EXIT
This function causes an immediate exit from A-Shell. Control is returned either to the host machine command level, or to a batch or shell-script file if one is running.