Skip to content

167B AttachSegment

Stub   MON 167B (119 decimal) · Mnemonic REENT · Group: Segment Administration (manual section 2.12)

Available from: All programs (manual compatibility box)

Emulation source: src/handlers/mon_167B_AttachSegment.c

Description

Attaches a reentrant segment to your two current segments. The address areas of the segments may overlap. Pages in the reentrant segment may be accessed for reading, writing, or fetching instructions. When written to, a page loses its reentrancy. It is stored on one of your current overlapping segments.

Notes

  • The segment is treated as reentrant only for the RT programs which have attached it.
  • Parts of the reentrant segment may not be outside the address area of your current segments. OUTSIDE SEGMENT BOUNDS is output if these parts are written to.

Parameters

Name Type Direction Description
SegmentNumber INTEGER In Segment number of the reentrant segment. See @LIST-REENTRANT.

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

See also

ReentrantSegment

Compatibility

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

INTEGER : SegmentNumber
...
Monitor_Call('AttachSegment', SegmentNumber)
INTEGER SegmentNumber
...
Monitor_Call('AttachSegment', SegmentNumber)
SegmentNumber : INTEGER2;
...
AttachSegment(SegmentNumber);
01 SegmentNumber COMP.
...
MONITOR-CALL "AttachSegment" USING SegmentNumber.
LDA (PAR                 %Load register A with address of parameter list.
MON 167                  %Monitor call AttachSegment.
...
PAR,
SEGNO                    %Segment number
SEGNO, ...

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

Source

SINTRAN III Monitor Calls (ND-860228.2 EN).