extract

Name

extract --  controls the use of library modules

Syntax

syntaxminimal syntax

extract =(library [,library...] =module [,module...])

ex =(library [,library...] =module [,module)...]

Description

The name of each module in the library is checked against those specified on the command; if a match is found, that module is loaded.

If the only modules linked are obtained from EXTRACT commands, then the default file names for output files are obtained from the first EXTRACT library.

Note: EXTRACT forces a module to be linked even if it is not required to satisfy any externals, unlike libfile.

Example

Load math routines from a library using a command file.

	C:\COP8\NSASM\EXAMPLES>lncop.exe /file=sample.fil
	
	; sample.fil

	LOAD sample1.obj,sample2.obj,sample3.obj,sample4.obj
	EXTRACT= (mathlib=sine,cosine,tan)