11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Character setTable 4. Examples using character set (continued)Characters Usage Example ConstitutingComma Between operands OPND1,OPND2 Operand fieldSingle quotationmarksEnclosing characterstrings’STRING’StringAttribute operator L’OPND1 TermParentheses Enclosing subfieldsor subexpressionsSO and SI Enclosingdouble-byte dataAs indicators forMOVE MVC TO(80),FROM(A+B*(C-D)) StatementexpressionC’abc’G’’Ampersand Variable symbol &VAR TermPeriod Symbol qualifier QUAL.SYMBOL TermSequence symbol .SEQ (label)Comment statementin macro definitionMixed stringPure DBCS.*THIS IS A COMMENT StatementConcatenation &VAR.A TermBit-lengthspecificationAsterisk Location counterreferenceDC CL.7’AB’ OperandDecimal point DC F’1.7E4’ Operand*+72 ExpressionComment statement *THIS IS A COMMENT OperandEqual sign Literal reference L 6,=F’2’ OperandKeyword &KEY=D KeywordparameterNote:1. If these are passed as macro arguments, they are treated as expressions, not terms.Expressions cannot be substituted into SETA expressions.TranslationtableIn addition to the standard EBCDIC set of characters, High Level Assembler canuse a user-specified translation table to convert the characters contained incharacter (C-type) data constants (DCs) and literals. High Level Assemblerprovides a translation table to convert the EBCDIC character set to the ASCIIcharacter set. You can supply a translation table using the TRANSLATE assembleroption, described in the section “TRANSLATE” in the <strong>HLASM</strong> Programmer’s Guide.Self-defining Terms: Self-defining terms are not translated when a translation tableis used.Assembler language coding conventionsFigure 2 shows the standard format used to code an assembler language statement.Chapter 2. Coding and structure 13

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

Saved successfully!

Ooh no, something went wrong!