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.

DC instruction—Decimal constantsrightmost four bits contain the unpaired (first) digit.Table 27. Decimal constantsSubfield Value Example Result1. Duplication factor Allowed2. Type P and Z3. Type Extension Not allowed4. Program type Allowed5. ModifiersImplicit length:(length modifiernot present)Alignment:As needed Packed:P DC P’+593’ByteRange for length: 1 to 16(byte length)Zoned:Z DC Z’−593’L'P = 2L'Z= 3.1 to .128(bit length)Range for scale: Not allowedRange for exponent: Not allowed6. Nominal valueRepresented by: Decimaldigits(0 to 9)Enclosed by: Single quotationmarksExponent allowed: NoNumber of valuesper operand:Padding:MultiplePacked:with binaryzeros at leftPacked:DC P’5.5’ ▌1▐DC P’55’ ▌1▐DC P’+555’ ▌2▐DC P’-777’Zoned:DC Z’−555’ ▌4▐Object codeX'055C'X'055C'X'555C' ▌3▐X'777D' ▌3▐Object codeX'F5F5D5' ▌5▐Truncation ofassembled value:Zoned:with EBCDICzeros (X'F0')at leftAt leftIn the following example, the DC statement specifies both packed and zoneddecimal constants. The length modifier applies to each constant in the first operand(that is, to each packed decimal constant). A literal could not specify bothoperands.150 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

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

Saved successfully!

Ooh no, something went wrong!