Include directives

An Include directive is a pseudoinstruction used for temporarily inserting the text from one file into the text of another file just before assembly. The pseudoinstruction has the following parts:

label: .include text-file-name comment

The word ".include" and the text file name must be included, but the comment and the label are optional. The text file name must be a string of 1 or more characters surrounded by double quotes or chevron quotes. For example, suppose a file F contains the Include directive:

	.include "W1-0.h"

Then, at the point in F at which the Include directive appears, the contents of file "W1-0.h" are temporarily inserted for the purpose of assembly. The quoted part of the Include directive must be the pathname of the file to be inserted. This pathname is relative to the file F. For example, the Include directive above assumes that the file "W1-0.h" is in the same directory as F. If the file "W1-0.h" is in a subdirectory called "defs", for example, then the include directive should say:

	.include "defs/W1-0.h"

If the file "W1-0.h" is in the parent directory of F, then the Include directive should say:

	.include "../W1-0.h"

If the file F contains the Include directive:

	.include <W1-0.h>
then CPU Sim will search for the file W1-0.h relative to the directory containing the current machine (that is, the .cpu file containing the current machine) instead of relative to the directory containing F.