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.

SETC instruction|Notes:1. The assembler evaluates the represented character string (in particular, thesubstring; see “Substring notation” on page 366) before applying theduplication factor. The resulting character string is then assigned to the SETCsymbol in the name field. For example:&C2 SETC ’ABC’.(3)’ABCDEF’(4,3)assigns the value ’ABCDEFDEFDEF’ to &C2.2. If the character string contains double-byte data, then redundant SI/SO pairsare not removed on duplication. For example:&C3 SETC (3)’’assigns the value ’’ to &C3.3. To duplicate double-byte data, without including redundant SI/SO pairs, usethe substring notation. For example:&C4 SETC (3)’’(2,4)assigns the value ’.A.B.A.B.A.B’ to &C4.4. To duplicate the arithmetic value of a previously defined ordinary symbol withan absolute value, first assign the arithmetic value to a SETA symbol. Forexample:A EQU 123&A1 SETA A&C5 SETC (3)’&A1’assigns the value ’123123123’ to &C5.||||Subscripted SETC symbolsThe SETC symbol (see ▌1▐ in Figure 42 on page 366) in the name field can besubscripted. If the same SETC symbol has not been previously declared in a GBLCor LCLC instruction with an allowable dimension (see ▌2▐ in Figure 42), then thesymbol is implicitly declared as a local SETC array variable.The assembler assigns the character value represented in the operand field to theposition in the declared array (see ▌3▐ in Figure 42) given by the value of thesubscript. The subscript expression must not be 0 or have a negative value.Chapter 9. How to write conditional assembly instructions 365

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

Saved successfully!

Ooh no, something went wrong!