Skip to content

53B GetSegmentEntry

Stub   MON 53B (43 decimal) · Mnemonic RSEGM · Group: Segment Administration (manual section 2.12)

Available from: All programs (manual compatibility box)

Emulation source: src/handlers/mon_53B_GetSegmentEntry.c

Description

Gets information about a segment in the ND-100. The monitor call returns the segment entry. You specify the segment number. See the SINTRAN III Real Time Guide (ND-860133) for further information.

  • Use GetSegmentNo to get a segment number from a segment name.

Parameters

Name Type Direction Description
SegmentNumber INTEGER In Segment number. Use 0 for RT common.
Buffer ARRAY Out Buffer to receive segment entry (5 words / 10 bytes).

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

See also

@LIST-SEGMENT, the SINTRAN-SERVICE-PROGRAM command DUMP-SEGMENT-TABLE-ENTRY

Compatibility

Machines Users Programs
ND-100 and ND-500 User RT and user SYSTEM 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
Yes Yes No No No

Examples

From the manual (OCR text, not corrected).

INTEGER : SegmentNumber
BYTES : Buffer(0:9)
ON ROUTINEERROR DO
IF ErrCode > 0 THEN ...
ENDON
...
Monitor_Call('GetSegmentEntry', SegmentNumber, Buffer(0))
INTEGER SegmentNumber
INTEGER Buffer(5)
...
Monitor_Call1('GetSegmentEntry', SegmentNumber, Buffer(1))
IF (ErrCode .NE. 0) THEN ...
SegmentNumber : INTEGER2;
Buffer : RECORD...END;
...
ReadSegmentEntry(SegmentNumber, Buffer); [Note routine name.]
IF ErrCode <> 0 THEN ...
01 SegmentNumber COMP.
01 Buffer.
   02 array COMP OCCURS 5 TIMES.
01 ErrCode COMP.
...
MONITOR-CALL "GetSegmentEntry" USING SegmentNumber, Buffer.
CALL "CbError" USING ErrCode.
IF ErrCode NOT = 0 GO ...
SegmentNumber : W BLOCK 1
Buffer : W BLOCK 5
GetSegmentEntry : EQU 37B9 + 53B
...
CALLG GetSegmentEntry, 2, SegmentNumber, Buffer
LDA (PAR %Load register A with address of parameter list.
MON 53 %Monitor call GetSegmentEntry.
JMP ERROR %Handle error.
... %Normal return.
ERROR, ...
...

PAR, SEGNO %Segment number.
BUFF %Buffer for receiving a segment entry.
...

SEGNO, ...
BUFF, 0
*+6/ %Make a 6 word buffer.
...

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

Source

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