Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

AddSegment

Adds a resident segment to the resident list

Declaration

Source position: amigados.pas line 2151

function AddSegment(

  name: PChar;

  seg: LongInt;

  system: LongInt

):LongBool;

Arguments

name

  

Name of the segment. This is used by FindSegment(). Will be copied.

seg

  

Segment to add.

Function result

<> 0 = success, 0 = Error

Description

Adds a program segment to the system resident list. You can later use these segments to run programs.

The type field determines the type of resident program. Normal programs should have type >= 0, system segments should have type = CMD_SYSTEM.

Note that all other values of type are reserved.

See also

FindSegment

  

Finds a segment on the resident list

RemSegment

  

Removes a resident segment from the resident list

LoadSeg

  

Scatterload a loadable file into memory


Documentation generated on: 2021-07-30