Skip to content

207B GetErrorInfo

Stub   MON 207B (135 decimal) · Mnemonic RERRP · Group: Monitor Calls for Error Handling (manual section 2.8)

Available from: RT programs (manual compatibility box)

Emulation source: src/handlers/mon_207B_GetErrorInfo.c

Description

Gets information about the last real-time error. The monitor call returns the error, the RT program responsible for the error, and the program address where it occurred. A flag tells whether the RT program was aborted or not.

Parameters

Name Type Direction Description
Buffer ARRAY Out A 12 byte buffer receiving error information: bytes 0-1=error number (2 ASCII chars), bytes 2-3=program address, bytes 4-7=additional error info, bytes 8-9=RT description address, bytes 10-11=flag (0=aborted).
ReturnStatus INTEGER Out Returned status in W1. 0 means OK, 153B means illegal output buffer.

Direction: In = the program supplies the value, Out = the call returns it, In/Out = both.

Compatibility

Machines Users Programs
ND-100 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

Disagreement

The manual box says ND-100, but the yes/no fields say ND-100 = Yes, ND-500 = Yes. The manual box is the source.

Examples

From the manual (OCR text, not corrected).

BYTES : Buffer(0:11)
INTEGER : ReturnStatus

    Monitor_Call('GetErrorInfo', Buffer(0), ReturnStatus)
INTEGER Buffer(6)
INTEGER ReturnStatus
...
Monitor_Call('GetErrorInfo', Buffer(1), ReturnStatus)
Buffer : RECORD...END;
ReturnStatus : INTEGER2;
...
ReadErrorParam(Buffer, ReturnStatus); [Note routine name.]
01 Buffer.
02 array COMP OCCURS 6 TIMES.
01 ReturnStatus COMP.
...
MONITOR-CALL "GetErrorInfo" USING Buffer, ReturnStatus.
| LDA   | (PAR)  | %Load register A with address of parameter list.   |
|-------|--------|---------------------------------------------------|
| MON   | 207    | %Monitor call GetErrorInfo.                       |
| JAF   | ERROR  | %Do error handling if register A is non-zero.     |

    ERROR, ...    %Error number in register A.

    PAR, BUFF     %Buffer for returned error information.

    BUFF, 0
    0
    0
    0
    0
    0

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_207B_GetErrorInfo
Code lines 5 (non-blank, non-comment lines in the file)

Source

SINTRAN III Monitor Calls (ND-860228.2 EN), page 241.