11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Rules for model statement fieldsThe fields that can be specified in model statements are the same fields that can bespecified in an ordinary assembler language statement. They are the name,operation, operand, and remarks fields. You can also specify acontinuation-indicator field, an identification-sequence field, and, in source macrodefinitions, a field before the begin column if the correct ICTL instruction has beenspecified. Character strings in the last three fields (in the standard format only,columns 72 through 80) are generated exactly as they appear in the modelstatement, and no values are substituted for variable symbols.Model statements must have an entry in the operation field, and, in most cases, anentry in the operand field in order to generate valid assembler languageinstructions.Name fieldThe entries allowed in the name field of a model statement, before generation, are:v Spacev An ordinary symbolv A sequence symbolv A variable symbolv Any combination of variable symbols, or system variable symbols such as&SYSNDX, and other character strings concatenated togetherThe generated result must be spaces (if valid) or a character string that represents avalid assembler or machine instruction name field. Double-byte data is not valid inan assembler or machine instruction name field and must not be generated.Variable symbols must not be used to generate comment statement indicators (* or.*).Notes:Model statements1. You can not reference an ordinary symbol defined in the name field of a modelstatement until the macro definition containing the model statement has beencalled, and the model statement has been generated.2. Restrictions on the name entry of assembler language instructions are furtherspecified where each individual assembler language instruction is described inthis manual.Operation fieldThe entries allowed in the operation field of a model statement, before generation,are given in the following list:v An ordinary symbol that represents the operation code for:– Any machine instruction– A macro instruction– MNOTE instruction– A variable symbol– A combination of variable strings concatenated together– All assembler instructions, except ICTL and conditional assembly instructions|The following rules apply to the operation field of a model statement:v Operation code ICTL is not allowed inside a macro definition.v The MACRO and MEND statements are not allowed in model statements; theyare used only for delimiting macro definitions.v If the REPRO operation code is specified in a model statement, no substitution isdone for the variable symbols in the record following the REPRO statement.Chapter 7. How to specify macro definitions 249

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!