We have seen previously that the linker is invoked in three modes i.e. they are command line mode, prompt mode and data file mode. In the Prompt mode the linker is run by simply typing the ‘LINK85<cr>’. Responding to the prompt the linker requests the user for the file name. In the given example, responding with ‘MULT.OBJ<cr>’ is there in fact MULT<cr> is enough.
The linker prompts for the address of the offset. The value of the offset which is input by means of the user is finally added to the value of any ORG statements in the file. In response with the user the change of address <cr>, no value of offset is obtained.
The name of the output file is then prompted by the linker. In general, the user responds with the change of address <cr> which causes the linker for generation of the output file with the exact same name of the input file, but the point to be noted that there is a three-character extension which determines the type of the output file.
Then we enter the name of the output file responding with the change of address, after that the linker prompts for the names of the library files which we respond with the change of address in simple lucid programs where there is no need of the names of the file names of the library.
After that linker prompts for any options of the linker. Hence we respond with the address change <cr>, which generates a .HEX file. In the example which we have cited, the file which is created by the linker must be MULT.HEX, which will be in the format of Intel HEX.
In the following table different available options and its functionalities are depicted.
|X8085 MULT-T||Displays listing on terminal. It pauses|
| ||when error is encountered|
| ||Continues when <cr> is pressed|
|X8085 MULT-P||Prints listing using printer|
|X8085 MULT-D||Generates .LST file on disk|
|X8085 MULT-ET||Displays only error listing on terminal|
|X8085 MULT-EP||Prints only error listing using printer|
|X8085 MULT-ED||Generates .LST file containing errors only|