Function
The SEGMENT-LIMIT clause enables the user to vary the number of permanent and overlayable fixed segments in his program, while still retaining the logical properties of fixed portion segments (segment-number 0 through 49) and keeping constant the total number of segments in the fixed portion.
Format
SEGMENT-LIMIT IS segment-number
Syntax rules
The SEGMENT-LIMIT clause is supplied in the OBJECT-COMPUTER paragraph. This is an optional clause.
segment-number must be an unsigned integer that ranges in value from 1 through 50.
When the SEGMENT-LIMIT clause is specified, only those segments having segment-numbers up to, but not including, the segment-number designated in the SEGMENT-LIMIT clause are considered as permanent.
Those segments having segment-numbers from the segment limit through 49 are considered to be overlayable fixed segments.
When the SEGMENT-LIMIT clause is omitted, all segments having segment numbers from 0 through 49 are considered as permanent segments of the program.
General rule
Ideally, all program segments having segment-numbers ranging from 0 through 49 are treated as permanent segments. However, when insufficient storage is available to contain all permanent segments plus the largest overlayable segment, the number of permanent segments must be reduced. This may be done by subsequently including a SEGMENT-LIMIT clause with appropriate entries without otherwise changing the program.
Example 13-1
SEGMENT-LIMIT IS 40
This clause indicates that all segments having segment-numbers from 0 through 39 are considered to be permanent segments of the program. Segments having segment-numbers from 40 through 49 are overlayable fixed segments.