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

InternalLoadSeg

Low-level load routine

Declaration

Source position: amigados.pas line 2137

function InternalLoadSeg(

  fh: LongInt;

  table: LongInt;

  var funcarray: LongInt;

  var stack: LongInt

):LongInt;

Arguments

fh

  

Filehandle to load from

table

  

ignored

funcarray

  

array of functions to be used for read, seek, alloc and free

stack

  

pointer to storage for stacksize. (currently ignored)

Function result

Pointer to loaded Seglist or nil in case of failure.

Description

Loads from fh. Functionarray is a pointer to an array of functions.

This function really only tries to load the different file formats aos, elf and aout.

FuncTable[0]
bytes = ReadFunc(readhandle, buffer, length), DOSBase
FuncTable[1]
Memory = AllocFunc(size,flags), ExecBase
FuncTable[2]
FreeFunc(memory, size), ExecBase
FuncTable[3] -
pos = SeekFunc(readhandle, pos, mode), DOSBase

See also

LoadSeg

  

Scatterload a loadable file into memory

UnLoadSeg

  

Unload a seglist previously loaded by LoadSeg()

NewLoadSeg

  

Improved version of LoadSeg for stacksizes


Documentation generated on: 2021-07-30