21.43 GET or INCLUDE
GET directive includes a file within the file being assembled. The included file is assembled at the location of the
INCLUDE is a synonym for
is the name of the file to be included in the assembly.The assembler accepts pathnames in either UNIX or MS-DOS format.
GET is useful for including macro definitions,
EQUs,and storage maps in an assembly. When assembly of the included fileis complete, assembly continues at the line following the
By default the assembler searches the current place for includedfiles. The current place is the directory where the calling fileis located. Use the
-i assembler command line optionto add directories to the search path. File names and directorynames containing spaces must not be enclosed in double quotes (" " ).
The included file can contain additional
GET directivesto include other files.
If the included file is in a different directory from thecurrent place, this becomes the current place until the end of theincluded file. The previous current place is then restored.
You cannot use
GET to include objectfiles.
AREA Example, CODE, READONLY GET file1.s ; includes file1 if it exists in the current place GET c:\project\file2.s ; includes file2 GET c:\Program files\file3.s ; space is permitted