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.

Data attributes000000 00000 00004 8 a csect9 mac1 GOOD_SYMBOL,?BAD_SYMBOL?000000 E4 10+ DC C’U’ DC containing type attribute for op1000001 E4 11+ DC C’U’ DC containing type attribute for op212 endFigure 36. Undefined and unknown type attributesWhen the macro MAC1 is called in Figure 37, GOOD_SYMBOL is a valid symbolname, and has been defined in the DC instruction at statement 12.?BAD_SYMBOL? is a not valid symbol name, and the assembler issues anerror message at statement 13. The type attribute for GOOD_SYMBOL is C,meaning the symbol represents a character constant. The type attribute for?BAD_SYMBOL? is U, meaning the type is unknown.000000 00000 00006 8 a csect9 mac1 GOOD_SYMBOL,?BAD_SYMBOL?000000 C3 10+ DC C’C’ DC containing type attribute for op1000001 E4 11+ DC C’U’ DC containing type attribute for op2000002 A9 12 GOOD_SYMBOL dc cl1’z’000003 A9 13 ?BAD_SYMBOL? dc cl1’z’** ASMA147E Symbol too long, or first character not a letter - ?BAD_SYMBOL?14 endFigure 37. Unknown type attribute for invalid symbolThe type attribute value U, meaning undefined, unknown, or unassigned, isassigned to the following:v Ordinary symbols used as labels:– For the LTORG instruction– For the EQU instruction without a third operand– For DC and DS statements that contain variable symbols, for example,U1 DC &X'1'– That are defined more than once, even though only one instance ofthe label is generated due to conditional assembly statements. Alookahead scan for attributes of a symbol may encounter more thanone occurrence of a symbol, in which case the assembler can’t yet tellwhich statement(s) will be generated. In such cases, type attribute Uis assigned. At a later time, when the symbol has been generated, itstype attribute is changed to the correct value for the type of statementit names.v SETC variable symbols that have a value other than a null characterstring or the name of an instruction that can be referred to be a typeattribute referencev System variable symbols except:– &SYSDATC, &SYSM_HSEV, &SYSM_SEV, &SYSNDX, &SYSNEST,&SYSOPT_DBCS, &SYSOPT_RENT, &SYSOPT_XOBJECT, and&SYSSTMT, which always have a type attribute value of N– Some other character type system variable symbols which may beassigned a value of a null string, when they have a type attributevalue of Ov Macro instruction operands that specify a literal that is not a duplicate ofa literal used in a machine instructionv Inner macro instruction operands that are ordinary symbolsChapter 9. How to write conditional assembly instructions 327

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

Saved successfully!

Ooh no, something went wrong!