Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#os4units]

LoadSeg

Scatterload a loadable file into memory

Declaration

Source position: amigados.pas line 2453

function LoadSeg(

  const Name: PChar

):LongInt;

Arguments

Name

  

Name of the file to load

Function result

Pointer to the seglist

Description

The file name should be a load module produced by the linker. LoadSeg() scatterloads the CODE, DATA and BSS segments into memory, chaining together the segments with BPTR's on their first words. The end of the chain is indicated by a zero. There can be any number of segments in a file. All necessary relocation is handled by LoadSeg().

In the event of an error any blocks loaded will be unloaded and a NULL result returned.

If the module is correctly loaded then the output will be a pointer at the beginning of the list of blocks. Loaded code is unloaded via a call to UnLoadSeg().

See also

UnLoadSeg

  

Unload a seglist previously loaded by LoadSeg()

CreateProc

  

Create a new process

CreateNewProc

  

Create a new process from taglist


Documentation generated on: 2021-07-30