60 Assembly Language Fundamentals Assembling Object code is created by "assembling" the source code. Again, modules are a key factor. The code so the assembler can tell which ISOURCE statements to assemble as part of the module. assembly directive is aimed at modules, using the module name as a delimiter in the source Of course this same name is also used to store the object code using mass storage. The IASSEMBLE statement is the vehicle for assembling modules. It has the forms - ::U::::!~::=';::=':;E:::I""'·n:::H ..... E: {module} [ '! {module} [ ' .... J J [ :: {option} [ ;' {option} [ ;' ... J J J I r:=r:='/:::;E}'H::::L. .. r::::: [ !:::::::. .. -.I. ..... J [ ::
{option} [ ; {option} [ ; ... J J J Each {module} indicated is assembled, in the order given by the statement. Only those modules are assembled; any others which may be present in the source at the time are ignored. If the ALL version of the statement is used (with or without the optional word ALL), every module present in the source is assembled. An {option} falls into one of two categories: listing directives and conditions (for conditional assembly). These are discussed separately below. The options, and their categories, are- 1... ... ::r Listing directives .!:::i i::~ ..
Conditions r---i Effect of BASIC Environments To assemble a module, all of its source lines (between the NAM and END pseudo-instructions) must lie within the same BASIC "environment". That is, the NAM and END for a module must lie within the main program or within the same subprogram or multi-line function. For modules where this is not true, an error ("EN" assemble-time error) occurs.