Added July 2026
xcall MIAMEX, MX_EXITSTATUS, opcode, status
MX_EXITSTATUS (209) provides a way to get (opcode 0) or set (opcode 1) the exit status of RUN, LIT, and in some cases, SBX modules.
Parameters
opcode (Num) [in]
0 = get, 1 = set
status (Num) [in/out]
Receives or supplies the exit status. In the case of Get, it will be the exit status of the prior execution module—RUN, LIT, or possibly SBX, as noted above. In the case of Set, it sets the pending exit status, i.e. the exit status of the current module that will become active when it exits.
History
2026 July, A-Shell 7.0.1786: Routine added to A-Shell.