502B SwitchProcess¶
Stub MON 502B (322 decimal) · Mnemonic SWITCHP · Group: Not grouped in manual
Available from: All programs (manual compatibility box)
Emulation source: src/handlers/mon_502B_SwitchProcess.c
Description¶
Sets the current process in a wait state. Restarts another process. This is similar to executing a StartProcess followed by a StopProcess.
Notes¶
- The stopped process restarts immediately if it is scheduled for repeated execution.
Parameters¶
| Name | Type | Direction | Description |
|---|---|---|---|
ProcessNumber |
INTEGER | In | Process number to start. |
Direction: In = the program supplies the value, Out = the call returns it, In/Out = both.
See also¶
Compatibility¶
| Machines | Users | Programs |
|---|---|---|
| ND-500 | All users | All programs |
The manual's compatibility box for this call, word for word.
Yes/no fields from the YAML extraction (not in the manual's words):
| ND-100 | ND-500 | User programs | RT programs | System programs |
|---|---|---|---|---|
| No | Yes | No | No | No |
Examples¶
From the manual (OCR text, not corrected).
INTEGER : ProcessNumber
...
Monitor_Call('SwitchProcess', ProcessNumber)
INTEGER ProcessNumber
...
Monitor_Call('SwitchProcess', ProcessNumber)
ProcessNumber : LONGINT;
...
SwitchProcess(ProcessNumber);
01 ProcessNumber COMP.
...
MONITOR-CALL "SwitchProcess" USING ProcessNumber.
ProcessNumber : W BLOCK 1
SwitchProcess : EQU 37B9 + 502B
...
CALLG SwitchProcess, 1, ProcessNumber
ndmonlib implementation¶
Stub Registered MON_STATUS_NOT_IMPLEMENTED: the handler is a stub. mon_dispatch() in src/core/mon_dispatch.c reports the call as unimplemented without calling it.
| Handler | mon_502B_SwitchProcess |
| Code lines | 6 (non-blank, non-comment lines in the file) |
Source¶
SINTRAN III Monitor Calls (ND-860228.2 EN), page 499.