F$NMLoad

From NitrOS-9
Jump to: navigation, search
Load a module Loads one or more modules from a file but does not map the module into the user’s address space
OS9 F$NMLoad 103F 22

Entry Conditions

A type / language byte

X address of the pathlist

Exit Conditions

A type / language code

B module revision

X address of the last byte of the pathlist + 1

Y storage requirement for the module

Error Output

CC carry set on error

B error code (if any)

Additional Information

  • If you do not provide a full pathlist for this call, it attempts to load from a file in the current execution directory.
  • Although this call is similar to F$Load, it does not map the specified module into the user’s address space but does return the memory requirement for the module. A calling process can use this memory requirement information to fork a program with a maximum amount of space. F$NMLoad can therefore fork larger programs than can be forked by F$Load.

IOMan