106B StartOnInterrupt¶
Stub MON 106B (70 decimal) · Mnemonic CONCT · Group: RT Program Execution (manual section 2.10)
Available from: RT programs (manual compatibility box)
Emulation source: src/handlers/mon_106B_StartOnInterrupt.c
Description¶
StartOnInterrupt connects an RT program to interrupts from a device. The RT program starts when an interrupt occurs. Use either WaitForRestart or SuspendProgram to make the program wait.
- You can remove this connection with NoInterruptStart.
- Several devices may be connected to one program.
- It is impossible to connect to some devices. Connection can be made if SINTRAN III has been generated with a connect driver routine for the device.
Parameters¶
| Name | Type | Direction | Description |
|---|---|---|---|
RTProgram |
INTEGER2 | In | Address of RT description. Use 0 for your own RT description address. |
DeviceNumber |
INTEGER2 | In | Logical device number. See appendix B. |
Direction: In = the program supplies the value, Out = the call returns it, In/Out = both.
See also¶
NoInterruptStart, @CONCT
Compatibility¶
| Machines | Users | Programs |
|---|---|---|
| ND-100 and ND-500 | User RT and user SYSTEM | RT 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 |
|---|---|---|---|---|
| Yes | Yes | Yes | Yes | No |
Examples¶
From the manual (OCR text, not corrected).
INTEGER : RTProgram, DeviceNumber
...
Monitor_Call('StartOnInterrupt', RTProgram, DeviceNumber)
INTEGER RTProgram, DeviceNumber
...
Monitor_Call('StartOnInterrupt', RTProgram, DeviceNumber)
RTProgram, DeviceNumber : INTEGER2;
...
StartOnInterrupt(RTProgram, DeviceNumber);
01 RTProgram COMP.
01 DeviceNumber COMP.
...
MONITOR-CALL "StartOnInterrupt" USING RTProgram, DeviceNumber.
RTProgram : W BLOCK 1
DeviceNumber : W BLOCK 1
StartOnInterrupt : EQU 3789 + 106B
...
CALLG StartOnInterrupt, 2, RTProgram, DeviceNumber
LDA (PAR %Load register A with address of parameter list.
MON 106 %Monitor call StartOnInterrupt.
...
| PAR | RTPRO | %Address of RT description. |
|--------|-------------|-----------------------------|
| DEVNO | | %Logical device number. |
| ... | RTPRO, ... | |
| DEVNO, | ... | |
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_106B_StartOnInterrupt |
| Code lines | 7 (non-blank, non-comment lines in the file) |
Source¶
SINTRAN III Monitor Calls (ND-860228.2 EN), page 481.